mod-base 1.0.67-beta.1 → 1.0.67-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.67
4
+
5
+ - Add support for `.helper-text` class that can be added to radio buttons
6
+
7
+ ## 1.0.66
8
+
9
+ - Updated dark mode color for checkbox disclaimer
10
+
3
11
  ## 1.0.65
4
12
 
5
13
  - Updated dark mode colors for review cards
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-base",
3
- "version": "1.0.67-beta.1",
3
+ "version": "1.0.67-beta.2",
4
4
  "description": "Base Styles for S3 Sites",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -145,7 +145,7 @@ $contact-us-blue-light: #8498E7;
145
145
 
146
146
  // Most common selectors list
147
147
  $content-selectors: '.hero__title,.hero__subtitle,input,.toggle-wrapper,.step__title,[class^="information__"],[class^="featured-block__"],[class^="partners__"],.form-group__label,[class^="abandonment__"],.modal-header--close,.modal-phone,.modal-body p,legend,[class^="loader__"],table tr,.tile__text,.select,.hiw-block__title,.hiw-card__title,.hiw-card__description,.banner__title,.banner__description,.accordion__title,.reviews__title,.accordion .expand-collapse__toggle,.accordion__content p,.accordion__content li,.result__title,.result__subtitle,.result__call-text';
148
- $background-selectors: '.form,.header,.guarantee,.information,.modal-content,.matched-steps,.loader,.information__header,.hero__background,.hero__content,&.form-in-progress:not(.fixed-width-desktop) .hero__content,.form-input,.form-input:focus,.expand-collapse__icon,.featured-block,table tr,.form-control,.accordion,.hiw-block,.reviews,.cards';
148
+ $background-selectors: '.form,.header,.guarantee,.information,.modal-content,.matched-steps,.loader,.information__header,.hero__background,.hero__content,&.form-in-progress:not(.fixed-width-desktop) .hero__content,.form-input,.form-input:focus,.expand-collapse__icon,.featured-block,table tr,.form-control,.accordion,.hiw-block,.reviews';
149
149
 
150
150
  @media (prefers-color-scheme: dark){
151
151
  body[data-color-scheme='system'] {
@@ -167,6 +167,10 @@ $contact-us-blue-light: #8498E7;
167
167
  color: $checkbox-label-color;
168
168
  }
169
169
 
170
+ .checkbox__disclaimer {
171
+ color: $color-grey-500;
172
+ }
173
+
170
174
  .checkbox--multi-select-options {
171
175
  .checkbox__label-text {
172
176
  color: $color-grey-300;
@@ -174,26 +178,43 @@ $contact-us-blue-light: #8498E7;
174
178
 
175
179
  label {
176
180
  input[type="checkbox"] {
177
- &:not(:checked) {
178
- &::before {
179
- background: transparent;
180
- border: 1px solid $color-grey-500;
181
- }
181
+ &::before {
182
+ background: transparent;
183
+ border: 1px solid $radio-btn-border-color;
182
184
  }
183
-
185
+
184
186
  ~ .checkbox__label-text {
185
187
  &::before {
186
- border: 1px solid $color-grey-500;
188
+ border: 1px solid $radio-btn-border-color;
187
189
  }
188
190
  }
189
-
191
+
190
192
  &:active,
191
- &:focus,
192
193
  &:hover,
194
+ &:focus-visible {
195
+ &::before {
196
+ background: $radio-btn-standard-hover-select-background-color;
197
+ border: 1px solid $radio-btn-standard-hover-select-background-color;
198
+ }
199
+ }
200
+
193
201
  &:checked {
194
202
  ~ .checkbox__label-text {
195
203
  &::before {
196
- border: 1px solid $radio-btn-standard-hover-select-background-color;
204
+ border: 1px solid $radio-btn-checked-border-color;
205
+ }
206
+ }
207
+
208
+ &::before {
209
+ background: $radio-btn-checked-border-color;
210
+ border: 1px solid $radio-btn-checked-border-color;
211
+ }
212
+ }
213
+
214
+ &:focus-visible {
215
+ ~ .checkbox__label-text {
216
+ &::before {
217
+ border: 1px solid $radio-btn-checked-border-color;
197
218
  }
198
219
  }
199
220
  }
@@ -229,10 +250,6 @@ $contact-us-blue-light: #8498E7;
229
250
  background-color: transparent;
230
251
  }
231
252
 
232
- .card__picture img {
233
- filter: $background-img-brightness;
234
- }
235
-
236
253
  .icon-close,
237
254
  .progress-bar__title,
238
255
  .header__back-button,
@@ -844,6 +861,10 @@ $contact-us-blue-light: #8498E7;
844
861
  &:checked + .radio__button-text {
845
862
  color: $radio-btn-checked-text-color;
846
863
 
864
+ .helper-text {
865
+ color: $radio-btn-checked-text-color;
866
+ }
867
+
847
868
  + span {
848
869
  background-color: $radio-btn-checked-icon-background-color;
849
870
 
@@ -910,6 +931,10 @@ $contact-us-blue-light: #8498E7;
910
931
  + span {
911
932
  color: $radio-btn-text-color;
912
933
 
934
+ .helper-text {
935
+ color: $radio-btn-text-color;
936
+ }
937
+
913
938
  &::before {
914
939
  background-color: $radio-btn-background-color;
915
940
  border-color: $radio-btn-border-color;