@ethlete/components 1.0.0-next.100 → 1.0.0-next.101
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 +39 -0
- package/design/banner.ts +1 -1
- package/design/breadcrumb.ts +0 -1
- package/design/button.ts +0 -2
- package/design/card.ts +1 -1
- package/design/dialog.ts +1 -7
- package/design/grid.ts +3 -3
- package/design/masonry.ts +3 -3
- package/design/menu.ts +5 -3
- package/design/notification.ts +0 -1
- package/design/scheduler.ts +1 -1
- package/design/sdk/components/accent-on-light/accent-on-light.css +5 -5
- package/design/sdk/components/accordion/accordion.css +3 -3
- package/design/sdk/components/action-sheet/action-sheet.css +13 -13
- package/design/sdk/components/action-sheet/action-sheet.ts +5 -3
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +5 -5
- package/design/sdk/components/avatar/avatar.css +3 -3
- package/design/sdk/components/badge/badge.css +3 -3
- package/design/sdk/components/banner/banner.css +4 -4
- package/design/sdk/components/bracket/bracket.css +8 -11
- package/design/sdk/components/breadcrumb/breadcrumb.css +4 -4
- package/design/sdk/components/button/button.css +3 -13
- package/design/sdk/components/calendar/calendar.css +7 -7
- package/design/sdk/components/card/card.css +4 -4
- package/design/sdk/components/carousel/carousel.css +6 -6
- package/design/sdk/components/chart/chart.css +8 -8
- package/design/sdk/components/checkbox/checkbox.css +2 -2
- package/design/sdk/components/chip/chip.css +4 -4
- package/design/sdk/components/copy-button/copy-button.css +3 -3
- package/design/sdk/components/description-list/description-list.css +2 -2
- package/design/sdk/components/dialog/dialog.css +4 -4
- package/design/sdk/components/divider/divider.css +2 -2
- package/design/sdk/components/empty-state/empty-state.css +4 -4
- package/design/sdk/components/floating-action/floating-action.css +4 -4
- package/design/sdk/components/grid/grid.css +4 -4
- package/design/sdk/components/input/input.css +13 -22
- package/design/sdk/components/kbd/kbd.css +2 -2
- package/design/sdk/components/loader/loader.css +6 -6
- package/design/sdk/components/masonry/masonry.css +2 -2
- package/design/sdk/components/match/match.css +5 -8
- package/design/sdk/components/menu/menu.css +2 -2
- package/design/sdk/components/menu/menu.ts +2 -2
- package/design/sdk/components/notification/notification.css +6 -6
- package/design/sdk/components/otp-input/otp-input.css +8 -8
- package/design/sdk/components/pagination/pagination.css +2 -2
- package/design/sdk/components/picture/picture.css +5 -5
- package/design/sdk/components/progress-steps/progress-steps.css +6 -6
- package/design/sdk/components/query-error/query-error.css +5 -11
- package/design/sdk/components/radio-group/radio-group.css +2 -2
- package/design/sdk/components/scheduler/scheduler.css +9 -15
- package/design/sdk/components/scrollable/scrollable.css +5 -5
- package/design/sdk/components/scrollbar/scrollbar.css +3 -3
- package/design/sdk/components/select/select.css +1 -1
- package/design/sdk/components/skeleton/skeleton.css +2 -2
- package/design/sdk/components/slider/slider.css +8 -13
- package/design/sdk/components/standings/standings.css +7 -8
- package/design/sdk/components/stat-tile/stat-tile.css +3 -3
- package/design/sdk/components/stream/stream.css +7 -13
- package/design/sdk/components/table/table.css +13 -13
- package/design/sdk/components/tabs/tabs.css +2 -2
- package/design/sdk/components/textarea/textarea.css +13 -22
- package/design/sdk/components/timeline/timeline.css +4 -4
- package/design/sdk/components/toolbar/toolbar.css +6 -6
- package/design/sdk/components/tooltip/tooltip.css +3 -3
- package/design/sdk/components/tooltip/tooltip.ts +1 -1
- package/design/sdk/components/tree/selected-tint.css +3 -3
- package/design/sdk/foundations/colors/colors.css +363 -421
- package/design/sdk/foundations/colors/colors.ts +27 -25
- package/design/sdk/foundations/colors/shared/contrast.ts +10 -10
- package/design/sdk/foundations/elevation/elevation.css +2 -2
- package/design/sdk/foundations/elevation/elevation.ts +1 -1
- package/design/sdk/foundations/elevation/shared/elevation/scene.css +16 -11
- package/design/sdk/ready.json +4 -109
- package/design/tabs.ts +1 -1
- package/design/toggletip.ts +85 -0
- package/fesm2022/ethlete-components.mjs +725 -417
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/generators.json +10 -0
- package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
- package/generators/migrate-overlay-and-column-api/migration.js +39 -0
- package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
- package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
- package/generators/migrate-overlay-and-column-api/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
- package/generators/migrate-tabs-active-underline/migration.js +31 -0
- package/generators/migrate-tabs-active-underline/schema.json +26 -0
- package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
- package/migrations.json +18 -0
- package/package.json +2 -2
- package/src/lib/accordion/accordion.component.css +10 -11
- package/src/lib/avatar/avatar-group.component.css +1 -1
- package/src/lib/avatar/avatar.component.css +3 -3
- package/src/lib/badge/badge.component.css +13 -9
- package/src/lib/banner/banner.component.css +5 -5
- package/src/lib/bracket/bracket-default-continue.component.css +2 -2
- package/src/lib/bracket/bracket-default-final-match.component.css +6 -6
- package/src/lib/bracket/bracket-default-round-header.component.css +2 -2
- package/src/lib/bracket/bracket-default-section-title.component.css +1 -1
- package/src/lib/bracket/bracket-pick-card.component.css +21 -21
- package/src/lib/bracket/bracket-rounds-list.component.css +1 -1
- package/src/lib/bracket/bracket.component.css +2 -2
- package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +5 -1
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +3 -3
- package/src/lib/breadcrumb/breadcrumb.component.css +5 -6
- package/src/lib/button/button-properties-styles.component.css +12 -12
- package/src/lib/button/button.component.css +52 -35
- package/src/lib/button/fab.component.css +17 -20
- package/src/lib/button/icon-button.component.css +15 -19
- package/src/lib/button/split-button.component.css +11 -14
- package/src/lib/button/text-button.component.css +1 -1
- package/src/lib/button/window-control-button.component.css +21 -32
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +1 -1
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +3 -3
- package/src/lib/calendar/calendar.component.css +21 -23
- package/src/lib/card/card.component.css +5 -5
- package/src/lib/carousel/carousel-autoplay-styles.component.css +2 -8
- package/src/lib/carousel/carousel.component.css +7 -19
- package/src/lib/chart/bar-chart.component.css +6 -6
- package/src/lib/chart/chart-grid.component.css +1 -1
- package/src/lib/chart/chart-legend.component.css +2 -2
- package/src/lib/chart/chart-tooltip.component.css +2 -2
- package/src/lib/chart/line-chart-tooltip.component.css +2 -2
- package/src/lib/chart/line-chart.component.css +11 -11
- package/src/lib/chart/pie-chart.component.css +8 -8
- package/src/lib/chart/sankey-chart.component.css +13 -13
- package/src/lib/chip/chip.component.css +15 -17
- package/src/lib/command-palette/command-palette-item.component.css +5 -5
- package/src/lib/command-palette/command-palette.component.css +3 -3
- package/src/lib/description-list/description-list.component.css +2 -2
- package/src/lib/divider/divider.component.css +2 -2
- package/src/lib/empty-state/empty-state.component.css +4 -4
- package/src/lib/floating-action/floating-action-styles.component.css +3 -3
- package/src/lib/focus-ring/focus-ring-styles.component.css +1 -1
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +8 -8
- package/src/lib/forms/cascader/cascader-panel.component.css +27 -24
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +3 -3
- package/src/lib/forms/cascader/cascader.component.css +1 -1
- package/src/lib/forms/checkbox/checkbox.component.css +26 -39
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +3 -3
- package/src/lib/forms/choice-field/choice-field.component.css +7 -7
- package/src/lib/forms/color-input/color-input.component.css +2 -3
- package/src/lib/forms/color-input/color-picker-panel.component.css +16 -15
- package/src/lib/forms/date-time/date-input/date-input.component.css +1 -1
- package/src/lib/forms/date-time/date-picker-panel.component.css +8 -5
- package/src/lib/forms/date-time/date-range-presets.component.css +2 -2
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +4 -4
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +3 -3
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +3 -3
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +2 -2
- package/src/lib/forms/date-time/time-input/time-input.component.css +1 -1
- package/src/lib/forms/description/description.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-crop.component.css +8 -8
- package/src/lib/forms/dropzone/dropzone-item.component.css +5 -5
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +5 -5
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +3 -3
- package/src/lib/forms/dropzone/dropzone.component.css +20 -22
- package/src/lib/forms/form-field/counter.component.css +2 -2
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +12 -14
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +1 -1
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +22 -35
- package/src/lib/forms/form-field/form-field.component.css +9 -10
- package/src/lib/forms/form-field/form-support-styles.component.css +2 -2
- package/src/lib/forms/form-field/headless/label.directive.css +2 -2
- package/src/lib/forms/form-field/hint.component.css +2 -2
- package/src/lib/forms/input/input.component.css +1 -1
- package/src/lib/forms/input/number-input.component.css +5 -5
- package/src/lib/forms/input/password-input.component.css +7 -8
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +7 -10
- package/src/lib/forms/otp-input/otp-input.component.css +11 -15
- package/src/lib/forms/phone-input/phone-input.component.css +4 -5
- package/src/lib/forms/rating/rating.component.css +8 -9
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +6 -6
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +7 -4
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +6 -6
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +4 -4
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +12 -9
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +6 -8
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +7 -7
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +2 -2
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +4 -4
- package/src/lib/forms/select/select-extras-styles.component.css +10 -13
- package/src/lib/forms/select/select-option-group.component.css +2 -2
- package/src/lib/forms/select/select-option-styles.component.css +6 -6
- package/src/lib/forms/select/select-panel.component.css +13 -10
- package/src/lib/forms/select/select.component.css +4 -4
- package/src/lib/forms/selection-card-styles.component.css +10 -14
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +11 -21
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +4 -4
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +11 -21
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +4 -4
- package/src/lib/forms/selection-list/radio-group/radio.component.css +10 -20
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +7 -7
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +16 -15
- package/src/lib/forms/slider/range-slider.component.css +18 -24
- package/src/lib/forms/slider/slider.component.css +18 -24
- package/src/lib/forms/switch/switch.component.css +19 -22
- package/src/lib/forms/tag-input/tag-input.component.css +1 -1
- package/src/lib/forms/textarea/textarea.component.css +1 -1
- package/src/lib/grid/grid-debug.component.css +18 -18
- package/src/lib/grid/grid-item-default-actions.component.css +2 -2
- package/src/lib/grid/grid-item.component.css +3 -4
- package/src/lib/grid/grid.component.css +2 -2
- package/src/lib/kbd/kbd.component.css +3 -3
- package/src/lib/loader/brand-loader/brand-loader.component.css +3 -3
- package/src/lib/loader/progress-bar/progress-bar.component.css +1 -1
- package/src/lib/loader/spinner/spinner-styles.component.css +1 -1
- package/src/lib/match/match-card.component.css +18 -29
- package/src/lib/match/match-participant.component.css +11 -11
- package/src/lib/match/match-score.component.css +1 -1
- package/src/lib/match/match-scoreline.component.css +3 -3
- package/src/lib/menu/menu-group-label.component.css +1 -1
- package/src/lib/menu/menu-item-shortcut.component.css +1 -1
- package/src/lib/menu/menu-item-submenu-icon.component.css +1 -1
- package/src/lib/menu/menu-search-styles.component.css +3 -3
- package/src/lib/menu/menu-selection-item.component.css +2 -2
- package/src/lib/menu/menu-separator.component.css +1 -1
- package/src/lib/menu/menu.component.css +13 -10
- package/src/lib/notification/notification.component.css +10 -10
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +2 -2
- package/src/lib/overlay/floating-tip-styles.component.css +4 -4
- package/src/lib/overlay/overlay-container.component.css +9 -6
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +2 -2
- package/src/lib/overlay/strategies/sheet-styles.component.css +2 -2
- package/src/lib/pagination/pagination.component.css +9 -10
- package/src/lib/progress-steps/progress-step.component.css +19 -19
- package/src/lib/query-error/query-error.component.css +1 -1
- package/src/lib/scheduler/scheduler-agenda-view.component.css +8 -8
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +4 -1
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +12 -10
- package/src/lib/scheduler/scheduler-edit-color.component.css +2 -2
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +2 -2
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +4 -4
- package/src/lib/scheduler/scheduler-month-view.component.css +16 -18
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +24 -26
- package/src/lib/scheduler/scheduler.component.css +1 -1
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +2 -2
- package/src/lib/scrollable/headless/scrollable-masks.component.css +2 -2
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +2 -2
- package/src/lib/scrollbar/scrollbar.component.css +2 -2
- package/src/lib/skeleton/skeleton.component.css +2 -8
- package/src/lib/standings/standings-pick.component.css +13 -21
- package/src/lib/standings/standings.component.css +24 -30
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +2 -2
- package/src/lib/stat-tile/stat-tile.component.css +5 -5
- package/src/lib/stream/consent/stream-consent.component.css +2 -2
- package/src/lib/stream/error/stream-player-error.component.css +2 -2
- package/src/lib/stream/loading/stream-player-loading.component.css +3 -3
- package/src/lib/stream/pip/pip-slot-placeholder.component.css +2 -2
- package/src/lib/stream/pip/pip-stage-styles.component.css +3 -6
- package/src/lib/stream/pip/pip-window.component.css +4 -5
- package/src/lib/stream/stream-overlay-card-styles.component.css +4 -4
- package/src/lib/stream/stream-player-slot-styles.component.css +1 -1
- package/src/lib/table/table-column-menu-trigger.component.css +1 -1
- package/src/lib/table/table-expander-cell.component.css +2 -2
- package/src/lib/table/table-filter-trigger.component.css +4 -4
- package/src/lib/table/table-group-header-row.component.css +1 -1
- package/src/lib/table/table-reorder-overlay.component.css +4 -4
- package/src/lib/table/table-resize-grip.component.css +4 -5
- package/src/lib/table/table-row-box-styles.component.css +7 -11
- package/src/lib/table/table-select-cell.component.css +7 -7
- package/src/lib/table/table-sort-priority-styles.component.css +1 -1
- package/src/lib/table/table.component.css +37 -49
- package/src/lib/tabs/tab-bar-styles.component.css +44 -8
- package/src/lib/time-picker/time-picker.component.css +16 -25
- package/src/lib/timeline/timeline-item.component.css +7 -10
- package/src/lib/timeline/timeline.component.css +1 -1
- package/src/lib/toggletip/toggletip.component.css +6 -1
- package/src/lib/toolbar/toolbar.component.css +1 -1
- package/src/lib/tooltip/tooltip.component.css +4 -4
- package/src/lib/tree/tree.component.css +18 -18
- package/types/ethlete-components.d.ts +85 -28
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
& + .et-select-option {
|
|
71
71
|
border-block-start: var(--et-select-option-divider-width) solid
|
|
72
|
-
var(--et-select-option-divider-color, var(--et-surface-border
|
|
72
|
+
var(--et-select-option-divider-color, var(--et-surface-border, currentColor));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&:where([data-selected]) {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&:where([data-active][data-active-source='keyboard']) {
|
|
81
|
-
outline: 2px solid var(--et-select-option-outline-color-active, var(--et-
|
|
81
|
+
outline: 2px solid var(--et-select-option-outline-color-active, var(--et-tone-text, currentColor));
|
|
82
82
|
outline-offset: -2px;
|
|
83
83
|
background: var(--et-select-option-background-active, transparent);
|
|
84
84
|
color: var(--et-select-option-color-active, var(--_et-select-option-color-rest));
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
&:where([data-active]:hover) {
|
|
89
89
|
background: var(
|
|
90
90
|
--et-select-option-background-hover,
|
|
91
|
-
color-mix(in srgb, var(--et-surface-
|
|
91
|
+
color-mix(in srgb, var(--et-surface-tint, rgb(255 255 255)) 12%, transparent)
|
|
92
92
|
);
|
|
93
93
|
color: var(--et-select-option-color-hover, var(--_et-select-option-color-rest));
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&:active {
|
|
98
|
-
background: color-mix(in srgb, var(--et-surface-
|
|
98
|
+
background: color-mix(in srgb, var(--et-surface-tint, rgb(255 255 255)) 20%, transparent);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&:where([aria-disabled='true']) {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
inline-size: var(--et-select-option-check-size);
|
|
116
116
|
block-size: var(--et-select-option-check-size);
|
|
117
117
|
order: var(--et-select-option-check-order);
|
|
118
|
-
color: var(--et-select-option-check-color, var(--et-
|
|
118
|
+
color: var(--et-select-option-check-color, var(--et-tone-text, currentColor));
|
|
119
119
|
/* hidden via opacity, NOT visibility — an explicit `visibility: visible` would punch
|
|
120
120
|
through the pane's positioning phase (`visibility: hidden`) and paint the check
|
|
121
121
|
before the panel itself becomes visible */
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&.et-select-create-option {
|
|
148
|
-
color: var(--et-
|
|
148
|
+
color: var(--et-tone-text, currentColor);
|
|
149
149
|
|
|
150
150
|
.et-select-option-check {
|
|
151
151
|
display: none;
|
|
@@ -57,13 +57,16 @@
|
|
|
57
57
|
overflow: clip;
|
|
58
58
|
}
|
|
59
59
|
border-radius: var(--_et-overlay-surface-radius, 10px);
|
|
60
|
-
border: 1px solid var(--et-select-panel-border-color, var(--et-surface-border
|
|
61
|
-
background: var(--et-select-panel-background, var(--et-surface-background
|
|
62
|
-
color: var(--et-select-panel-color, var(--et-surface-
|
|
60
|
+
border: 1px solid var(--et-select-panel-border-color, var(--et-surface-border, rgb(255 255 255 / 0.1)));
|
|
61
|
+
background: var(--et-select-panel-background, var(--et-surface-background, rgb(32 32 32)));
|
|
62
|
+
color: var(--et-select-panel-color, var(--et-surface-text, rgb(244 244 245)));
|
|
63
63
|
/* base font size for panel content beyond the options themselves (custom search inputs
|
|
64
64
|
etc.) — the detached pane would otherwise inherit the root font size (10px here) */
|
|
65
65
|
font-size: var(--et-select-option-font-size, 14px);
|
|
66
|
-
box-shadow: var(
|
|
66
|
+
box-shadow: var(
|
|
67
|
+
--et-anchored-panel-shadow,
|
|
68
|
+
0 10px 24px color-mix(in srgb, var(--et-shadow-color, rgb(0 0 0)) 16%, transparent)
|
|
69
|
+
);
|
|
67
70
|
|
|
68
71
|
/* the listbox wraps only the options, and the extras wrapper only the state/action rows —
|
|
69
72
|
both are structural (ARIA grouping); `display: contents` keeps every child in the panel's
|
|
@@ -88,7 +91,7 @@
|
|
|
88
91
|
margin-block-start: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
89
92
|
margin-inline: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
90
93
|
padding: var(--et-select-panel-padding, 6px);
|
|
91
|
-
background: var(--et-select-panel-background, var(--et-surface-background
|
|
94
|
+
background: var(--et-select-panel-background, var(--et-surface-background, rgb(32 32 32)));
|
|
92
95
|
z-index: 1;
|
|
93
96
|
|
|
94
97
|
input[etselectsearch] {
|
|
@@ -97,22 +100,22 @@
|
|
|
97
100
|
box-sizing: border-box;
|
|
98
101
|
padding-inline: 10px;
|
|
99
102
|
border-radius: var(--et-select-option-border-radius);
|
|
100
|
-
border: 1px solid var(--et-surface-border
|
|
101
|
-
background: color-mix(in srgb, var(--et-surface-
|
|
103
|
+
border: 1px solid var(--et-surface-border, rgb(255 255 255 / 0.1));
|
|
104
|
+
background: color-mix(in srgb, var(--et-surface-tint, rgb(255 255 255)) 6%, transparent);
|
|
102
105
|
color: inherit;
|
|
103
106
|
font: inherit;
|
|
104
107
|
outline: none;
|
|
105
|
-
caret-color: var(--et-
|
|
108
|
+
caret-color: var(--et-tone-fill, currentColor);
|
|
106
109
|
transition:
|
|
107
110
|
border-color 120ms ease,
|
|
108
111
|
background 120ms ease;
|
|
109
112
|
|
|
110
113
|
&:focus-visible {
|
|
111
|
-
border-color: var(--et-
|
|
114
|
+
border-color: var(--et-tone-fill, rgb(255 255 255 / 0.3));
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
&::placeholder {
|
|
115
|
-
color: var(--et-surface-
|
|
118
|
+
color: var(--et-surface-text-muted, rgb(255 255 255 / 0.55));
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
}
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
font: inherit;
|
|
70
70
|
color: inherit;
|
|
71
71
|
padding: 0;
|
|
72
|
-
caret-color: var(--et-
|
|
72
|
+
caret-color: var(--et-tone-fill, currentColor);
|
|
73
73
|
cursor: inherit;
|
|
74
74
|
|
|
75
75
|
&::placeholder {
|
|
76
|
-
color: var(--et-surface-
|
|
76
|
+
color: var(--et-surface-text-muted, color-mix(in srgb, currentColor 46%, transparent));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&:read-only {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
min-inline-size: 0;
|
|
103
103
|
|
|
104
104
|
&[data-placeholder] {
|
|
105
|
-
color: var(--et-surface-
|
|
105
|
+
color: var(--et-surface-text-muted, color-mix(in srgb, currentColor 46%, transparent));
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
margin-inline-start: calc(
|
|
142
142
|
-1 * (var(--_et-select-trigger-busy-fade) + var(--_et-select-trigger-busy-cover) + 6px)
|
|
143
143
|
);
|
|
144
|
-
color: var(--et-surface-
|
|
144
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&:dir(rtl) {
|
|
@@ -43,34 +43,30 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
padding: var(--et-selection-card-padding);
|
|
45
45
|
border-radius: var(--et-selection-card-border-radius);
|
|
46
|
-
background-color: var(--et-surface-background
|
|
46
|
+
background-color: var(--et-surface-background, transparent);
|
|
47
47
|
border: var(--et-selection-card-border-width) solid
|
|
48
|
-
color-mix(
|
|
49
|
-
in oklab,
|
|
50
|
-
var(--et-surface-color-solid, currentColor) 43%,
|
|
51
|
-
var(--et-surface-background-solid, transparent)
|
|
52
|
-
);
|
|
48
|
+
color-mix(in oklab, var(--et-surface-text, currentColor) 43%, var(--et-surface-background, transparent));
|
|
53
49
|
|
|
54
50
|
/* Every state guard sits in `:where()` so source order decides; the checked rule below relies on it. */
|
|
55
51
|
@media (hover: hover) {
|
|
56
52
|
&:where(:hover:not([aria-disabled='true'], [data-readonly]):not(:has([aria-disabled='true'], [data-readonly]))) {
|
|
57
|
-
border-color: var(--et-surface-
|
|
53
|
+
border-color: var(--et-surface-text, currentColor);
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
&:where(:active:not([aria-disabled='true'], [data-readonly]):not(:has([aria-disabled='true'], [data-readonly]))) {
|
|
62
|
-
border-color: var(--et-surface-
|
|
58
|
+
border-color: var(--et-surface-text, currentColor);
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
/* After hover/active so a chosen card keeps its accent under the cursor. */
|
|
66
62
|
&:where([aria-checked='true'], :has(:is([aria-checked='true'], [aria-checked='mixed']))) {
|
|
67
|
-
border-color: light-dark(var(--et-
|
|
63
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
/* Each host resets its own control's focus ring, so the card shows one ring. */
|
|
71
67
|
&:where(:focus-visible, :has(:focus-visible)) {
|
|
72
|
-
border-color: light-dark(var(--et-
|
|
73
|
-
outline: 2px solid var(--et-
|
|
68
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
69
|
+
outline: 2px solid var(--et-tone-text, currentColor);
|
|
74
70
|
outline-offset: 2px;
|
|
75
71
|
}
|
|
76
72
|
|
|
@@ -97,17 +93,17 @@
|
|
|
97
93
|
|
|
98
94
|
.et-selection-card-label {
|
|
99
95
|
font-weight: 500;
|
|
100
|
-
color: var(--et-surface-
|
|
96
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
&:where([aria-checked='true'], :has(:is([aria-checked='true'], [aria-checked='mixed']))) .et-selection-card-label {
|
|
104
|
-
color: var(--et-surface-
|
|
100
|
+
color: var(--et-surface-text, currentColor);
|
|
105
101
|
}
|
|
106
102
|
|
|
107
103
|
@media (hover: hover) {
|
|
108
104
|
&:where(:hover:not([aria-disabled='true'], [data-readonly]):not(:has([aria-disabled='true'], [data-readonly])))
|
|
109
105
|
.et-selection-card-label {
|
|
110
|
-
color: var(--et-surface-
|
|
106
|
+
color: var(--et-surface-text, currentColor);
|
|
111
107
|
}
|
|
112
108
|
}
|
|
113
109
|
|
|
@@ -16,11 +16,7 @@
|
|
|
16
16
|
inline-size: var(--et-checkbox-option-size, 20px);
|
|
17
17
|
block-size: var(--et-checkbox-option-size, 20px);
|
|
18
18
|
border: var(--et-checkbox-option-border-width, 2px) solid
|
|
19
|
-
color-mix(
|
|
20
|
-
in oklab,
|
|
21
|
-
var(--et-surface-color-solid, currentColor) 43%,
|
|
22
|
-
var(--et-surface-background-solid, transparent)
|
|
23
|
-
);
|
|
19
|
+
color-mix(in oklab, var(--et-surface-text, currentColor) 43%, var(--et-surface-background, transparent));
|
|
24
20
|
border-radius: var(--et-checkbox-option-border-radius, 4px);
|
|
25
21
|
transition:
|
|
26
22
|
border-color var(--et-checkbox-option-transition-duration, 150ms) ease,
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
.et-checkbox-group-select-all-box > * {
|
|
32
28
|
grid-area: 1 / 1;
|
|
33
29
|
opacity: 0;
|
|
34
|
-
color: var(--et-
|
|
30
|
+
color: var(--et-tone-on-fill, white);
|
|
35
31
|
transition: opacity var(--et-checkbox-option-transition-duration, 150ms) ease;
|
|
36
32
|
}
|
|
37
33
|
|
|
@@ -44,18 +40,18 @@
|
|
|
44
40
|
inline-size: 10px;
|
|
45
41
|
block-size: 2px;
|
|
46
42
|
border-radius: 1px;
|
|
47
|
-
background-color: var(--et-
|
|
43
|
+
background-color: var(--et-tone-on-fill, white);
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
.et-checkbox-group-select-all-label {
|
|
51
47
|
font-size: 14px;
|
|
52
48
|
line-height: 20px;
|
|
53
|
-
color: var(--et-surface-
|
|
49
|
+
color: var(--et-surface-text, currentColor);
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
.et-checkbox-group-select-all:where([aria-checked='true'], [aria-checked='mixed']) .et-checkbox-group-select-all-box {
|
|
57
|
-
border-color: var(--et-
|
|
58
|
-
background-color: var(--et-
|
|
53
|
+
border-color: var(--et-tone-fill, currentColor);
|
|
54
|
+
background-color: var(--et-tone-fill, currentColor);
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
.et-checkbox-group-select-all:where([aria-checked='true']) .et-checkbox-group-select-all-check,
|
|
@@ -68,29 +64,23 @@
|
|
|
68
64
|
[aria-disabled='true']
|
|
69
65
|
):not([aria-readonly='true'])
|
|
70
66
|
.et-checkbox-group-select-all-box {
|
|
71
|
-
border-color: var(--et-surface-
|
|
72
|
-
background-color: color-mix(in srgb, var(--et-surface-
|
|
67
|
+
border-color: var(--et-surface-text, currentColor);
|
|
68
|
+
background-color: color-mix(in srgb, var(--et-surface-tint, currentColor) 8%, transparent);
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
.et-checkbox-group-select-all:focus-visible .et-checkbox-group-select-all-box {
|
|
77
|
-
border-color: light-dark(var(--et-
|
|
78
|
-
outline: 2px solid var(--et-
|
|
73
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
74
|
+
outline: 2px solid var(--et-tone-text, currentColor);
|
|
79
75
|
outline-offset: 2px;
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
.et-checkbox-group-select-all:is([aria-checked='true'], [aria-checked='mixed']):not(:focus-visible)
|
|
83
79
|
.et-checkbox-group-select-all-box {
|
|
84
|
-
outline: 1px solid light-dark(var(--et-
|
|
80
|
+
outline: 1px solid light-dark(var(--et-tone-text), transparent);
|
|
85
81
|
outline-offset: -1px;
|
|
86
82
|
}
|
|
87
83
|
|
|
88
|
-
@media (hover: hover) {
|
|
89
|
-
.et-checkbox-group-select-all:is([aria-checked='true'], [aria-checked='mixed']):hover {
|
|
90
|
-
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
84
|
.et-checkbox-group-select-all:active:not([aria-disabled='true']):not([aria-readonly='true'])
|
|
95
85
|
.et-checkbox-group-select-all-box {
|
|
96
86
|
transform: scale(0.92);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: var(--et-checkbox-group-gap);
|
|
50
|
-
color: var(--et-surface-
|
|
50
|
+
color: var(--et-surface-text, currentColor);
|
|
51
51
|
|
|
52
52
|
--et-form-support-duration: var(--et-checkbox-group-support-duration);
|
|
53
53
|
--et-form-support-error-font-size: var(--et-checkbox-group-error-font-size);
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
font-weight: 500;
|
|
73
73
|
line-height: 1.2;
|
|
74
74
|
letter-spacing: -0.01em;
|
|
75
|
-
color: var(--et-surface-
|
|
75
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
76
76
|
-webkit-user-select: none;
|
|
77
77
|
user-select: none;
|
|
78
78
|
}
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&[data-error] {
|
|
121
|
-
--_et-control-border: var(--et-
|
|
121
|
+
--_et-control-border: var(--et-tone-fill);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&[data-mixed] .et-checkbox-option-box {
|
|
125
125
|
border-style: dashed;
|
|
126
|
-
border-color: var(--et-
|
|
126
|
+
border-color: var(--et-tone-fill, currentColor);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -57,11 +57,7 @@
|
|
|
57
57
|
border: var(--et-checkbox-option-border-width) solid
|
|
58
58
|
var(
|
|
59
59
|
--_et-control-border,
|
|
60
|
-
color-mix(
|
|
61
|
-
in oklab,
|
|
62
|
-
var(--et-surface-color-solid, currentColor) 43%,
|
|
63
|
-
var(--et-surface-background-solid, transparent)
|
|
64
|
-
)
|
|
60
|
+
color-mix(in oklab, var(--et-surface-text, currentColor) 43%, var(--et-surface-background, transparent))
|
|
65
61
|
);
|
|
66
62
|
background-color: transparent;
|
|
67
63
|
display: grid;
|
|
@@ -72,7 +68,7 @@
|
|
|
72
68
|
inline-size: 12px;
|
|
73
69
|
block-size: 10px;
|
|
74
70
|
opacity: 0;
|
|
75
|
-
color: var(--et-
|
|
71
|
+
color: var(--et-tone-on-fill, white);
|
|
76
72
|
|
|
77
73
|
path {
|
|
78
74
|
stroke-dasharray: 15;
|
|
@@ -90,13 +86,13 @@
|
|
|
90
86
|
.et-checkbox-option-label {
|
|
91
87
|
font-size: 14px;
|
|
92
88
|
line-height: 20px;
|
|
93
|
-
color: var(--et-surface-
|
|
89
|
+
color: var(--et-surface-text, currentColor);
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
@media (hover: hover) {
|
|
97
93
|
&:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']) .et-checkbox-option-box {
|
|
98
|
-
border-color: var(--_et-control-border, var(--et-surface-
|
|
99
|
-
background-color: color-mix(in srgb, var(--et-surface-
|
|
94
|
+
border-color: var(--_et-control-border, var(--et-surface-text, currentColor));
|
|
95
|
+
background-color: color-mix(in srgb, var(--et-surface-tint, currentColor) 8%, transparent);
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
98
|
|
|
@@ -110,24 +106,18 @@
|
|
|
110
106
|
cursor: default;
|
|
111
107
|
|
|
112
108
|
.et-checkbox-option-label {
|
|
113
|
-
color: var(--et-surface-
|
|
109
|
+
color: var(--et-surface-control-text-disabled, currentColor);
|
|
114
110
|
}
|
|
115
111
|
}
|
|
116
112
|
|
|
117
113
|
&[aria-checked='true']:not(:focus-visible) .et-checkbox-option-box {
|
|
118
|
-
outline: 1px solid light-dark(var(--et-
|
|
114
|
+
outline: 1px solid light-dark(var(--et-tone-text), transparent);
|
|
119
115
|
outline-offset: -1px;
|
|
120
116
|
}
|
|
121
117
|
|
|
122
|
-
@media (hover: hover) {
|
|
123
|
-
&[aria-checked='true']:hover {
|
|
124
|
-
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
118
|
&[aria-checked='true'] .et-checkbox-option-box {
|
|
129
|
-
background-color: var(--et-
|
|
130
|
-
border-color: var(--et-
|
|
119
|
+
background-color: var(--et-tone-fill, currentColor);
|
|
120
|
+
border-color: var(--et-tone-fill, currentColor);
|
|
131
121
|
|
|
132
122
|
.et-checkbox-option-check {
|
|
133
123
|
opacity: 1;
|
|
@@ -139,8 +129,8 @@
|
|
|
139
129
|
}
|
|
140
130
|
|
|
141
131
|
&:focus-visible .et-checkbox-option-box {
|
|
142
|
-
border-color: light-dark(var(--et-
|
|
143
|
-
outline: 2px solid var(--et-
|
|
132
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
133
|
+
outline: 2px solid var(--et-tone-text, currentColor);
|
|
144
134
|
outline-offset: 2px;
|
|
145
135
|
}
|
|
146
136
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: var(--et-radio-group-gap);
|
|
50
|
-
color: var(--et-surface-
|
|
50
|
+
color: var(--et-surface-text, currentColor);
|
|
51
51
|
|
|
52
52
|
--et-form-support-duration: var(--et-radio-group-support-duration);
|
|
53
53
|
--et-form-support-error-font-size: var(--et-radio-group-error-font-size);
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
font-weight: 500;
|
|
73
73
|
line-height: 1.2;
|
|
74
74
|
letter-spacing: -0.01em;
|
|
75
|
-
color: var(--et-surface-
|
|
75
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
76
76
|
-webkit-user-select: none;
|
|
77
77
|
user-select: none;
|
|
78
78
|
}
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&[data-error] {
|
|
113
|
-
--_et-control-border: var(--et-
|
|
113
|
+
--_et-control-border: var(--et-tone-fill);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&[data-mixed] .et-radio-circle {
|
|
117
117
|
border-style: dashed;
|
|
118
|
-
border-color: light-dark(var(--et-
|
|
118
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -57,11 +57,7 @@
|
|
|
57
57
|
border: var(--et-radio-border-width) solid
|
|
58
58
|
var(
|
|
59
59
|
--_et-control-border,
|
|
60
|
-
color-mix(
|
|
61
|
-
in oklab,
|
|
62
|
-
var(--et-surface-color-solid, currentColor) 43%,
|
|
63
|
-
var(--et-surface-background-solid, transparent)
|
|
64
|
-
)
|
|
60
|
+
color-mix(in oklab, var(--et-surface-text, currentColor) 43%, var(--et-surface-background, transparent))
|
|
65
61
|
);
|
|
66
62
|
background-color: transparent;
|
|
67
63
|
display: grid;
|
|
@@ -72,7 +68,7 @@
|
|
|
72
68
|
inline-size: var(--et-radio-dot-size);
|
|
73
69
|
block-size: var(--et-radio-dot-size);
|
|
74
70
|
border-radius: 50%;
|
|
75
|
-
background-color: var(--et-
|
|
71
|
+
background-color: var(--et-tone-fill, currentColor);
|
|
76
72
|
transform: scale(0);
|
|
77
73
|
}
|
|
78
74
|
}
|
|
@@ -87,19 +83,19 @@
|
|
|
87
83
|
.et-radio-label {
|
|
88
84
|
font-size: 14px;
|
|
89
85
|
line-height: 20px;
|
|
90
|
-
color: var(--et-surface-
|
|
86
|
+
color: var(--et-surface-text, currentColor);
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
@media (hover: hover) {
|
|
94
90
|
&:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']) .et-radio-circle {
|
|
95
|
-
border-color: var(--_et-control-border, var(--et-surface-
|
|
96
|
-
background-color: color-mix(in srgb, var(--et-surface-
|
|
91
|
+
border-color: var(--_et-control-border, var(--et-surface-text, currentColor));
|
|
92
|
+
background-color: color-mix(in srgb, var(--et-surface-tint, currentColor) 8%, transparent);
|
|
97
93
|
}
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
&:focus-visible .et-radio-circle {
|
|
101
|
-
border-color: light-dark(var(--et-
|
|
102
|
-
outline: 2px solid var(--et-
|
|
97
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
98
|
+
outline: 2px solid var(--et-tone-text, currentColor);
|
|
103
99
|
outline-offset: 2px;
|
|
104
100
|
}
|
|
105
101
|
|
|
@@ -113,27 +109,21 @@
|
|
|
113
109
|
cursor: default;
|
|
114
110
|
|
|
115
111
|
.et-radio-label {
|
|
116
|
-
color: var(--et-surface-
|
|
112
|
+
color: var(--et-surface-control-text-disabled, currentColor);
|
|
117
113
|
}
|
|
118
114
|
}
|
|
119
115
|
|
|
120
116
|
&[aria-checked='true'] .et-radio-circle {
|
|
121
|
-
border-color: light-dark(var(--et-
|
|
117
|
+
border-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
122
118
|
background-color: transparent;
|
|
123
119
|
|
|
124
120
|
&::after {
|
|
125
121
|
transform: scale(1);
|
|
126
|
-
outline: 1px solid light-dark(var(--et-
|
|
122
|
+
outline: 1px solid light-dark(var(--et-tone-text), transparent);
|
|
127
123
|
outline-offset: -1px;
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
126
|
|
|
131
|
-
@media (hover: hover) {
|
|
132
|
-
&[aria-checked='true']:hover {
|
|
133
|
-
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
127
|
&[data-can-animate] {
|
|
138
128
|
.et-radio-circle {
|
|
139
129
|
transition:
|
package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
68
|
gap: var(--et-segmented-button-group-gap);
|
|
69
|
-
color: var(--et-surface-
|
|
69
|
+
color: var(--et-surface-text, currentColor);
|
|
70
70
|
|
|
71
71
|
--et-form-support-duration: var(--et-segmented-button-group-support-duration);
|
|
72
72
|
--et-form-support-error-font-size: var(--et-segmented-button-group-error-font-size);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
font-weight: 500;
|
|
92
92
|
line-height: 1.2;
|
|
93
93
|
letter-spacing: -0.01em;
|
|
94
|
-
color: var(--et-surface-
|
|
94
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
95
95
|
-webkit-user-select: none;
|
|
96
96
|
user-select: none;
|
|
97
97
|
}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
border-radius: var(--et-segmented-button-group-track-radius);
|
|
134
134
|
background-color: var(
|
|
135
135
|
--et-segmented-button-group-track-background,
|
|
136
|
-
color-mix(in srgb, var(--et-surface-
|
|
136
|
+
color-mix(in srgb, var(--et-surface-tint, currentColor) 8%, transparent)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
&[data-error] .et-segmented-button-group-buttons {
|
|
180
|
-
box-shadow: inset 0 0 0 1px var(--et-
|
|
180
|
+
box-shadow: inset 0 0 0 1px var(--et-tone-fill);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
&:where([data-variant='tabs']) .et-segmented-button-group-buttons {
|
|
@@ -188,13 +188,13 @@
|
|
|
188
188
|
box-shadow: inset 0 calc(var(--et-tab-underline-size) * -1) 0 0
|
|
189
189
|
color-mix(
|
|
190
190
|
in srgb,
|
|
191
|
-
var(--et-surface-border
|
|
191
|
+
var(--et-surface-border, currentColor) calc(var(--et-tab-baseline-opacity) * 100%),
|
|
192
192
|
transparent
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
&:where([data-variant='tabs'])[data-error] .et-segmented-button-group-buttons {
|
|
197
|
-
box-shadow: inset 0 calc(var(--et-tab-underline-size) * -1) 0 0 var(--et-
|
|
197
|
+
box-shadow: inset 0 calc(var(--et-tab-underline-size) * -1) 0 0 var(--et-tone-fill);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
&:where([data-variant='tabs']) et-segmented-button {
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
&[data-mixed] .et-segmented-button-group-buttons {
|
|
209
|
-
outline: 1px dashed var(--et-
|
|
209
|
+
outline: 1px dashed var(--et-tone-fill, currentColor);
|
|
210
210
|
outline-offset: -1px;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
outline: none;
|
|
85
85
|
background: transparent;
|
|
86
|
-
color: var(--et-segmented-button-inactive-color, var(--et-surface-
|
|
86
|
+
color: var(--et-segmented-button-inactive-color, var(--et-surface-text-muted, currentColor));
|
|
87
87
|
font-size: var(--et-segmented-button-font-size);
|
|
88
88
|
font-weight: var(--et-segmented-button-font-weight);
|
|
89
89
|
line-height: 1.4;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
inset: 0;
|
|
112
112
|
z-index: -1;
|
|
113
113
|
border-radius: var(--et-segmented-button-border-radius);
|
|
114
|
-
background-color: var(--et-
|
|
114
|
+
background-color: var(--et-tone-fill, currentColor);
|
|
115
115
|
opacity: 0;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -123,17 +123,16 @@
|
|
|
123
123
|
|
|
124
124
|
@media (hover: hover) {
|
|
125
125
|
&:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']) {
|
|
126
|
-
color: var(--et-surface-
|
|
126
|
+
color: var(--et-surface-text, currentColor);
|
|
127
127
|
background-color: var(
|
|
128
128
|
--et-segmented-button-hover-fill,
|
|
129
|
-
color-mix(in srgb, var(--et-surface-
|
|
129
|
+
color-mix(in srgb, var(--et-surface-tint, currentColor) 10%, transparent)
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&:focus-visible {
|
|
135
|
-
outline: 2px solid
|
|
136
|
-
light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
|
|
135
|
+
outline: 2px solid light-dark(var(--et-tone-text, currentColor), var(--et-tone-fill, currentColor));
|
|
137
136
|
outline-offset: var(--et-segmented-button-focus-ring-offset, 1px);
|
|
138
137
|
}
|
|
139
138
|
|
|
@@ -142,7 +141,7 @@
|
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
&[aria-checked='true'] {
|
|
145
|
-
color: var(--et-
|
|
144
|
+
color: var(--et-tone-on-fill, white);
|
|
146
145
|
|
|
147
146
|
.et-segmented-button-bg {
|
|
148
147
|
opacity: 1;
|
|
@@ -165,34 +164,36 @@
|
|
|
165
164
|
--et-segmented-button-focus-ring-offset: 2px;
|
|
166
165
|
|
|
167
166
|
border-radius: 0.5rem;
|
|
168
|
-
color: var(--et-surface-
|
|
167
|
+
color: var(--et-tab-inactive-color, var(--et-surface-control-text, currentColor));
|
|
169
168
|
|
|
170
|
-
font-weight: inherit;
|
|
171
|
-
line-height: inherit;
|
|
169
|
+
font-weight: var(--et-tab-font-weight, inherit);
|
|
170
|
+
line-height: var(--et-tab-line-height, inherit);
|
|
171
|
+
letter-spacing: var(--et-tab-letter-spacing, normal);
|
|
172
|
+
text-transform: var(--et-tab-text-transform, none);
|
|
172
173
|
|
|
173
174
|
.et-segmented-button-bg {
|
|
174
175
|
inset: auto 0 0 0;
|
|
175
176
|
block-size: var(--et-segmented-button-tab-underline-size);
|
|
176
177
|
border-radius: var(--et-segmented-button-tab-underline-radius);
|
|
177
|
-
background-color: var(--et-
|
|
178
|
+
background-color: var(--et-tone-text, currentColor);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
&[aria-checked='true'] {
|
|
181
|
-
color: var(--et-surface-
|
|
182
|
+
color: var(--et-surface-text, currentColor);
|
|
182
183
|
}
|
|
183
184
|
|
|
184
185
|
@media (hover: hover) {
|
|
185
186
|
&[aria-checked='true']:hover:not([aria-disabled='true']):not([data-readonly]) {
|
|
186
|
-
background-color:
|
|
187
|
+
background-color: color-mix(in srgb, var(--et-tone-fill, rgb(0 0 0)) 8%, transparent);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
&[aria-checked='true']:focus-visible {
|
|
191
|
-
background-color:
|
|
192
|
+
background-color: color-mix(in srgb, var(--et-tone-fill, rgb(0 0 0)) 12%, transparent);
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
&[aria-checked='true']:active:not([aria-disabled='true']):not([data-readonly]) {
|
|
195
|
-
background-color:
|
|
196
|
+
background-color: color-mix(in srgb, var(--et-tone-fill, rgb(0 0 0)) 16%, transparent);
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
}
|