Skip to content

Commit 6c948d1

Browse files
authored
fix(HubspotForm): required checkbox (#154)
1 parent 741a9af commit 6c948d1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sub-blocks/HubspotForm/HubspotForm.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,25 @@ $block: '.#{$ns}hubspot-form';
143143
flex-shrink: 0;
144144
}
145145

146-
span {
146+
span:not(.hs-form-required) {
147147
color: var(--yc-color-text-primary);
148148
font-size: var(--yc-text-body-2-font-size);
149149
line-height: 16px;
150150
padding-left: 7px;
151151
margin: 0;
152152
flex-grow: 1;
153153
}
154+
155+
.hs-form-required {
156+
top: 0;
157+
}
154158
}
155159

156160
.hs-form-booleancheckbox-display,
157161
.hs-form-checkbox-display {
158162
position: relative;
159163

160-
span {
164+
span:not(.hs-form-required) {
161165
&:before {
162166
content: '';
163167
position: absolute;

0 commit comments

Comments
 (0)