Skip to content

Commit a1e4dd4

Browse files
committed
switch from is-horizontal to variation-horizontal
1 parent 56a5a94 commit a1e4dd4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

projects/packages/forms/src/blocks/contact-form/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function JetpackContactFormEdit( { name, attributes, setAttributes, clientId, cl
183183
const innerRef = useRef();
184184
const blockProps = useBlockProps( {
185185
ref: wrapperRef,
186-
className: { 'is-horizontal': variationName === 'horizontal' },
186+
className: { 'variation-horizontal': variationName === 'horizontal' },
187187
} );
188188
const formClassnames = clsx(
189189
className,

projects/packages/forms/src/blocks/contact-form/editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@
12101210
}
12111211

12121212
/* Horizontal form layout */
1213-
.wp-block-jetpack-contact-form.is-horizontal {
1213+
.wp-block-jetpack-contact-form.variation-horizontal {
12141214

12151215
.jetpack-contact-form {
12161216
display: flex;

projects/packages/forms/src/blocks/contact-form/variations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const variations = [
2626
variationName: 'default-empty',
2727
},
2828
scope: [ 'transform' ],
29-
isActive: ( { variationName } ) => ![ 'multistep', 'horizontal' ].includes( variationName ),
29+
isActive: ( { variationName } ) => ! [ 'multistep', 'horizontal' ].includes( variationName ),
3030
},
3131
{
3232
name: 'contact-form',
@@ -1013,7 +1013,7 @@ const variations = [
10131013
},
10141014
{
10151015
name: 'horizontal-form',
1016-
title: __( 'Horizontal', 'jetpack-forms' ),
1016+
title: __( 'Horizontal form', 'jetpack-forms' ),
10171017
description: __( 'A form with fields displayed horizontally side by side.', 'jetpack-forms' ),
10181018
icon: {
10191019
foreground: getIconColor(),

projects/packages/forms/src/contact-form/class-contact-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ class='{$container_classes_string}'
748748
}
749749

750750
if ( $is_horizontal ) {
751-
$form_classes .= ' is-horizontal ';
751+
$form_classes .= ' variation-horizontal ';
752752
}
753753

754754
$r .= "<form action='" . esc_url( $url ) . "'

projects/packages/forms/src/contact-form/css/grunion.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ on production builds, the attributes are being reordered, causing side-effects
11921192
transition: opacity 200ms cubic-bezier(0.34, 0.8, 0.34, 1), transform 200ms cubic-bezier(0.34, 0.8, 0.34, 1);
11931193
}
11941194

1195-
.is-horizontal {
1195+
.variation-horizontal {
11961196

11971197
.contact-form__input-error.has-errors {
11981198
position: absolute;
@@ -1252,7 +1252,7 @@ on production builds, the attributes are being reordered, causing side-effects
12521252
}
12531253

12541254
/* Horizontal form layout */
1255-
.wp-block-jetpack-contact-form.is-horizontal > .wp-block-jetpack-contact-form {
1255+
.wp-block-jetpack-contact-form.variation-horizontal > .wp-block-jetpack-contact-form {
12561256
display: flex;
12571257
flex-direction: row;
12581258
flex-wrap: wrap;

0 commit comments

Comments
 (0)