@lumx/core 4.25.1-next.1 → 4.25.1-next.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/components-and-utils.css +17 -4
- package/lumx.css +17 -4
- package/package.json +2 -2
- package/scss/components/list/_index.scss +21 -2
package/components-and-utils.css
CHANGED
|
@@ -8241,18 +8241,31 @@ table {
|
|
|
8241
8241
|
.lumx-list-item__link--is-highlighted:active {
|
|
8242
8242
|
background-color: var(--lumx-color-dark-L4);
|
|
8243
8243
|
}
|
|
8244
|
-
.lumx-list-item__link--is-selected
|
|
8244
|
+
.lumx-list-item__link--is-selected {
|
|
8245
8245
|
color: var(--lumx-color-primary-D2);
|
|
8246
8246
|
background-color: var(--lumx-color-primary-L5);
|
|
8247
8247
|
}
|
|
8248
|
-
.lumx-list-item__link--is-selected[data-lumx-hover], .lumx-list-item__link--is-selected[data-focus-visible-added]
|
|
8248
|
+
.lumx-list-item__link--is-selected[data-lumx-hover], .lumx-list-item__link--is-selected[data-focus-visible-added] {
|
|
8249
8249
|
background-color: var(--lumx-color-primary-L4);
|
|
8250
8250
|
}
|
|
8251
8251
|
@media (hover: hover) {
|
|
8252
|
-
.lumx-list-item__link--is-selected:hover
|
|
8252
|
+
.lumx-list-item__link--is-selected:hover {
|
|
8253
8253
|
background-color: var(--lumx-color-primary-L4);
|
|
8254
8254
|
}}
|
|
8255
|
-
.lumx-list-item__link--is-selected:active, .lumx-list-item__link--is-selected[data-lumx-active]
|
|
8255
|
+
.lumx-list-item__link--is-selected:active, .lumx-list-item__link--is-selected[data-lumx-active] {
|
|
8256
|
+
background-color: var(--lumx-color-primary-L3);
|
|
8257
|
+
}
|
|
8258
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action::before {
|
|
8259
|
+
background-color: var(--lumx-color-primary-L5);
|
|
8260
|
+
}
|
|
8261
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true][data-lumx-hover]::before, .lumx-list-item .lumx-action-area__action[aria-selected=true][data-focus-visible-added]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-lumx-hover]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-focus-visible-added]::before {
|
|
8262
|
+
background-color: var(--lumx-color-primary-L4);
|
|
8263
|
+
}
|
|
8264
|
+
@media (hover: hover) {
|
|
8265
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]:hover::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action:hover::before {
|
|
8266
|
+
background-color: var(--lumx-color-primary-L4);
|
|
8267
|
+
}}
|
|
8268
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]:active::before, .lumx-list-item .lumx-action-area__action[aria-selected=true][data-lumx-active]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action:active::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-lumx-active]::before {
|
|
8256
8269
|
background-color: var(--lumx-color-primary-L3);
|
|
8257
8270
|
}
|
|
8258
8271
|
.lumx-list-item__link--is-disabled, .lumx-list-item__link[aria-disabled=true], .lumx-list-item:has(.lumx-action-area__action[aria-disabled=true]) {
|
package/lumx.css
CHANGED
|
@@ -8922,18 +8922,31 @@ table {
|
|
|
8922
8922
|
.lumx-list-item__link--is-highlighted:active {
|
|
8923
8923
|
background-color: var(--lumx-color-dark-L4);
|
|
8924
8924
|
}
|
|
8925
|
-
.lumx-list-item__link--is-selected
|
|
8925
|
+
.lumx-list-item__link--is-selected {
|
|
8926
8926
|
color: var(--lumx-color-primary-D2);
|
|
8927
8927
|
background-color: var(--lumx-color-primary-L5);
|
|
8928
8928
|
}
|
|
8929
|
-
.lumx-list-item__link--is-selected[data-lumx-hover], .lumx-list-item__link--is-selected[data-focus-visible-added]
|
|
8929
|
+
.lumx-list-item__link--is-selected[data-lumx-hover], .lumx-list-item__link--is-selected[data-focus-visible-added] {
|
|
8930
8930
|
background-color: var(--lumx-color-primary-L4);
|
|
8931
8931
|
}
|
|
8932
8932
|
@media (hover: hover) {
|
|
8933
|
-
.lumx-list-item__link--is-selected:hover
|
|
8933
|
+
.lumx-list-item__link--is-selected:hover {
|
|
8934
8934
|
background-color: var(--lumx-color-primary-L4);
|
|
8935
8935
|
}}
|
|
8936
|
-
.lumx-list-item__link--is-selected:active, .lumx-list-item__link--is-selected[data-lumx-active]
|
|
8936
|
+
.lumx-list-item__link--is-selected:active, .lumx-list-item__link--is-selected[data-lumx-active] {
|
|
8937
|
+
background-color: var(--lumx-color-primary-L3);
|
|
8938
|
+
}
|
|
8939
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action::before {
|
|
8940
|
+
background-color: var(--lumx-color-primary-L5);
|
|
8941
|
+
}
|
|
8942
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true][data-lumx-hover]::before, .lumx-list-item .lumx-action-area__action[aria-selected=true][data-focus-visible-added]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-lumx-hover]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-focus-visible-added]::before {
|
|
8943
|
+
background-color: var(--lumx-color-primary-L4);
|
|
8944
|
+
}
|
|
8945
|
+
@media (hover: hover) {
|
|
8946
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]:hover::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action:hover::before {
|
|
8947
|
+
background-color: var(--lumx-color-primary-L4);
|
|
8948
|
+
}}
|
|
8949
|
+
.lumx-list-item .lumx-action-area__action[aria-selected=true]:active::before, .lumx-list-item .lumx-action-area__action[aria-selected=true][data-lumx-active]::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action:active::before, .lumx-list-item__wrapper--is-selected .lumx-action-area__action[data-lumx-active]::before {
|
|
8937
8950
|
background-color: var(--lumx-color-primary-L3);
|
|
8938
8951
|
}
|
|
8939
8952
|
.lumx-list-item__link--is-disabled, .lumx-list-item__link[aria-disabled=true], .lumx-list-item:has(.lumx-action-area__action[aria-disabled=true]) {
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/dom": "^1.7.5",
|
|
10
|
-
"@lumx/icons": "^4.25.1-next.
|
|
10
|
+
"@lumx/icons": "^4.25.1-next.2",
|
|
11
11
|
"classnames": "^2.3.2",
|
|
12
12
|
"focus-visible": "^5.0.2",
|
|
13
13
|
"lodash": "4.18.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"version": "4.25.1-next.
|
|
69
|
+
"version": "4.25.1-next.2",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -41,11 +41,30 @@
|
|
|
41
41
|
@include lumx-list-item-highlighted;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
&__link--is-selected
|
|
45
|
-
& .lumx-action-area__action[aria-selected="true"]::before {
|
|
44
|
+
&__link--is-selected {
|
|
46
45
|
@include lumx-list-item-selected;
|
|
47
46
|
}
|
|
48
47
|
|
|
48
|
+
// Selected action: from `aria-selected` on the action (ex: combobox option) or from `isSelected` on the list item.
|
|
49
|
+
// (the background is on the action overlay `::before`, so the state selectors must come before `::before`)
|
|
50
|
+
& .#{$lumx-base-prefix}-action-area__action[aria-selected="true"],
|
|
51
|
+
&__wrapper--is-selected .#{$lumx-base-prefix}-action-area__action {
|
|
52
|
+
&::before {
|
|
53
|
+
background-color: lumx-color-variant("primary", "L5");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover::before,
|
|
57
|
+
&[data-lumx-hover]::before,
|
|
58
|
+
&[data-focus-visible-added]::before {
|
|
59
|
+
background-color: lumx-color-variant("primary", "L4");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:active::before,
|
|
63
|
+
&[data-lumx-active]::before {
|
|
64
|
+
background-color: lumx-color-variant("primary", "L3");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
49
68
|
&__link--is-disabled,
|
|
50
69
|
&__link[aria-disabled="true"],
|
|
51
70
|
&:has(.lumx-action-area__action[aria-disabled="true"]) {
|