Skip to content

Commit

Permalink
Attempt to fix CSS build side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheringer committed Jan 31, 2023
1 parent 7d2f470 commit 8a3ec7e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,17 @@
border-color: var(--jetpack--contact-form--border-color);
border-style: var(--jetpack--contact-form--border-style);
border-width: var(--jetpack--contact-form--border-size);
border-left: none;
border-right: none;
padding: 0 4px;
transition: border 150ms linear;
}

// For some reason, when keeping the rule below together with the above selector,
// on production builds, the attributes are being reordered, causing side-effects
.notched-label__notch {
border-left: none;
border-right: none;
}

.notched-label__label {
position: relative;
top: 50%;
Expand Down
11 changes: 9 additions & 2 deletions projects/plugins/jetpack/modules/contact-form/css/grunion.css
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,19 @@
border-color: var(--jetpack--contact-form--border-color);
border-style: var(--jetpack--contact-form--border-style);
border-width: var(--jetpack--contact-form--border-size);
border-left: none;
border-right: none;
padding: 0 4px;
transition: border 150ms linear;
}

/*
For some reason, when keeping the rule below together with the above selector,
on production builds, the attributes are being reordered, causing side-effects
*/
.contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__notch {
border-left: none;
border-right: none;
}

.contact-form .is-style-outlined .grunion-field-wrap.no-label .notched-label__notch {
padding: 0;
}
Expand Down

0 comments on commit 8a3ec7e

Please sign in to comment.