@lumx/core 4.19.1-alpha.2 → 4.19.1-alpha.4
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 +40 -40
- package/js/components/Tabs/Tab.d.ts +14 -9
- package/lumx.css +40 -40
- package/package.json +2 -2
- package/scss/components/tabs/_index.scss +3 -2
package/components-and-utils.css
CHANGED
|
@@ -11124,7 +11124,7 @@ table {
|
|
|
11124
11124
|
.lumx-tabs__link {
|
|
11125
11125
|
text-decoration: none;
|
|
11126
11126
|
}
|
|
11127
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11127
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11128
11128
|
position: relative;
|
|
11129
11129
|
display: flex;
|
|
11130
11130
|
align-items: center;
|
|
@@ -11138,7 +11138,7 @@ table {
|
|
|
11138
11138
|
transition-duration: 150ms;
|
|
11139
11139
|
transition-property: border-radius, background-color, color;
|
|
11140
11140
|
}
|
|
11141
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11141
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11142
11142
|
position: absolute;
|
|
11143
11143
|
top: 0;
|
|
11144
11144
|
right: 0;
|
|
@@ -11153,76 +11153,76 @@ table {
|
|
|
11153
11153
|
transition-property: border-radius, border-width, border-color;
|
|
11154
11154
|
}
|
|
11155
11155
|
@media (hover: hover) {
|
|
11156
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11156
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11157
11157
|
border-width: var(--lumx-tabs-link-emphasis-low-state-hover-border-top-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-right-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-bottom-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-left-width);
|
|
11158
11158
|
}}
|
|
11159
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11159
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11160
11160
|
border-width: var(--lumx-tabs-link-emphasis-low-state-active-border-top-width) var(--lumx-tabs-link-emphasis-low-state-active-border-right-width) var(--lumx-tabs-link-emphasis-low-state-active-border-bottom-width) var(--lumx-tabs-link-emphasis-low-state-active-border-left-width);
|
|
11161
11161
|
}
|
|
11162
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) i {
|
|
11162
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) i {
|
|
11163
11163
|
margin-right: 8px;
|
|
11164
11164
|
}
|
|
11165
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) span {
|
|
11165
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) span {
|
|
11166
11166
|
font-family: var(--lumx-typography-custom-button-size-m-font-family);
|
|
11167
11167
|
font-size: var(--lumx-typography-custom-button-size-m-font-size);
|
|
11168
11168
|
font-weight: var(--lumx-typography-custom-button-size-m-font-weight);
|
|
11169
11169
|
text-transform: var(--lumx-material-button-text-transform);
|
|
11170
11170
|
}
|
|
11171
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11171
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11172
11172
|
color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-color);
|
|
11173
11173
|
background-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-background-color);
|
|
11174
11174
|
}
|
|
11175
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11175
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11176
11176
|
border-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-border-color);
|
|
11177
11177
|
}
|
|
11178
11178
|
@media (hover: hover) {
|
|
11179
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover {
|
|
11179
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover {
|
|
11180
11180
|
color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-color);
|
|
11181
11181
|
background-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-background-color);
|
|
11182
11182
|
}}
|
|
11183
11183
|
@media (hover: hover) {
|
|
11184
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11184
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11185
11185
|
border-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-border-color);
|
|
11186
11186
|
}}
|
|
11187
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active {
|
|
11187
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active {
|
|
11188
11188
|
color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-color);
|
|
11189
11189
|
background-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-background-color);
|
|
11190
11190
|
}
|
|
11191
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11191
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11192
11192
|
border-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-border-color);
|
|
11193
11193
|
}
|
|
11194
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11194
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11195
11195
|
outline: 2px solid var(--lumx-color-dark-N);
|
|
11196
11196
|
outline-offset: 2px;
|
|
11197
11197
|
}
|
|
11198
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11198
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11199
11199
|
color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-color);
|
|
11200
11200
|
background-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-background-color);
|
|
11201
11201
|
}
|
|
11202
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11202
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11203
11203
|
border-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-border-color);
|
|
11204
11204
|
}
|
|
11205
11205
|
@media (hover: hover) {
|
|
11206
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover {
|
|
11206
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover {
|
|
11207
11207
|
color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-color);
|
|
11208
11208
|
background-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-background-color);
|
|
11209
11209
|
}}
|
|
11210
11210
|
@media (hover: hover) {
|
|
11211
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11211
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11212
11212
|
border-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-border-color);
|
|
11213
11213
|
}}
|
|
11214
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active {
|
|
11214
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active {
|
|
11215
11215
|
color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-color);
|
|
11216
11216
|
background-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-background-color);
|
|
11217
11217
|
}
|
|
11218
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11218
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11219
11219
|
border-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-border-color);
|
|
11220
11220
|
}
|
|
11221
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11221
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11222
11222
|
outline: 2px solid var(--lumx-color-light-N);
|
|
11223
11223
|
outline-offset: 2px;
|
|
11224
11224
|
}
|
|
11225
|
-
.lumx-tabs__link--is-active {
|
|
11225
|
+
.lumx-tabs__link--is-active, .lumx-tabs__link[aria-current=page] {
|
|
11226
11226
|
position: relative;
|
|
11227
11227
|
display: flex;
|
|
11228
11228
|
align-items: center;
|
|
@@ -11236,7 +11236,7 @@ table {
|
|
|
11236
11236
|
transition-duration: 150ms;
|
|
11237
11237
|
transition-property: border-radius, background-color, color;
|
|
11238
11238
|
}
|
|
11239
|
-
.lumx-tabs__link--is-active::after {
|
|
11239
|
+
.lumx-tabs__link--is-active::after, .lumx-tabs__link[aria-current=page]::after {
|
|
11240
11240
|
position: absolute;
|
|
11241
11241
|
top: 0;
|
|
11242
11242
|
right: 0;
|
|
@@ -11251,72 +11251,72 @@ table {
|
|
|
11251
11251
|
transition-property: border-radius, border-width, border-color;
|
|
11252
11252
|
}
|
|
11253
11253
|
@media (hover: hover) {
|
|
11254
|
-
.lumx-tabs__link--is-active:hover::after {
|
|
11254
|
+
.lumx-tabs__link--is-active:hover::after, .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11255
11255
|
border-width: var(--lumx-tabs-link-emphasis-selected-state-hover-border-top-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-right-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-bottom-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-left-width);
|
|
11256
11256
|
}}
|
|
11257
|
-
.lumx-tabs__link--is-active:active::after {
|
|
11257
|
+
.lumx-tabs__link--is-active:active::after, .lumx-tabs__link[aria-current=page]:active::after {
|
|
11258
11258
|
border-width: var(--lumx-tabs-link-emphasis-selected-state-active-border-top-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-right-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-bottom-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-left-width);
|
|
11259
11259
|
}
|
|
11260
|
-
.lumx-tabs__link--is-active i {
|
|
11260
|
+
.lumx-tabs__link--is-active i, .lumx-tabs__link[aria-current=page] i {
|
|
11261
11261
|
margin-right: 8px;
|
|
11262
11262
|
}
|
|
11263
|
-
.lumx-tabs__link--is-active span {
|
|
11263
|
+
.lumx-tabs__link--is-active span, .lumx-tabs__link[aria-current=page] span {
|
|
11264
11264
|
font-family: var(--lumx-typography-custom-button-size-m-font-family);
|
|
11265
11265
|
font-size: var(--lumx-typography-custom-button-size-m-font-size);
|
|
11266
11266
|
font-weight: var(--lumx-typography-custom-button-size-m-font-weight);
|
|
11267
11267
|
text-transform: var(--lumx-material-button-text-transform);
|
|
11268
11268
|
}
|
|
11269
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active {
|
|
11269
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page] {
|
|
11270
11270
|
color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-color);
|
|
11271
11271
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-background-color);
|
|
11272
11272
|
}
|
|
11273
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active::after {
|
|
11273
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]::after {
|
|
11274
11274
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-border-color);
|
|
11275
11275
|
}
|
|
11276
11276
|
@media (hover: hover) {
|
|
11277
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover {
|
|
11277
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:hover {
|
|
11278
11278
|
color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-color);
|
|
11279
11279
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-background-color);
|
|
11280
11280
|
}}
|
|
11281
11281
|
@media (hover: hover) {
|
|
11282
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover::after {
|
|
11282
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11283
11283
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-border-color);
|
|
11284
11284
|
}}
|
|
11285
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active {
|
|
11285
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:active {
|
|
11286
11286
|
color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-color);
|
|
11287
11287
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-background-color);
|
|
11288
11288
|
}
|
|
11289
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active::after {
|
|
11289
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:active::after {
|
|
11290
11290
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-border-color);
|
|
11291
11291
|
}
|
|
11292
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active[data-focus-visible-added] {
|
|
11292
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active[data-focus-visible-added], .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page][data-focus-visible-added] {
|
|
11293
11293
|
outline: 2px solid var(--lumx-color-dark-N);
|
|
11294
11294
|
outline-offset: 2px;
|
|
11295
11295
|
}
|
|
11296
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active {
|
|
11296
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page] {
|
|
11297
11297
|
color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-color);
|
|
11298
11298
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-background-color);
|
|
11299
11299
|
}
|
|
11300
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active::after {
|
|
11300
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]::after {
|
|
11301
11301
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-border-color);
|
|
11302
11302
|
}
|
|
11303
11303
|
@media (hover: hover) {
|
|
11304
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover {
|
|
11304
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:hover {
|
|
11305
11305
|
color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-color);
|
|
11306
11306
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-background-color);
|
|
11307
11307
|
}}
|
|
11308
11308
|
@media (hover: hover) {
|
|
11309
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover::after {
|
|
11309
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11310
11310
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-border-color);
|
|
11311
11311
|
}}
|
|
11312
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active {
|
|
11312
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:active {
|
|
11313
11313
|
color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-color);
|
|
11314
11314
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-background-color);
|
|
11315
11315
|
}
|
|
11316
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active::after {
|
|
11316
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:active::after {
|
|
11317
11317
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-border-color);
|
|
11318
11318
|
}
|
|
11319
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active[data-focus-visible-added] {
|
|
11319
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active[data-focus-visible-added], .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page][data-focus-visible-added] {
|
|
11320
11320
|
outline: 2px solid var(--lumx-color-light-N);
|
|
11321
11321
|
outline-offset: 2px;
|
|
11322
11322
|
}
|
|
@@ -21,6 +21,11 @@ export interface CommonTabProps extends HasClassName {
|
|
|
21
21
|
isActive?: boolean;
|
|
22
22
|
/** Synonym for `isActive` — `'page'` marks the tab as active (WAI-ARIA nav-link convention). */
|
|
23
23
|
'aria-current'?: 'page' | boolean;
|
|
24
|
+
/**
|
|
25
|
+
* WAI-ARIA `tab` role, resolved by the framework wrapper from `TabProvider` presence:
|
|
26
|
+
* `'tab'` inside a provider (classic tab mode), `undefined` outside (nav-link mode).
|
|
27
|
+
*/
|
|
28
|
+
role?: 'tab';
|
|
24
29
|
/** Whether the component is disabled or not. */
|
|
25
30
|
isDisabled?: boolean;
|
|
26
31
|
/** Label content. */
|
|
@@ -41,8 +46,6 @@ export interface CommonTabProps extends HasClassName {
|
|
|
41
46
|
tabIndexProp?: string;
|
|
42
47
|
/** Name of the prop used to attach the keypress event (framework-dependent). */
|
|
43
48
|
keyPressProp?: string;
|
|
44
|
-
/** ID applied to the tab button element (for aria-labelledby on the panel). */
|
|
45
|
-
tabId?: string;
|
|
46
49
|
/** ID of the associated tab panel (for aria-controls). */
|
|
47
50
|
tabPanelId?: string;
|
|
48
51
|
/** Icon component injected by the framework wrapper. */
|
|
@@ -61,12 +64,13 @@ export type TabAsProps<E extends TabElement = 'button'> = {
|
|
|
61
64
|
as?: E;
|
|
62
65
|
} & (E extends 'a' ? HasRequiredLinkHref<'a'> : unknown);
|
|
63
66
|
/**
|
|
64
|
-
* Props of the `Tab` component. Polymorphic on `as
|
|
65
|
-
*
|
|
66
|
-
* branch is `unknown` (not a record) to avoid
|
|
67
|
+
* Props of the `Tab` component. Polymorphic on `as` (element selection only): `as` picks the
|
|
68
|
+
* rendered element, while **mode is driven by `TabProvider` presence** (via the wrapper-resolved
|
|
69
|
+
* `role`), not by `as`. The `href` conditional's false branch is `unknown` (not a record) to avoid
|
|
70
|
+
* widening `keyof TabProps`.
|
|
67
71
|
*/
|
|
68
72
|
export type TabProps<E extends TabElement = 'button'> = CommonTabProps & TabAsProps<E>;
|
|
69
|
-
export type TabPropsToOverride = 'as' | 'isAnyDisabled' | 'shouldActivateOnFocus' | 'changeToTab' | 'tabIndex' | 'tabIndexProp' | 'keyPressProp' | '
|
|
73
|
+
export type TabPropsToOverride = 'as' | 'role' | 'isAnyDisabled' | 'shouldActivateOnFocus' | 'changeToTab' | 'tabIndex' | 'tabIndexProp' | 'keyPressProp' | 'tabPanelId' | 'Icon' | 'Text';
|
|
70
74
|
/**
|
|
71
75
|
* Component display name.
|
|
72
76
|
*/
|
|
@@ -80,10 +84,11 @@ export declare const DEFAULT_PROPS: Partial<TabProps>;
|
|
|
80
84
|
*/
|
|
81
85
|
export declare const CLASSNAME = "lumx-tabs__link";
|
|
82
86
|
/**
|
|
83
|
-
* Tab component. Two modes keyed on `
|
|
87
|
+
* Tab component. Two modes keyed on `TabProvider` presence (via the wrapper-resolved `role`):
|
|
88
|
+
* tab mode (`role === 'tab'`, inside a provider) implements the WAI-ARIA `tab` role
|
|
84
89
|
* {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label};
|
|
85
|
-
* nav-link (
|
|
86
|
-
*
|
|
90
|
+
* nav-link mode (no provider) renders plain link semantics (`aria-current`, no tab role/aria).
|
|
91
|
+
* `as` only selects the rendered element and applies in both modes.
|
|
87
92
|
*
|
|
88
93
|
* @param props Component props.
|
|
89
94
|
* @param ref Component ref.
|
package/lumx.css
CHANGED
|
@@ -11805,7 +11805,7 @@ table {
|
|
|
11805
11805
|
.lumx-tabs__link {
|
|
11806
11806
|
text-decoration: none;
|
|
11807
11807
|
}
|
|
11808
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11808
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11809
11809
|
position: relative;
|
|
11810
11810
|
display: flex;
|
|
11811
11811
|
align-items: center;
|
|
@@ -11819,7 +11819,7 @@ table {
|
|
|
11819
11819
|
transition-duration: 150ms;
|
|
11820
11820
|
transition-property: border-radius, background-color, color;
|
|
11821
11821
|
}
|
|
11822
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11822
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11823
11823
|
position: absolute;
|
|
11824
11824
|
top: 0;
|
|
11825
11825
|
right: 0;
|
|
@@ -11834,76 +11834,76 @@ table {
|
|
|
11834
11834
|
transition-property: border-radius, border-width, border-color;
|
|
11835
11835
|
}
|
|
11836
11836
|
@media (hover: hover) {
|
|
11837
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11837
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11838
11838
|
border-width: var(--lumx-tabs-link-emphasis-low-state-hover-border-top-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-right-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-bottom-width) var(--lumx-tabs-link-emphasis-low-state-hover-border-left-width);
|
|
11839
11839
|
}}
|
|
11840
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11840
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11841
11841
|
border-width: var(--lumx-tabs-link-emphasis-low-state-active-border-top-width) var(--lumx-tabs-link-emphasis-low-state-active-border-right-width) var(--lumx-tabs-link-emphasis-low-state-active-border-bottom-width) var(--lumx-tabs-link-emphasis-low-state-active-border-left-width);
|
|
11842
11842
|
}
|
|
11843
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) i {
|
|
11843
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) i {
|
|
11844
11844
|
margin-right: 8px;
|
|
11845
11845
|
}
|
|
11846
|
-
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) span {
|
|
11846
|
+
.lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) span {
|
|
11847
11847
|
font-family: var(--lumx-typography-custom-button-size-m-font-family);
|
|
11848
11848
|
font-size: var(--lumx-typography-custom-button-size-m-font-size);
|
|
11849
11849
|
font-weight: var(--lumx-typography-custom-button-size-m-font-weight);
|
|
11850
11850
|
text-transform: var(--lumx-material-button-text-transform);
|
|
11851
11851
|
}
|
|
11852
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11852
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11853
11853
|
color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-color);
|
|
11854
11854
|
background-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-background-color);
|
|
11855
11855
|
}
|
|
11856
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11856
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11857
11857
|
border-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-light-border-color);
|
|
11858
11858
|
}
|
|
11859
11859
|
@media (hover: hover) {
|
|
11860
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover {
|
|
11860
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover {
|
|
11861
11861
|
color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-color);
|
|
11862
11862
|
background-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-background-color);
|
|
11863
11863
|
}}
|
|
11864
11864
|
@media (hover: hover) {
|
|
11865
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11865
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11866
11866
|
border-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-light-border-color);
|
|
11867
11867
|
}}
|
|
11868
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active {
|
|
11868
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active {
|
|
11869
11869
|
color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-color);
|
|
11870
11870
|
background-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-background-color);
|
|
11871
11871
|
}
|
|
11872
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11872
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11873
11873
|
border-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-light-border-color);
|
|
11874
11874
|
}
|
|
11875
|
-
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11875
|
+
.lumx-tabs--theme-light .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11876
11876
|
outline: 2px solid var(--lumx-color-dark-N);
|
|
11877
11877
|
outline-offset: 2px;
|
|
11878
11878
|
}
|
|
11879
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled) {
|
|
11879
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled) {
|
|
11880
11880
|
color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-color);
|
|
11881
11881
|
background-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-background-color);
|
|
11882
11882
|
}
|
|
11883
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)::after {
|
|
11883
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)::after {
|
|
11884
11884
|
border-color: var(--lumx-tabs-link-emphasis-low-state-default-theme-dark-border-color);
|
|
11885
11885
|
}
|
|
11886
11886
|
@media (hover: hover) {
|
|
11887
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover {
|
|
11887
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover {
|
|
11888
11888
|
color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-color);
|
|
11889
11889
|
background-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-background-color);
|
|
11890
11890
|
}}
|
|
11891
11891
|
@media (hover: hover) {
|
|
11892
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11892
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):hover::after {
|
|
11893
11893
|
border-color: var(--lumx-tabs-link-emphasis-low-state-hover-theme-dark-border-color);
|
|
11894
11894
|
}}
|
|
11895
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active {
|
|
11895
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active {
|
|
11896
11896
|
color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-color);
|
|
11897
11897
|
background-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-background-color);
|
|
11898
11898
|
}
|
|
11899
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11899
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled):active::after {
|
|
11900
11900
|
border-color: var(--lumx-tabs-link-emphasis-low-state-active-theme-dark-border-color);
|
|
11901
11901
|
}
|
|
11902
|
-
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11902
|
+
.lumx-tabs--theme-dark .lumx-tabs__link:not(.lumx-tabs__link--is-active):not([aria-current=page]):not(.lumx-tabs__link--is-disabled)[data-focus-visible-added] {
|
|
11903
11903
|
outline: 2px solid var(--lumx-color-light-N);
|
|
11904
11904
|
outline-offset: 2px;
|
|
11905
11905
|
}
|
|
11906
|
-
.lumx-tabs__link--is-active {
|
|
11906
|
+
.lumx-tabs__link--is-active, .lumx-tabs__link[aria-current=page] {
|
|
11907
11907
|
position: relative;
|
|
11908
11908
|
display: flex;
|
|
11909
11909
|
align-items: center;
|
|
@@ -11917,7 +11917,7 @@ table {
|
|
|
11917
11917
|
transition-duration: 150ms;
|
|
11918
11918
|
transition-property: border-radius, background-color, color;
|
|
11919
11919
|
}
|
|
11920
|
-
.lumx-tabs__link--is-active::after {
|
|
11920
|
+
.lumx-tabs__link--is-active::after, .lumx-tabs__link[aria-current=page]::after {
|
|
11921
11921
|
position: absolute;
|
|
11922
11922
|
top: 0;
|
|
11923
11923
|
right: 0;
|
|
@@ -11932,72 +11932,72 @@ table {
|
|
|
11932
11932
|
transition-property: border-radius, border-width, border-color;
|
|
11933
11933
|
}
|
|
11934
11934
|
@media (hover: hover) {
|
|
11935
|
-
.lumx-tabs__link--is-active:hover::after {
|
|
11935
|
+
.lumx-tabs__link--is-active:hover::after, .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11936
11936
|
border-width: var(--lumx-tabs-link-emphasis-selected-state-hover-border-top-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-right-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-bottom-width) var(--lumx-tabs-link-emphasis-selected-state-hover-border-left-width);
|
|
11937
11937
|
}}
|
|
11938
|
-
.lumx-tabs__link--is-active:active::after {
|
|
11938
|
+
.lumx-tabs__link--is-active:active::after, .lumx-tabs__link[aria-current=page]:active::after {
|
|
11939
11939
|
border-width: var(--lumx-tabs-link-emphasis-selected-state-active-border-top-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-right-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-bottom-width) var(--lumx-tabs-link-emphasis-selected-state-active-border-left-width);
|
|
11940
11940
|
}
|
|
11941
|
-
.lumx-tabs__link--is-active i {
|
|
11941
|
+
.lumx-tabs__link--is-active i, .lumx-tabs__link[aria-current=page] i {
|
|
11942
11942
|
margin-right: 8px;
|
|
11943
11943
|
}
|
|
11944
|
-
.lumx-tabs__link--is-active span {
|
|
11944
|
+
.lumx-tabs__link--is-active span, .lumx-tabs__link[aria-current=page] span {
|
|
11945
11945
|
font-family: var(--lumx-typography-custom-button-size-m-font-family);
|
|
11946
11946
|
font-size: var(--lumx-typography-custom-button-size-m-font-size);
|
|
11947
11947
|
font-weight: var(--lumx-typography-custom-button-size-m-font-weight);
|
|
11948
11948
|
text-transform: var(--lumx-material-button-text-transform);
|
|
11949
11949
|
}
|
|
11950
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active {
|
|
11950
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page] {
|
|
11951
11951
|
color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-color);
|
|
11952
11952
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-background-color);
|
|
11953
11953
|
}
|
|
11954
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active::after {
|
|
11954
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]::after {
|
|
11955
11955
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-light-border-color);
|
|
11956
11956
|
}
|
|
11957
11957
|
@media (hover: hover) {
|
|
11958
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover {
|
|
11958
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:hover {
|
|
11959
11959
|
color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-color);
|
|
11960
11960
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-background-color);
|
|
11961
11961
|
}}
|
|
11962
11962
|
@media (hover: hover) {
|
|
11963
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover::after {
|
|
11963
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:hover::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11964
11964
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-light-border-color);
|
|
11965
11965
|
}}
|
|
11966
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active {
|
|
11966
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:active {
|
|
11967
11967
|
color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-color);
|
|
11968
11968
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-background-color);
|
|
11969
11969
|
}
|
|
11970
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active::after {
|
|
11970
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active:active::after, .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page]:active::after {
|
|
11971
11971
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-light-border-color);
|
|
11972
11972
|
}
|
|
11973
|
-
.lumx-tabs--theme-light .lumx-tabs__link--is-active[data-focus-visible-added] {
|
|
11973
|
+
.lumx-tabs--theme-light .lumx-tabs__link--is-active[data-focus-visible-added], .lumx-tabs--theme-light .lumx-tabs__link[aria-current=page][data-focus-visible-added] {
|
|
11974
11974
|
outline: 2px solid var(--lumx-color-dark-N);
|
|
11975
11975
|
outline-offset: 2px;
|
|
11976
11976
|
}
|
|
11977
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active {
|
|
11977
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page] {
|
|
11978
11978
|
color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-color);
|
|
11979
11979
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-background-color);
|
|
11980
11980
|
}
|
|
11981
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active::after {
|
|
11981
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]::after {
|
|
11982
11982
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-default-theme-dark-border-color);
|
|
11983
11983
|
}
|
|
11984
11984
|
@media (hover: hover) {
|
|
11985
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover {
|
|
11985
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:hover {
|
|
11986
11986
|
color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-color);
|
|
11987
11987
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-background-color);
|
|
11988
11988
|
}}
|
|
11989
11989
|
@media (hover: hover) {
|
|
11990
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover::after {
|
|
11990
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:hover::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:hover::after {
|
|
11991
11991
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-hover-theme-dark-border-color);
|
|
11992
11992
|
}}
|
|
11993
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active {
|
|
11993
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:active {
|
|
11994
11994
|
color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-color);
|
|
11995
11995
|
background-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-background-color);
|
|
11996
11996
|
}
|
|
11997
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active::after {
|
|
11997
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active:active::after, .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page]:active::after {
|
|
11998
11998
|
border-color: var(--lumx-tabs-link-emphasis-selected-state-active-theme-dark-border-color);
|
|
11999
11999
|
}
|
|
12000
|
-
.lumx-tabs--theme-dark .lumx-tabs__link--is-active[data-focus-visible-added] {
|
|
12000
|
+
.lumx-tabs--theme-dark .lumx-tabs__link--is-active[data-focus-visible-added], .lumx-tabs--theme-dark .lumx-tabs__link[aria-current=page][data-focus-visible-added] {
|
|
12001
12001
|
outline: 2px solid var(--lumx-color-light-N);
|
|
12002
12002
|
outline-offset: 2px;
|
|
12003
12003
|
}
|
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.19.1-alpha.
|
|
10
|
+
"@lumx/icons": "^4.19.1-alpha.4",
|
|
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.19.1-alpha.
|
|
69
|
+
"version": "4.19.1-alpha.4",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
&__link {
|
|
19
19
|
text-decoration: none;
|
|
20
20
|
|
|
21
|
-
&:not(&--is-active):not(&--is-disabled) {
|
|
21
|
+
&:not(&--is-active):not([aria-current="page"]):not(&--is-disabled) {
|
|
22
22
|
@include lumx-tabs-link(lumx-base-const("emphasis", "LOW"));
|
|
23
23
|
|
|
24
24
|
#{$self}--theme-light & {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&--is-active
|
|
33
|
+
&--is-active,
|
|
34
|
+
&[aria-current="page"] {
|
|
34
35
|
@include lumx-tabs-link(lumx-base-const("emphasis", "SELECTED"));
|
|
35
36
|
|
|
36
37
|
#{$self}--theme-light & {
|