luxen-ui 0.25.0 → 0.26.0
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/README.md +1 -0
- package/bin/cli.mjs +16 -1
- package/cdn/custom-elements.json +402 -276
- package/cdn/elements/alert-dialog/alert-dialog.d.ts +3 -2
- package/cdn/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/cdn/elements/alert-dialog/alert-dialog.js.map +1 -1
- package/cdn/elements/avatar/avatar.js +1 -1
- package/cdn/elements/avatar/avatar.js.map +1 -1
- package/cdn/elements/carousel/carousel.js +1 -1
- package/cdn/elements/carousel/carousel.js.map +1 -1
- package/cdn/elements/combobox/combobox.d.ts.map +1 -1
- package/cdn/elements/combobox/combobox.js +2 -1
- package/cdn/elements/combobox/combobox.js.map +1 -1
- package/cdn/elements/dialog/dialog.d.ts +2 -1
- package/cdn/elements/dialog/dialog.d.ts.map +1 -1
- package/cdn/elements/dialog/dialog.js.map +1 -1
- package/cdn/elements/dialog/dialog.styles.js +1 -1
- package/cdn/elements/dialog/dialog.styles.js.map +1 -1
- package/cdn/elements/drawer/drawer.d.ts +7 -7
- package/cdn/elements/drawer/drawer.js +1 -1
- package/cdn/elements/drawer/drawer.js.map +1 -1
- package/cdn/elements/dropdown-item/dropdown-item.js +1 -1
- package/cdn/elements/dropdown-item/dropdown-item.js.map +1 -1
- package/cdn/elements/input-otp/input-otp.d.ts +2 -2
- package/cdn/elements/input-otp/input-otp.js.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.js +1 -1
- package/cdn/elements/prose-editor/prose-editor.js.map +1 -1
- package/cdn/elements/rating/rating.js +1 -1
- package/cdn/elements/rating/rating.js.map +1 -1
- package/cdn/elements/select/select.d.ts.map +1 -1
- package/cdn/elements/select/select.js +2 -1
- package/cdn/elements/select/select.js.map +1 -1
- package/cdn/elements/slider/slider.js +1 -1
- package/cdn/elements/slider/slider.js.map +1 -1
- package/cdn/elements/stories-viewer/stories-viewer.js +1 -1
- package/cdn/elements/stories-viewer/stories-viewer.js.map +1 -1
- package/cdn/elements/table/table.meta.d.ts +55 -0
- package/cdn/elements/table/table.meta.d.ts.map +1 -0
- package/cdn/elements/table/table.meta.js +0 -0
- package/cdn/elements/tag/tag.js +1 -1
- package/cdn/elements/tag/tag.js.map +1 -1
- package/cdn/elements/tree/tree.js +1 -1
- package/cdn/elements/tree/tree.js.map +1 -1
- package/cdn/elements/tree-item/tree-item.js +1 -1
- package/cdn/elements/tree-item/tree-item.js.map +1 -1
- package/cdn/shared/controllers/listbox-nav.d.ts +7 -0
- package/cdn/shared/controllers/listbox-nav.d.ts.map +1 -1
- package/cdn/shared/controllers/listbox-nav.js +1 -1
- package/cdn/shared/controllers/listbox-nav.js.map +1 -1
- package/cdn/shared/styles/button-core.styles.js +1 -1
- package/cdn/shared/styles/button-core.styles.js.map +1 -1
- package/cdn/shared/styles/checkbox-appearance.styles.js +1 -1
- package/cdn/shared/styles/checkbox-appearance.styles.js.map +1 -1
- package/cdn/shared/styles/picker-core.styles.js +1 -1
- package/cdn/shared/styles/picker-core.styles.js.map +1 -1
- package/cdn/standalone.css +284 -67
- package/cdn/standalone.js +38 -28
- package/cdn/standalone.js.map +1 -1
- package/cdn/styles/base.css +11 -0
- package/cdn/styles/elements/breadcrumb.css +2 -2
- package/cdn/styles/elements/button.css +2 -2
- package/cdn/styles/elements/checkbox.css +2 -2
- package/cdn/styles/elements/close-button/circle.css +2 -2
- package/cdn/styles/elements/close-button/ring.css +2 -2
- package/cdn/styles/elements/close-button/square.css +2 -2
- package/cdn/styles/elements/disclosure.css +1 -1
- package/cdn/styles/elements/input-otp.css +19 -3
- package/cdn/styles/elements/input-stepper/default.css +1 -1
- package/cdn/styles/elements/input-stepper/pill.css +1 -1
- package/cdn/styles/elements/input-stepper/rounded.css +1 -1
- package/cdn/styles/elements/input.css +11 -11
- package/cdn/styles/elements/prose-editor.css +6 -6
- package/cdn/styles/elements/radio-group.css +2 -2
- package/cdn/styles/elements/radio.css +2 -2
- package/cdn/styles/elements/segmented-control.css +1 -1
- package/cdn/styles/elements/select.css +5 -5
- package/cdn/styles/elements/story.css +2 -2
- package/cdn/styles/elements/switch.css +2 -2
- package/cdn/styles/elements/table.css +186 -0
- package/cdn/styles/elements/tabs/enclosed.css +3 -3
- package/cdn/styles/elements/tabs/line.css +3 -3
- package/cdn/styles/elements/textarea.css +5 -5
- package/cdn/styles/preset.css +19 -6
- package/cdn/styles/tokens/aliases.css +5 -3
- package/cdn/styles/tokens/forms.css +3 -3
- package/cdn/styles/tokens.css +8 -6
- package/dist/css/base.css +11 -0
- package/dist/css/elements/breadcrumb.css +2 -2
- package/dist/css/elements/button.css +2 -2
- package/dist/css/elements/checkbox.css +2 -2
- package/dist/css/elements/close-button/circle.css +2 -2
- package/dist/css/elements/close-button/ring.css +2 -2
- package/dist/css/elements/close-button/square.css +2 -2
- package/dist/css/elements/disclosure.css +1 -1
- package/dist/css/elements/input-otp.css +19 -3
- package/dist/css/elements/input-stepper/default.css +1 -1
- package/dist/css/elements/input-stepper/pill.css +1 -1
- package/dist/css/elements/input-stepper/rounded.css +1 -1
- package/dist/css/elements/input.css +11 -11
- package/dist/css/elements/prose-editor.css +6 -6
- package/dist/css/elements/radio-group.css +2 -2
- package/dist/css/elements/radio.css +2 -2
- package/dist/css/elements/segmented-control.css +1 -1
- package/dist/css/elements/select.css +5 -5
- package/dist/css/elements/story.css +2 -2
- package/dist/css/elements/switch.css +2 -2
- package/dist/css/elements/table.css +186 -0
- package/dist/css/elements/tabs/enclosed.css +3 -3
- package/dist/css/elements/tabs/line.css +3 -3
- package/dist/css/elements/textarea.css +5 -5
- package/dist/css/preset.css +19 -6
- package/dist/css/tokens/aliases.css +5 -3
- package/dist/css/tokens/forms.css +3 -3
- package/dist/css/tokens.css +8 -6
- package/dist/custom-elements.json +402 -276
- package/dist/elements/alert-dialog/alert-dialog.d.ts +3 -2
- package/dist/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/elements/alert-dialog/alert-dialog.js +3 -2
- package/dist/elements/avatar/avatar.css +2 -2
- package/dist/elements/carousel/carousel.css +18 -0
- package/dist/elements/combobox/combobox.css +9 -0
- package/dist/elements/combobox/combobox.d.ts.map +1 -1
- package/dist/elements/combobox/combobox.js +1 -0
- package/dist/elements/dialog/dialog.css +12 -0
- package/dist/elements/dialog/dialog.d.ts +2 -1
- package/dist/elements/dialog/dialog.d.ts.map +1 -1
- package/dist/elements/dialog/dialog.js +2 -1
- package/dist/elements/drawer/drawer.css +11 -1
- package/dist/elements/drawer/drawer.d.ts +7 -7
- package/dist/elements/drawer/drawer.js +7 -7
- package/dist/elements/dropdown-item/dropdown-item.css +1 -1
- package/dist/elements/input-otp/input-otp.d.ts +2 -2
- package/dist/elements/input-otp/input-otp.js +2 -2
- package/dist/elements/prose-editor/prose-editor.css +5 -3
- package/dist/elements/rating/rating.css +9 -10
- package/dist/elements/select/select.css +10 -5
- package/dist/elements/select/select.d.ts.map +1 -1
- package/dist/elements/select/select.js +1 -0
- package/dist/elements/slider/slider.css +5 -1
- package/dist/elements/stories-viewer/stories-viewer.css +10 -2
- package/dist/elements/table/table.meta.d.ts +55 -0
- package/dist/elements/table/table.meta.d.ts.map +1 -0
- package/dist/elements/table/table.meta.js +65 -0
- package/dist/elements/tag/tag.css +3 -3
- package/dist/elements/tree/tree.css +3 -3
- package/dist/elements/tree-item/tree-item.css +5 -3
- package/dist/metadata/alert-dialog.json +90 -85
- package/dist/metadata/alert.json +22 -22
- package/dist/metadata/avatar.json +26 -26
- package/dist/metadata/badge.json +13 -13
- package/dist/metadata/breadcrumb.json +9 -9
- package/dist/metadata/button.json +40 -40
- package/dist/metadata/carousel.json +133 -133
- package/dist/metadata/checkbox.json +13 -13
- package/dist/metadata/close-button.json +15 -15
- package/dist/metadata/color-scheme-icon.json +13 -13
- package/dist/metadata/combobox.json +77 -94
- package/dist/metadata/dialog.json +49 -44
- package/dist/metadata/disclosure.json +17 -17
- package/dist/metadata/divider.json +12 -12
- package/dist/metadata/drawer.json +61 -61
- package/dist/metadata/dropdown-item.json +50 -50
- package/dist/metadata/dropdown.json +32 -32
- package/dist/metadata/form-field.json +15 -15
- package/dist/metadata/icon.json +8 -8
- package/dist/metadata/index.json +1761 -1765
- package/dist/metadata/input-group.json +5 -5
- package/dist/metadata/input-otp.json +17 -17
- package/dist/metadata/input-stepper.json +24 -24
- package/dist/metadata/input.json +31 -31
- package/dist/metadata/popover.json +49 -49
- package/dist/metadata/progress.json +15 -15
- package/dist/metadata/prose-editor.json +110 -116
- package/dist/metadata/radio.json +15 -15
- package/dist/metadata/rating.json +25 -47
- package/dist/metadata/segmented-control.json +24 -46
- package/dist/metadata/select.json +81 -98
- package/dist/metadata/skeleton.json +12 -12
- package/dist/metadata/slider.json +60 -78
- package/dist/metadata/spinner.json +5 -5
- package/dist/metadata/sticky-bar.json +13 -13
- package/dist/metadata/stories-viewer.json +105 -105
- package/dist/metadata/stories.json +17 -17
- package/dist/metadata/story.json +41 -41
- package/dist/metadata/switch.json +9 -9
- package/dist/metadata/table.json +88 -0
- package/dist/metadata/tabs.json +26 -26
- package/dist/metadata/tag.json +50 -50
- package/dist/metadata/textarea.json +28 -28
- package/dist/metadata/toast.json +16 -16
- package/dist/metadata/tooltip.json +49 -49
- package/dist/metadata/tree-item.json +73 -73
- package/dist/metadata/tree.json +39 -39
- package/dist/shared/controllers/listbox-nav.d.ts +7 -0
- package/dist/shared/controllers/listbox-nav.d.ts.map +1 -1
- package/dist/shared/controllers/listbox-nav.js +12 -0
- package/dist/shared/styles/button-core.css +2 -2
- package/dist/shared/styles/checkbox-appearance.css +2 -2
- package/dist/shared/styles/picker-core.css +13 -10
- package/dist/templates/elements/alert-dialog.md +19 -18
- package/dist/templates/elements/alert.md +4 -4
- package/dist/templates/elements/avatar.md +9 -9
- package/dist/templates/elements/badge.md +4 -4
- package/dist/templates/elements/breadcrumb.md +4 -4
- package/dist/templates/elements/button.md +8 -8
- package/dist/templates/elements/carousel.md +32 -32
- package/dist/templates/elements/checkbox.md +4 -4
- package/dist/templates/elements/close-button.md +2 -2
- package/dist/templates/elements/color-scheme-icon.md +13 -13
- package/dist/templates/elements/combobox.md +19 -19
- package/dist/templates/elements/dialog.md +11 -10
- package/dist/templates/elements/disclosure.md +3 -3
- package/dist/templates/elements/divider.md +2 -2
- package/dist/templates/elements/drawer.md +15 -15
- package/dist/templates/elements/dropdown.md +15 -15
- package/dist/templates/elements/form-field.md +3 -3
- package/dist/templates/elements/icon.md +1 -1
- package/dist/templates/elements/input-otp.md +5 -5
- package/dist/templates/elements/input-stepper.md +4 -4
- package/dist/templates/elements/input.md +15 -8
- package/dist/templates/elements/popover.md +8 -8
- package/dist/templates/elements/progress.md +3 -3
- package/dist/templates/elements/prose-editor.md +38 -39
- package/dist/templates/elements/radio.md +6 -6
- package/dist/templates/elements/rating.md +5 -13
- package/dist/templates/elements/segmented-control.md +4 -4
- package/dist/templates/elements/select.md +23 -23
- package/dist/templates/elements/skeleton.md +2 -2
- package/dist/templates/elements/slider.md +13 -13
- package/dist/templates/elements/spinner.md +1 -1
- package/dist/templates/elements/sticky-bar.md +2 -2
- package/dist/templates/elements/stories-viewer.md +29 -29
- package/dist/templates/elements/stories.md +4 -4
- package/dist/templates/elements/story.md +11 -11
- package/dist/templates/elements/switch.md +5 -5
- package/dist/templates/elements/table.md +210 -0
- package/dist/templates/elements/tabs.md +4 -4
- package/dist/templates/elements/tag.md +14 -14
- package/dist/templates/elements/textarea.md +8 -8
- package/dist/templates/elements/toast.md +4 -4
- package/dist/templates/elements/tooltip.md +9 -9
- package/dist/templates/elements/tree-item.md +18 -18
- package/dist/templates/elements/tree.md +13 -13
- package/dist/templates/foundations/focus.md +303 -0
- package/elements.json +9 -0
- package/package.json +1 -1
- package/postcss-plugin-prefix.js +2 -2
- package/templates/SKILL.md.tpl +1 -0
- package/templates/choosing-elements.md.tpl +1 -0
package/cdn/styles/preset.css
CHANGED
|
@@ -699,6 +699,17 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
699
699
|
l-tooltip:not(:defined) {
|
|
700
700
|
display: none;
|
|
701
701
|
}
|
|
702
|
+
|
|
703
|
+
/* Plain links, buttons and summaries — the ones no Luxen class styles — take
|
|
704
|
+
the same focus ring as the elements, instead of the browser default,
|
|
705
|
+
whose contrast is not guaranteed on a themed page. Zero specificity, in
|
|
706
|
+
the base layer: every element rule and any consumer rule wins over it.
|
|
707
|
+
Tags only, no `[tabindex]`: a document rule beats a shadow `:host` rule,
|
|
708
|
+
so it would ring custom-element hosts that draw their own ring inside. */
|
|
709
|
+
:where(a:any-link, button, summary):focus-visible {
|
|
710
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
711
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
712
|
+
}
|
|
702
713
|
}
|
|
703
714
|
/* Design tokens — primitives (palette + scales) and semantic aliases. */
|
|
704
715
|
/* Luxen design tokens — primitives (core 5 color families + spacing + radius
|
|
@@ -930,10 +941,12 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
930
941
|
--l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
|
|
931
942
|
/* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
|
|
932
943
|
--l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
|
|
933
|
-
/*
|
|
934
|
-
--l-focus-ring: #d9461f;
|
|
935
|
-
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (
|
|
944
|
+
/* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
|
|
945
|
+
--l-focus-ring-color: #d9461f;
|
|
946
|
+
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
|
|
936
947
|
--l-focus-ring-width: 2px;
|
|
948
|
+
/* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
|
|
949
|
+
--l-focus-ring-offset: 2px;
|
|
937
950
|
/* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
|
|
938
951
|
--l-size-control-xs: 1.75rem;
|
|
939
952
|
/* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
|
|
@@ -967,9 +980,9 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
967
980
|
--l-form-control-border-color: var(--l-color-border);
|
|
968
981
|
/* Border width of text fields and of the checkbox and radio box. */
|
|
969
982
|
--l-form-control-border-width: 1px;
|
|
970
|
-
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `
|
|
971
|
-
--l-form-control-focus-border-width:
|
|
972
|
-
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
|
|
983
|
+
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
|
|
984
|
+
--l-form-control-focus-border-width: 2px;
|
|
985
|
+
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
|
|
973
986
|
--l-form-control-focus-halo-width: 3px;
|
|
974
987
|
/* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
|
|
975
988
|
--l-form-control-border-radius: var(--l-radius-md);
|
|
@@ -92,10 +92,12 @@
|
|
|
92
92
|
--l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
|
|
93
93
|
/* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
|
|
94
94
|
--l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
|
|
95
|
-
/*
|
|
96
|
-
--l-focus-ring: #d9461f;
|
|
97
|
-
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (
|
|
95
|
+
/* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
|
|
96
|
+
--l-focus-ring-color: #d9461f;
|
|
97
|
+
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
|
|
98
98
|
--l-focus-ring-width: 2px;
|
|
99
|
+
/* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
|
|
100
|
+
--l-focus-ring-offset: 2px;
|
|
99
101
|
/* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
|
|
100
102
|
--l-size-control-xs: 1.75rem;
|
|
101
103
|
/* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
--l-form-control-border-color: var(--l-color-border);
|
|
23
23
|
/* Border width of text fields and of the checkbox and radio box. */
|
|
24
24
|
--l-form-control-border-width: 1px;
|
|
25
|
-
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `
|
|
26
|
-
--l-form-control-focus-border-width:
|
|
27
|
-
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
|
|
25
|
+
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
|
|
26
|
+
--l-form-control-focus-border-width: 2px;
|
|
27
|
+
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
|
|
28
28
|
--l-form-control-focus-halo-width: 3px;
|
|
29
29
|
/* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
|
|
30
30
|
--l-form-control-border-radius: var(--l-radius-md);
|
package/cdn/styles/tokens.css
CHANGED
|
@@ -225,10 +225,12 @@
|
|
|
225
225
|
--l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
|
|
226
226
|
/* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
|
|
227
227
|
--l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
|
|
228
|
-
/*
|
|
229
|
-
--l-focus-ring: #d9461f;
|
|
230
|
-
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (
|
|
228
|
+
/* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
|
|
229
|
+
--l-focus-ring-color: #d9461f;
|
|
230
|
+
/* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
|
|
231
231
|
--l-focus-ring-width: 2px;
|
|
232
|
+
/* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
|
|
233
|
+
--l-focus-ring-offset: 2px;
|
|
232
234
|
/* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
|
|
233
235
|
--l-size-control-xs: 1.75rem;
|
|
234
236
|
/* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
|
|
@@ -262,9 +264,9 @@
|
|
|
262
264
|
--l-form-control-border-color: var(--l-color-border);
|
|
263
265
|
/* Border width of text fields and of the checkbox and radio box. */
|
|
264
266
|
--l-form-control-border-width: 1px;
|
|
265
|
-
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `
|
|
266
|
-
--l-form-control-focus-border-width:
|
|
267
|
-
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
|
|
267
|
+
/* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
|
|
268
|
+
--l-form-control-focus-border-width: 2px;
|
|
269
|
+
/* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
|
|
268
270
|
--l-form-control-focus-halo-width: 3px;
|
|
269
271
|
/* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
|
|
270
272
|
--l-form-control-border-radius: var(--l-radius-md);
|
package/dist/css/base.css
CHANGED
|
@@ -688,4 +688,15 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
688
688
|
l-tooltip:not(:defined) {
|
|
689
689
|
display: none;
|
|
690
690
|
}
|
|
691
|
+
|
|
692
|
+
/* Plain links, buttons and summaries — the ones no Luxen class styles — take
|
|
693
|
+
the same focus ring as the elements, instead of the browser default,
|
|
694
|
+
whose contrast is not guaranteed on a themed page. Zero specificity, in
|
|
695
|
+
the base layer: every element rule and any consumer rule wins over it.
|
|
696
|
+
Tags only, no `[tabindex]`: a document rule beats a shadow `:host` rule,
|
|
697
|
+
so it would ring custom-element hosts that draw their own ring inside. */
|
|
698
|
+
:where(a:any-link, button, summary):focus-visible {
|
|
699
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
700
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
701
|
+
}
|
|
691
702
|
}
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
border-radius: var(--l-radius-sm);
|
|
95
95
|
|
|
96
96
|
&:focus-visible {
|
|
97
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
98
|
-
outline-offset:
|
|
97
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
98
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&:focus-visible {
|
|
103
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
104
|
-
outline-offset:
|
|
103
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
104
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&:focus-visible {
|
|
81
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
82
|
-
outline-offset:
|
|
81
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
82
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* High contrast: the checked fill is forced to Canvas, hiding the accent and
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
&:focus-visible {
|
|
22
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
23
|
-
outline-offset:
|
|
22
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
23
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
&:focus-visible {
|
|
22
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
23
|
-
outline-offset:
|
|
22
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
23
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
&:focus-visible {
|
|
22
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
23
|
-
outline-offset:
|
|
22
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
23
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -46,8 +46,11 @@
|
|
|
46
46
|
--cell-border-color: var(--l-form-control-border-color);
|
|
47
47
|
/* Same corners as the other text fields, so a themed form rounds its cells too. */
|
|
48
48
|
--cell-border-radius: var(--l-form-control-border-radius);
|
|
49
|
-
--cell-focus-color: var(--l-focus-ring);
|
|
50
|
-
|
|
49
|
+
--cell-focus-color: var(--l-focus-ring-color);
|
|
50
|
+
/* The active cell looks focused like any text field: the focus tokens'
|
|
51
|
+
halo by default. */
|
|
52
|
+
--cell-focus-ring: 0 0 0 var(--l-form-control-focus-halo-width)
|
|
53
|
+
color-mix(in oklab, var(--cell-focus-color) 22%, transparent);
|
|
51
54
|
--_cell-font:
|
|
52
55
|
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
|
|
53
56
|
monospace;
|
|
@@ -101,9 +104,22 @@
|
|
|
101
104
|
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
102
105
|
*/
|
|
103
106
|
|
|
107
|
+
/* The real focus is on the hidden input; the active cell shows it with the
|
|
108
|
+
text-field recipe: ring-colored border, the inward stroke of
|
|
109
|
+
--l-form-control-focus-border-width (0 by default) and the halo. */
|
|
104
110
|
:scope:focus-within .l-input-otp-cell[data-active] {
|
|
105
111
|
border-color: var(--cell-focus-color);
|
|
112
|
+
outline: var(--l-form-control-focus-border-width) solid var(--cell-focus-color);
|
|
113
|
+
outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
|
|
106
114
|
box-shadow: var(--cell-focus-ring);
|
|
115
|
+
|
|
116
|
+
/* Forced colors: the system palette overrides border-color and drops the
|
|
117
|
+
halo. A transparent outline is forced to a visible system color: it is
|
|
118
|
+
the indicator there. */
|
|
119
|
+
@media (forced-colors: active) {
|
|
120
|
+
outline: var(--l-focus-ring-width) solid transparent;
|
|
121
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
122
|
+
}
|
|
107
123
|
}
|
|
108
124
|
|
|
109
125
|
/*
|
|
@@ -236,7 +252,7 @@
|
|
|
236
252
|
/* Swap the UA focus ring for the Luxen outline ring. Inset (like input-stepper)
|
|
237
253
|
so the filled field's ring is never clipped by a tight container. */
|
|
238
254
|
:scope:not(:defined) > input:focus-visible {
|
|
239
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
255
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
240
256
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
241
257
|
}
|
|
242
258
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
button:focus-visible {
|
|
118
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
118
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
119
119
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
120
120
|
z-index: 1;
|
|
121
121
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
button:focus-visible {
|
|
118
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
118
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
119
119
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
120
120
|
z-index: 1;
|
|
121
121
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
button:focus-visible {
|
|
118
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
118
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
119
119
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
120
120
|
z-index: 1;
|
|
121
121
|
}
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
native select, input group, l-select / l-combobox, l-prose-editor) reuse
|
|
93
93
|
this recipe. */
|
|
94
94
|
&:focus-visible {
|
|
95
|
-
border-color: var(--l-focus-ring);
|
|
96
|
-
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
|
|
95
|
+
border-color: var(--l-focus-ring-color);
|
|
96
|
+
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
|
|
97
97
|
outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
|
|
98
98
|
|
|
99
99
|
/* Forced colors: the system palette overrides border-color, so the
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
transparent outline is forced to a visible system color: it is the
|
|
102
102
|
indicator there. */
|
|
103
103
|
@media (forced-colors: active) {
|
|
104
|
-
outline:
|
|
105
|
-
outline-offset:
|
|
104
|
+
outline: var(--l-focus-ring-width) solid transparent;
|
|
105
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
(--l-form-control-focus-halo-width: 0) paints nothing. */
|
|
150
150
|
:is(.l-input, :where(l-form-field:not([unstyled])) > input):focus-visible {
|
|
151
151
|
box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
|
|
152
|
-
color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
|
|
152
|
+
color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
:is(.l-input, :where(l-form-field:not([unstyled])) > input):is(
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
&:focus-visible {
|
|
438
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
438
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
439
439
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
440
440
|
z-index: 1;
|
|
441
441
|
}
|
|
@@ -475,15 +475,15 @@
|
|
|
475
475
|
`:has(> input:focus-visible)`, not `:focus-within` — a focused adornment
|
|
476
476
|
button shows its own ring, not the group's. */
|
|
477
477
|
&:has(> input:focus-visible) {
|
|
478
|
-
border-color: var(--l-focus-ring);
|
|
479
|
-
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
|
|
478
|
+
border-color: var(--l-focus-ring-color);
|
|
479
|
+
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
|
|
480
480
|
outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
|
|
481
481
|
box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
|
|
482
|
-
color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
|
|
482
|
+
color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
|
|
483
483
|
|
|
484
484
|
@media (forced-colors: active) {
|
|
485
|
-
outline:
|
|
486
|
-
outline-offset:
|
|
485
|
+
outline: var(--l-focus-ring-width) solid transparent;
|
|
486
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
color instead of the ring. */
|
|
40
40
|
l-prose-editor:has(.ProseMirror:focus-visible)::part(toolbar),
|
|
41
41
|
l-prose-editor:has(.ProseMirror:focus-visible)::part(editor) {
|
|
42
|
-
border-color: var(--border-color-focus, var(--l-focus-ring));
|
|
42
|
+
border-color: var(--border-color-focus, var(--l-focus-ring-color));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* Soft focus halo — same recipe as input.css / textarea.css, so a prose
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
only indicator left, so it must survive that same clipping. */
|
|
63
63
|
l-prose-editor:has(.ProseMirror:focus-visible)::part(wrapper) {
|
|
64
64
|
outline: var(--l-form-control-focus-border-width) solid
|
|
65
|
-
var(--border-color-focus, var(--l-focus-ring));
|
|
65
|
+
var(--border-color-focus, var(--l-focus-ring-color));
|
|
66
66
|
outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
|
|
67
67
|
box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
|
|
68
|
-
color-mix(in oklab, var(--border-color-focus, var(--l-focus-ring)) 22%, transparent);
|
|
68
|
+
color-mix(in oklab, var(--border-color-focus, var(--l-focus-ring-color)) 22%, transparent);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/* Not nested: `&` cannot stand for a selector ending in ::part(). */
|
|
72
72
|
@media (forced-colors: active) {
|
|
73
73
|
l-prose-editor:has(.ProseMirror:focus-visible)::part(wrapper) {
|
|
74
|
-
outline:
|
|
75
|
-
outline-offset: -
|
|
74
|
+
outline: var(--l-focus-ring-width) solid transparent;
|
|
75
|
+
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -185,6 +185,6 @@
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
l-prose-editor .ProseMirror hr.ProseMirror-selectednode {
|
|
188
|
-
border-top-color: var(--l-focus-ring);
|
|
188
|
+
border-top-color: var(--l-focus-ring-color);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
the input inside it. */
|
|
134
134
|
& > .l-button:has(:focus-visible) {
|
|
135
135
|
z-index: 2;
|
|
136
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
137
|
-
outline-offset:
|
|
136
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
137
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/* A `<label>` is never `:disabled` either, so the button's own
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:focus-visible {
|
|
64
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
65
|
-
outline-offset:
|
|
64
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
65
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/* Invalid: only after interaction (`:user-invalid`), or forced via
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
&:focus-visible {
|
|
130
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
130
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
131
131
|
outline-offset: calc(var(--l-focus-ring-width) * -1);
|
|
132
132
|
border-radius: var(--l-radius-sm);
|
|
133
133
|
}
|
|
@@ -251,18 +251,18 @@
|
|
|
251
251
|
default: nothing drawn), and box-shadow carries the halo alone (0 wide
|
|
252
252
|
paints nothing). */
|
|
253
253
|
&:focus-visible {
|
|
254
|
-
border-color: var(--l-focus-ring);
|
|
255
|
-
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
|
|
254
|
+
border-color: var(--l-focus-ring-color);
|
|
255
|
+
outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
|
|
256
256
|
outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
|
|
257
257
|
box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
|
|
258
|
-
color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
|
|
258
|
+
color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
|
|
259
259
|
|
|
260
260
|
/* Forced colors: the system palette overrides border-color and drops the
|
|
261
261
|
halo. A transparent outline is forced to a visible system color: it is
|
|
262
262
|
the indicator there. */
|
|
263
263
|
@media (forced-colors: active) {
|
|
264
|
-
outline:
|
|
265
|
-
outline-offset:
|
|
264
|
+
outline: var(--l-focus-ring-width) solid transparent;
|
|
265
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
|
|
86
86
|
/* Focus ring hugs the thumbnail shape (circle, portrait, etc.) — label stays outside the ring. */
|
|
87
87
|
.l-story-trigger:focus-visible .l-story-thumb {
|
|
88
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
89
|
-
outline-offset:
|
|
88
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
89
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.l-story-trigger:hover .l-story-thumb {
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&:focus-visible {
|
|
138
|
-
outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
|
|
139
|
-
outline-offset:
|
|
138
|
+
outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
|
|
139
|
+
outline-offset: var(--l-focus-ring-offset);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* Invalid: after interaction (`:user-invalid`) or forced via `aria-invalid`
|