@lumx/core 2.1.4 → 2.1.5

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/lumx.min.js ADDED
@@ -0,0 +1,2 @@
1
+ !function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=107)}({107:function(e,t,r){}});
2
+ //# sourceMappingURL=lumx.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["__webpack_require__","moduleId","installedModules","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aAIE,SAASA,EAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,OAAOC,EAAiBD,GAAUE,QAGnC,IAAIC,EAASF,EAAiBD,GAAY,CACzCI,EAAGJ,EACHK,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQN,GAAUO,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,IAAID,EAAmB,GA4BvBF,EAAoBS,EAAIF,EAGxBP,EAAoBU,EAAIR,EAGxBF,EAAoBW,EAAI,SAASR,EAASS,EAAMC,GAC3Cb,EAAoBc,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEb,EAAoBmB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDtB,EAAoBuB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQtB,EAAoBsB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA3B,EAAoBmB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOtB,EAAoBW,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIR1B,EAAoB8B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAJ,EAAoBW,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRb,EAAoBc,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzGhC,EAAoBmC,EAAI,GAIjBnC,EAAoBA,EAAoBoC,EAAI,K","file":"lumx.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 107);\n"],"sourceRoot":""}
package/package.json CHANGED
@@ -37,12 +37,11 @@
37
37
  "generate:design-tokens": "yarn node style-dictionary",
38
38
  "build": "webpack",
39
39
  "postbuild": "rm -rf ./dist/*.js ./dist/*.js.map",
40
- "postversion": "version-changelog ../../CHANGELOG.md && git add ../../CHANGELOG.md && git commit --amend",
41
40
  "prepare": "install-peers || exit 0",
42
41
  "prepublishOnly": "yarn build"
43
42
  },
44
43
  "sideEffects": false,
45
- "version": "2.1.4",
44
+ "version": "2.1.5",
46
45
  "devDependencies": {
47
46
  "@babel/core": "^7.8.3",
48
47
  "@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -79,5 +78,5 @@
79
78
  "moment": "^2.24.0",
80
79
  "moment-range": "^4.0.2"
81
80
  },
82
- "gitHead": "de78ddf378468c55a56149bcb4568e66a9a88f32"
81
+ "gitHead": "ad5125402db165c2a7d37fb72327153b80193759"
83
82
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 18 Nov 2021 15:14:46 GMT
3
+ * Generated on Tue, 30 Nov 2021 09:20:09 GMT
4
4
  */
5
5
 
6
6
  $lumx-button-height: 36px !default;
@@ -52,7 +52,7 @@ $lumx-button-emphasis-medium-state-default-theme-light-color: rgba(
52
52
  0,
53
53
  0,
54
54
  0.7
55
- ) !default; // Base dark color with 80% opacity
55
+ ) !default; // Base dark color with 70% opacity
56
56
  $lumx-button-emphasis-medium-state-default-theme-light-border-color: transparent !default;
57
57
  $lumx-button-emphasis-medium-state-default-theme-dark-background-color: rgba(
58
58
  255,
@@ -75,7 +75,7 @@ $lumx-button-emphasis-medium-state-hover-theme-light-color: rgba(
75
75
  0,
76
76
  0,
77
77
  0.7
78
- ) !default; // Base dark color with 80% opacity
78
+ ) !default; // Base dark color with 70% opacity
79
79
  $lumx-button-emphasis-medium-state-hover-theme-light-border-color: transparent !default;
80
80
  $lumx-button-emphasis-medium-state-hover-theme-dark-background-color: rgba(
81
81
  255,
@@ -98,7 +98,7 @@ $lumx-button-emphasis-medium-state-active-theme-light-color: rgba(
98
98
  0,
99
99
  0,
100
100
  0.7
101
- ) !default; // Base dark color with 80% opacity
101
+ ) !default; // Base dark color with 70% opacity
102
102
  $lumx-button-emphasis-medium-state-active-theme-light-border-color: transparent !default;
103
103
  $lumx-button-emphasis-medium-state-active-theme-dark-background-color: rgba(
104
104
  255,
@@ -116,7 +116,7 @@ $lumx-button-emphasis-low-state-default-theme-light-color: rgba(
116
116
  0,
117
117
  0,
118
118
  0.7
119
- ) !default; // Base dark color with 80% opacity
119
+ ) !default; // Base dark color with 70% opacity
120
120
  $lumx-button-emphasis-low-state-default-theme-light-border-color: transparent !default;
121
121
  $lumx-button-emphasis-low-state-default-theme-dark-background-color: transparent !default;
122
122
  $lumx-button-emphasis-low-state-default-theme-dark-color: #fff !default; // Neutral light color
@@ -134,7 +134,7 @@ $lumx-button-emphasis-low-state-hover-theme-light-color: rgba(
134
134
  0,
135
135
  0,
136
136
  0.7
137
- ) !default; // Base dark color with 80% opacity
137
+ ) !default; // Base dark color with 70% opacity
138
138
  $lumx-button-emphasis-low-state-hover-theme-light-border-color: transparent !default;
139
139
  $lumx-button-emphasis-low-state-hover-theme-dark-background-color: rgba(
140
140
  255,
@@ -157,7 +157,7 @@ $lumx-button-emphasis-low-state-active-theme-light-color: rgba(
157
157
  0,
158
158
  0,
159
159
  0.7
160
- ) !default; // Base dark color with 80% opacity
160
+ ) !default; // Base dark color with 70% opacity
161
161
  $lumx-button-emphasis-low-state-active-theme-light-border-color: transparent !default;
162
162
  $lumx-button-emphasis-low-state-active-theme-dark-background-color: rgba(
163
163
  255,
@@ -260,20 +260,20 @@ $lumx-navigation-item-emphasis-low-state-default-theme-light-icon-color: rgba(
260
260
  0,
261
261
  0,
262
262
  0.7
263
- ) !default; // Base dark color with 80% opacity
263
+ ) !default; // Base dark color with 70% opacity
264
264
  $lumx-navigation-item-emphasis-low-state-default-theme-light-label-color: rgba(
265
265
  0,
266
266
  0,
267
267
  0,
268
- 0.7
269
- ) !default; // Base dark color with 80% opacity
268
+ 0.87
269
+ ) !default; // Neutral dark color
270
270
  $lumx-navigation-item-emphasis-low-state-default-theme-light-chevron-background-color: transparent !default;
271
271
  $lumx-navigation-item-emphasis-low-state-default-theme-light-chevron-color: rgba(
272
272
  0,
273
273
  0,
274
274
  0,
275
275
  0.7
276
- ) !default; // Base dark color with 80% opacity
276
+ ) !default; // Base dark color with 70% opacity
277
277
  $lumx-navigation-item-emphasis-low-state-default-theme-dark-background-color: transparent !default;
278
278
  $lumx-navigation-item-emphasis-low-state-default-theme-dark-border-color: rgba(
279
279
  255,
@@ -306,13 +306,13 @@ $lumx-navigation-item-emphasis-low-state-hover-theme-light-icon-color: rgba(
306
306
  0,
307
307
  0,
308
308
  0.7
309
- ) !default; // Base dark color with 80% opacity
309
+ ) !default; // Base dark color with 70% opacity
310
310
  $lumx-navigation-item-emphasis-low-state-hover-theme-light-label-color: rgba(
311
311
  0,
312
312
  0,
313
313
  0,
314
- 0.7
315
- ) !default; // Base dark color with 80% opacity
314
+ 0.87
315
+ ) !default; // Neutral dark color
316
316
  $lumx-navigation-item-emphasis-low-state-hover-theme-light-chevron-background-color: rgba(
317
317
  0,
318
318
  0,
@@ -324,7 +324,7 @@ $lumx-navigation-item-emphasis-low-state-hover-theme-light-chevron-color: rgba(
324
324
  0,
325
325
  0,
326
326
  0.7
327
- ) !default; // Base dark color with 80% opacity
327
+ ) !default; // Base dark color with 70% opacity
328
328
  $lumx-navigation-item-emphasis-low-state-hover-theme-dark-background-color: rgba(
329
329
  255,
330
330
  255,
@@ -367,13 +367,13 @@ $lumx-navigation-item-emphasis-low-state-active-theme-light-icon-color: rgba(
367
367
  0,
368
368
  0,
369
369
  0.7
370
- ) !default; // Base dark color with 80% opacity
370
+ ) !default; // Base dark color with 70% opacity
371
371
  $lumx-navigation-item-emphasis-low-state-active-theme-light-label-color: rgba(
372
372
  0,
373
373
  0,
374
374
  0,
375
- 0.7
376
- ) !default; // Base dark color with 80% opacity
375
+ 0.87
376
+ ) !default; // Neutral dark color
377
377
  $lumx-navigation-item-emphasis-low-state-active-theme-light-chevron-background-color: rgba(
378
378
  0,
379
379
  0,
@@ -385,7 +385,7 @@ $lumx-navigation-item-emphasis-low-state-active-theme-light-chevron-color: rgba(
385
385
  0,
386
386
  0,
387
387
  0.7
388
- ) !default; // Base dark color with 80% opacity
388
+ ) !default; // Base dark color with 70% opacity
389
389
  $lumx-navigation-item-emphasis-low-state-active-theme-dark-background-color: rgba(
390
390
  255,
391
391
  255,
@@ -515,7 +515,7 @@ $lumx-tabs-link-emphasis-low-state-default-theme-light-color: rgba(
515
515
  0,
516
516
  0,
517
517
  0.7
518
- ) !default; // Base dark color with 80% opacity
518
+ ) !default; // Base dark color with 70% opacity
519
519
  $lumx-tabs-link-emphasis-low-state-default-theme-light-border-color: rgba(
520
520
  0,
521
521
  0,
@@ -545,7 +545,7 @@ $lumx-tabs-link-emphasis-low-state-hover-theme-light-color: rgba(
545
545
  0,
546
546
  0,
547
547
  0.7
548
- ) !default; // Base dark color with 80% opacity
548
+ ) !default; // Base dark color with 70% opacity
549
549
  $lumx-tabs-link-emphasis-low-state-hover-theme-light-border-color: rgba(
550
550
  0,
551
551
  0,
@@ -580,7 +580,7 @@ $lumx-tabs-link-emphasis-low-state-active-theme-light-color: rgba(
580
580
  0,
581
581
  0,
582
582
  0.7
583
- ) !default; // Base dark color with 80% opacity
583
+ ) !default; // Base dark color with 70% opacity
584
584
  $lumx-tabs-link-emphasis-low-state-active-theme-light-border-color: rgba(
585
585
  0,
586
586
  0,
@@ -610,7 +610,7 @@ $lumx-tabs-link-emphasis-selected-state-default-theme-light-color: rgba(
610
610
  0,
611
611
  0,
612
612
  0.7
613
- ) !default; // Base dark color with 80% opacity
613
+ ) !default; // Base dark color with 70% opacity
614
614
  $lumx-tabs-link-emphasis-selected-state-default-theme-light-border-color: var(--lumx-color-primary-N) !default;
615
615
  $lumx-tabs-link-emphasis-selected-state-default-theme-dark-background-color: transparent !default;
616
616
  $lumx-tabs-link-emphasis-selected-state-default-theme-dark-color: #fff !default; // Neutral light color
@@ -630,7 +630,7 @@ $lumx-tabs-link-emphasis-selected-state-hover-theme-light-color: rgba(
630
630
  0,
631
631
  0,
632
632
  0.7
633
- ) !default; // Base dark color with 80% opacity
633
+ ) !default; // Base dark color with 70% opacity
634
634
  $lumx-tabs-link-emphasis-selected-state-hover-theme-light-border-color: var(--lumx-color-primary-N) !default;
635
635
  $lumx-tabs-link-emphasis-selected-state-hover-theme-dark-background-color: rgba(
636
636
  255,
@@ -655,7 +655,7 @@ $lumx-tabs-link-emphasis-selected-state-active-theme-light-color: rgba(
655
655
  0,
656
656
  0,
657
657
  0.7
658
- ) !default; // Base dark color with 80% opacity
658
+ ) !default; // Base dark color with 70% opacity
659
659
  $lumx-tabs-link-emphasis-selected-state-active-theme-light-border-color: var(--lumx-color-primary-N) !default;
660
660
  $lumx-tabs-link-emphasis-selected-state-active-theme-dark-background-color: rgba(
661
661
  255,
@@ -790,7 +790,7 @@ $lumx-text-field-state-focus-theme-dark-input-placeholder-color: rgba(
790
790
  ) !default; // Base light color with 80% opacity
791
791
  $lumx-border-radius: 4px !default;
792
792
  $lumx-color-dark-N: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
793
- $lumx-color-dark-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 80% opacity
793
+ $lumx-color-dark-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 70% opacity
794
794
  $lumx-color-dark-L2: rgba(0, 0, 0, 0.54) !default; // Base dark color with 54% opacity
795
795
  $lumx-color-dark-L3: rgba(0, 0, 0, 0.38) !default; // Base dark color with 38% opacity
796
796
  $lumx-color-dark-L4: rgba(0, 0, 0, 0.2) !default; // Base dark color with 20% opacity
@@ -874,7 +874,7 @@ $lumx-color-accent-L4: rgba(76, 175, 80, 0.2) !default; // Base green color with
874
874
  $lumx-color-accent-L5: rgba(76, 175, 80, 0.1) !default; // Base green color with 10% opacity
875
875
  $lumx-color-accent-L6: rgba(76, 175, 80, 0.05) !default; // Base green color with 5% opacity
876
876
  $lumx-color-black-N: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
877
- $lumx-color-black-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 80% opacity
877
+ $lumx-color-black-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 70% opacity
878
878
  $lumx-color-black-L2: rgba(0, 0, 0, 0.54) !default; // Base dark color with 54% opacity
879
879
  $lumx-color-black-L3: rgba(0, 0, 0, 0.38) !default; // Base dark color with 38% opacity
880
880
  $lumx-color-black-L4: rgba(0, 0, 0, 0.2) !default; // Base dark color with 20% opacity
@@ -82,6 +82,12 @@
82
82
  &.#{$lumx-base-prefix}-chip--is-highlighted {
83
83
  @include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'MEDIUM'), $key);
84
84
  }
85
+
86
+ @if $key == 'dark' {
87
+ .#{$lumx-base-prefix}-chip__label {
88
+ color: lumx-color-variant('dark', 'L1');
89
+ }
90
+ }
85
91
  }
86
92
  }
87
93
 
@@ -16,6 +16,10 @@
16
16
  background-color: lumx-color-variant($color, 'L5');
17
17
  color: lumx-color-variant($color, 'L2');
18
18
  } @else if $has-shape == false {
19
- color: lumx-color-variant($color, 'N');
19
+ @if $color == 'dark' {
20
+ color: lumx-color-variant('dark', 'L1');
21
+ } @else {
22
+ color: lumx-color-variant($color, 'N');
23
+ }
20
24
  }
21
25
  }
@@ -103,8 +103,9 @@
103
103
  /* Thumbnail states
104
104
  ========================================================================== */
105
105
 
106
- .#{$lumx-base-prefix}-thumbnail[tabindex='0'] {
106
+ .#{$lumx-base-prefix}-thumbnail--is-clickable {
107
107
  position: relative;
108
+ display: block;
108
109
  cursor: pointer;
109
110
 
110
111
  &::after {
@@ -119,7 +120,8 @@
119
120
  pointer-events: none;
120
121
  }
121
122
 
122
- &:hover::after {
123
+ &:hover::after,
124
+ &:focus::after {
123
125
  @include lumx-state(lumx-base-const('state', 'HOVER'), lumx-base-const('emphasis', 'LOW'), 'dark');
124
126
  }
125
127
 
@@ -128,19 +130,19 @@
128
130
  }
129
131
  }
130
132
 
131
- .#{$lumx-base-prefix}-thumbnail--variant-rounded.#{$lumx-base-prefix}-thumbnail[tabindex='0'] {
133
+ .#{$lumx-base-prefix}-thumbnail--variant-rounded.#{$lumx-base-prefix}-thumbnail--is-clickable {
132
134
  &[data-focus-visible-added]::after {
133
135
  border-radius: var(--lumx-border-radius);
134
136
  }
135
137
  }
136
138
 
137
- .#{$lumx-base-prefix}-thumbnail--theme-light.#{$lumx-base-prefix}-thumbnail[tabindex='0'] {
139
+ .#{$lumx-base-prefix}-thumbnail--theme-light.#{$lumx-base-prefix}-thumbnail--is-clickable {
138
140
  &[data-focus-visible-added]::after {
139
141
  @include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'LOW'), 'dark');
140
142
  }
141
143
  }
142
144
 
143
- .#{$lumx-base-prefix}-thumbnail--theme-dark.#{$lumx-base-prefix}-thumbnail[tabindex='0'] {
145
+ .#{$lumx-base-prefix}-thumbnail--theme-dark.#{$lumx-base-prefix}-thumbnail--is-clickable {
144
146
  &[data-focus-visible-added]::after {
145
147
  @include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'LOW'), 'light');
146
148
  }
@@ -49,7 +49,7 @@
49
49
  color: lumx-color-variant('light', 'N');
50
50
  }
51
51
 
52
- &[tabindex='0'] {
52
+ &--is-clickable {
53
53
  #{$self}--theme-light & {
54
54
  @include lumx-link('dark');
55
55
  }
@@ -31,11 +31,12 @@
31
31
  @mixin lumx-state-medium($state, $color, $has-focus-inset: false) {
32
32
  @if $state == lumx-base-const('state', 'DEFAULT') {
33
33
  background-color: lumx-color-variant($color, 'L5');
34
+ color: lumx-color-variant($color, 'N');
34
35
 
35
36
  @if $color == 'dark' {
36
- color: lumx-color-variant($color, 'L1');
37
- } @else {
38
- color: lumx-color-variant($color, 'N');
37
+ .#{$lumx-base-prefix}-icon {
38
+ color: lumx-color-variant('dark', 'L1');
39
+ }
39
40
  }
40
41
  } @else if $state == lumx-base-const('state', 'HOVER') {
41
42
  background-color: lumx-color-variant($color, 'L4');
@@ -55,12 +56,14 @@
55
56
  @if $state == lumx-base-const('state', 'DEFAULT') {
56
57
  background-color: lumx-color-variant('primary', 'L5');
57
58
  color: lumx-color-variant('primary', 'D2');
59
+
60
+ .#{$lumx-base-prefix}-icon {
61
+ color: lumx-color-variant('primary', 'D2');
62
+ }
58
63
  } @else if $state == lumx-base-const('state', 'HOVER') {
59
64
  background-color: lumx-color-variant('primary', 'L4');
60
- color: lumx-color-variant('primary', 'D2');
61
65
  } @else if $state == lumx-base-const('state', 'ACTIVE') {
62
66
  background-color: lumx-color-variant('primary', 'L3');
63
- color: lumx-color-variant('primary', 'D2');
64
67
  } @else if $state == lumx-base-const('state', 'FOCUS') {
65
68
  @if $has-focus-inset == true {
66
69
  box-shadow: inset 0 0 0 2px lumx-color-variant('primary', 'L3');
@@ -72,12 +75,14 @@
72
75
  @if $state == lumx-base-const('state', 'DEFAULT') {
73
76
  background-color: lumx-color-variant('light', 'L3');
74
77
  color: lumx-color-variant('light', 'N');
78
+
79
+ .#{$lumx-base-prefix}-icon {
80
+ color: lumx-color-variant('light', 'N');
81
+ }
75
82
  } @else if $state == lumx-base-const('state', 'HOVER') {
76
83
  background-color: lumx-color-variant('light', 'L4');
77
- color: lumx-color-variant('light', 'N');
78
84
  } @else if $state == lumx-base-const('state', 'ACTIVE') {
79
85
  background-color: lumx-color-variant('light', 'L5');
80
- color: lumx-color-variant('light', 'N');
81
86
  } @else if $state == lumx-base-const('state', 'FOCUS') {
82
87
  @if $has-focus-inset == true {
83
88
  box-shadow: inset 0 0 0 2px lumx-color-variant('light', 'L3');
@@ -91,11 +96,12 @@
91
96
  @mixin lumx-state-low($state, $color, $has-focus-inset: false) {
92
97
  @if $state == lumx-base-const('state', 'DEFAULT') {
93
98
  background-color: transparent;
99
+ color: lumx-color-variant($color, 'N');
94
100
 
95
101
  @if $color == 'dark' {
96
- color: lumx-color-variant($color, 'L1');
97
- } @else {
98
- color: lumx-color-variant($color, 'N');
102
+ .#{$lumx-base-prefix}-icon {
103
+ color: lumx-color-variant('dark', 'L1');
104
+ }
99
105
  }
100
106
  } @else if $state == lumx-base-const('state', 'HOVER') {
101
107
  background-color: lumx-color-variant($color, 'L5');