@lumx/core 2.2.11 → 2.2.12

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/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "version": "yarn version-changelog ../../CHANGELOG.md && yarn changelog-verify ../../CHANGELOG.md && git add ../../CHANGELOG.md"
43
43
  },
44
44
  "sideEffects": false,
45
- "version": "2.2.11",
45
+ "version": "2.2.12",
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.8.3",
48
48
  "@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -82,5 +82,5 @@
82
82
  "moment": "^2.24.0",
83
83
  "moment-range": "^4.0.2"
84
84
  },
85
- "gitHead": "a223105b739e72009fde0ade1919b74b13c3e528"
85
+ "gitHead": "6f3e8a585aef16aa70325d466e77d9cbd3a8ff1e"
86
86
  }
@@ -82,12 +82,22 @@
82
82
  }
83
83
 
84
84
  &.#{$lumx-base-prefix}-icon--has-shape {
85
- @include lumx-icon-color($color-key, true);
85
+ @include lumx-icon-color($color-key, true, lumx-base-const('theme', 'LIGHT'));
86
+
87
+ &.#{$lumx-base-prefix}-icon--theme-dark {
88
+ @include lumx-icon-color($color-key, true, lumx-base-const('theme', 'DARK'));
89
+ }
86
90
  }
87
91
  }
88
92
 
89
93
  @each $color-variant in $lumx-color-variants {
90
94
  .#{$lumx-base-prefix}-icon--color-#{$color-key}.#{$lumx-base-prefix}-icon--color-variant-#{$color-variant} {
95
+ @if $color-key == 'yellow' {
96
+ &.#{$lumx-base-prefix}-icon--has-shape {
97
+ color: lumx-color-variant('dark', 'L1');
98
+ }
99
+ }
100
+
91
101
  color: lumx-color-variant($color-key, $color-variant);
92
102
  }
93
103
  }
@@ -11,9 +11,18 @@
11
11
  }
12
12
  }
13
13
 
14
- @mixin lumx-icon-color($color, $has-shape: false) {
14
+ @mixin lumx-icon-color($color, $has-shape: false, $theme: light) {
15
15
  @if $has-shape == true {
16
- background-color: lumx-color-variant($color, 'L6');
16
+ $base-color: lumx-color-variant($color, 'L6');
17
+
18
+ @if $theme == lumx-base-const('theme', 'DARK') and $color != 'light' {
19
+ // adds a white background for dark theme
20
+ background-color: lumx-color-variant('light', 'N');
21
+ // Custom color is set as a background gradient to be on top of background-color
22
+ background-image: linear-gradient(to right, $base-color, $base-color);
23
+ } @else {
24
+ background-color: $base-color;
25
+ }
17
26
 
18
27
  @if $color == 'yellow' {
19
28
  color: lumx-color-variant('dark', 'L1');