mod-base 1.0.29 → 1.0.31

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,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.29
3
+ ## 1.0.31
4
+
5
+ - Adding missing selectors from the contact us modal
6
+
7
+ ## 1.0.30
4
8
 
5
9
  - Adding conditional to use previous value as a fallback for the theme variable
6
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-base",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Base Styles for S3 Sites",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -76,7 +76,6 @@ $contact-us-blue-light: #8498E7;
76
76
  $button-saturation: saturate(70%) !global;
77
77
  $color-button: $color-btn !global;
78
78
  $img-filter: invert(1) hue-rotate(180deg) !global;
79
- $theme: $base-color !global;
80
79
  $text-color: $foreground !global;
81
80
  $value-props-background: $value-props-background;
82
81
 
@@ -84,13 +83,15 @@ $contact-us-blue-light: #8498E7;
84
83
  $color-btn-text: colorContrast($color-btn, $foreground, $background);
85
84
  }
86
85
 
87
- @if $theme == null {
88
- $theme: $accent-color;
86
+ @if ($base-color == null and $accent-color != null) {
87
+ $theme: $accent-color !global;
88
+ } @else {
89
+ $theme: $base-color !global;
89
90
  }
90
91
 
91
92
  // Most common selectors list
92
- $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,legend,[class^="loader__"], table tr,.tile__text,.checkbox';
93
- $background-selectors: '.form,.header,.guarantee,.information,.modal-content,.matched-steps,.loader,.information__header,.hero__background,.hero__content,.form-input,.form-input:focus,.expand-collapse__icon,.featured-block,table tr';
93
+ $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,.checkbox';
94
+ $background-selectors: '.form,.header,.guarantee,.information,.modal-content,.matched-steps,.loader,.information__header,.hero__background,.hero__content,.form-input,.form-input:focus,.expand-collapse__icon,.featured-block,table tr,.form-control';
94
95
 
95
96
  @media (prefers-color-scheme: dark){
96
97
  body[data-color-scheme='system'] {