mod-base 1.0.67 → 1.0.68-beta.10

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,8 @@
1
1
  # Changelog
2
2
 
3
+ # 1.0.68
4
+ - Adding dark mode support for the new elements (`callout`, `overlay` and `background image`) added to banner accessible component.
5
+
3
6
  ## 1.0.67
4
7
 
5
8
  - Add dark mode support for `.helper-text` class that can be added to radio buttons
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-base",
3
- "version": "1.0.67",
3
+ "version": "1.0.68-beta.10",
4
4
  "description": "Base Styles for S3 Sites",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -44,6 +44,15 @@ $contact-us-blue-light: #8498E7;
44
44
  $background: $color-charcoal8,
45
45
  $base-color: null,
46
46
  $bbb-img-filter: grayscale(1) invert(.915) brightness(1.5),
47
+ // Banner
48
+ $banner-overlay-background: linear-gradient(90deg, $background 17%, rgba($background, .5) 100%),
49
+ $banner-callout-background: $color-grey-300,
50
+ $banner-callout-border-color: $color-grey-700,
51
+ $banner-callout-text-color: null,
52
+ $banner-has-background-title-color: null,
53
+ $banner-has-background-subtitle-color: null,
54
+ $banner-has-background-description-color: null,
55
+ $banner-has-background-callout-text-color: null,
47
56
  $color-btn: null,
48
57
  $color-btn-text: null,
49
58
  $checkbox-label-color: null,
@@ -143,6 +152,26 @@ $contact-us-blue-light: #8498E7;
143
152
  $radio-btn-standard-hover-select-background-color: lighten($radio-btn-checked-border-color, 5%);
144
153
  }
145
154
 
155
+ @if ($banner-callout-text-color == null) {
156
+ $banner-callout-text-color: $foreground;
157
+ }
158
+
159
+ @if ($banner-has-background-title-color == null) {
160
+ $banner-has-background-title-color: $foreground;
161
+ }
162
+
163
+ @if ($banner-has-background-subtitle-color == null) {
164
+ $banner-has-background-subtitle-color: $foreground;
165
+ }
166
+
167
+ @if ($banner-has-background-description-color == null) {
168
+ $banner-has-background-description-color: $foreground;
169
+ }
170
+
171
+ @if ($banner-has-background-callout-text-color == null) {
172
+ $banner-has-background-callout-text-color: $foreground;
173
+ }
174
+
146
175
  // Most common selectors list
147
176
  $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
177
  $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';
@@ -163,6 +192,38 @@ $contact-us-blue-light: #8498E7;
163
192
  color: $text-color;
164
193
  }
165
194
 
195
+ .banner {
196
+ &__background-overlay {
197
+ background: $banner-overlay-background;
198
+ }
199
+
200
+ &__callout {
201
+ background-color: $banner-callout-background;
202
+ border-color: $banner-callout-border-color;
203
+ color: $banner-callout-text-color;
204
+ }
205
+
206
+ &.banner--has-background {
207
+ .banner {
208
+ &__callout {
209
+ color: $banner-has-background-callout-text-color;
210
+ }
211
+
212
+ &__title {
213
+ color: $banner-has-background-title-color;
214
+ }
215
+
216
+ &__subtitle {
217
+ color: $banner-has-background-subtitle-color;
218
+ }
219
+
220
+ &__description {
221
+ color: $banner-has-background-description-color;
222
+ }
223
+ }
224
+ }
225
+ }
226
+
166
227
  .checkbox {
167
228
  color: $checkbox-label-color;
168
229
  }