Skip to content

Commit 29fc2b8

Browse files
committed
Fix single checkbox styling
1 parent 7c4ad26 commit 29fc2b8

File tree

1 file changed

+10
-7
lines changed
  • projects/packages/forms/src/contact-form/css

1 file changed

+10
-7
lines changed

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

+10-7
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@
143143
.contact-form .grunion-checkbox-multiple-options .contact-form-field,
144144
.contact-form .grunion-radio-options .contact-form-field {
145145
display: flex;
146-
align-items: baseline;
147-
146+
align-items: center;
148147
margin: 0;
149148
}
149+
.contact-form .grunion-radio-options .contact-form-field {
150+
align-items: baseline;
151+
}
150152

151153
.contact-form label span.required,
152154
.grunion-label-required {
@@ -570,6 +572,8 @@ on production builds, the attributes are being reordered, causing side-effects
570572
padding-top: 8px;
571573
}
572574

575+
.contact-form .grunion-field-wrap input.consent,
576+
.contact-form .grunion-field-wrap input.checkbox,
573577
.contact-form .grunion-field-wrap input.checkbox-multiple,
574578
.contact-form .grunion-field-wrap input.radio {
575579
position: relative;
@@ -589,10 +593,11 @@ on production builds, the attributes are being reordered, causing side-effects
589593

590594
.contact-form .grunion-field-wrap input.radio {
591595
border-radius: 50%;
592-
593596
transform: translateY(15%); /* Small offset to compensate the slightly odd perceived alignment that's due to the circular shape */
594597
}
595598

599+
.contact-form .grunion-field-wrap input.consent:checked::before,
600+
.contact-form .grunion-field-wrap input.checkbox:checked::before,
596601
.contact-form .grunion-field-wrap input.checkbox-multiple:checked::before {
597602
content: "\2713";
598603

@@ -785,10 +790,8 @@ on production builds, the attributes are being reordered, causing side-effects
785790
font-style: normal;
786791
font-weight: bold;
787792
}
788-
789-
.contact-form__checkbox-wrap {
793+
.contact-form .contact-form__checkbox-wrap {
790794
display: inline-flex;
791-
align-items: baseline;
792795
}
793796

794797
.contact-form :is([type="submit"],button:not([type="reset"])) {
@@ -807,7 +810,7 @@ on production builds, the attributes are being reordered, causing side-effects
807810
display: block;
808811
}
809812

810-
.visually-hidden {
813+
.contact-form .visually-hidden {
811814
clip: rect(0 0 0 0);
812815
clip-path: inset(50%);
813816
height: 1px;

0 commit comments

Comments
 (0)