@cscfi/csc-ui 4.0.0-alpha.6 → 4.0.0-alpha.8
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/dist/csc-ui.js +6932 -6703
- package/dist/custom-elements.json +55 -4
- package/dist/docs/c-checkbox/usage.md +14 -11
- package/dist/docs/c-popover/usage.md +8 -0
- package/dist/docs/c-radio/usage.md +4 -3
- package/dist/docs/c-tooltip/usage.md +3 -1
- package/dist/styles/css/tokens.css +141 -141
- package/dist/vscode.css-custom-data.json +2 -2
- package/dist/vscode.html-custom-data.json +17 -2
- package/dist/web-types.json +35 -5
- package/dist-types/components/c-menu/CMenu.vue.d.ts +10 -0
- package/dist-types/components/c-popover/CPopover.vue.d.ts +9 -0
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +10 -0
- package/dist-types/shared/popoverChain.d.ts +62 -0
- package/dist-types/shared/useDesignatedTrigger.d.ts +40 -0
- package/dist-types/tag-name-map.d.ts +29 -3
- package/package.json +1 -1
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"owner": "c-pagination"
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
|
-
"declaration": "export interface CPopoverProps {\n /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */\n distance?: number | string;\n /**\n * Heading rendered at the top of the panel, doubling as its accessible\n * name. Without it, set `aria-label` on the host. Named `heading`, not\n * `title`: a `title` attribute on the host would trigger the browser's\n * native tooltip and collides with `HTMLElement.title`.\n * @freeform\n */\n heading?: string;\n /** Whether the popover is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the panel relative to the trigger. */\n position?: CPlacement;\n}",
|
|
316
|
+
"declaration": "export interface CPopoverProps {\n /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */\n distance?: number | string;\n /**\n * Heading rendered at the top of the panel, doubling as its accessible\n * name. Without it, set `aria-label` on the host. Named `heading`, not\n * `title`: a `title` attribute on the host would trigger the browser's\n * native tooltip and collides with `HTMLElement.title`.\n * @freeform\n */\n heading?: string;\n /** Whether the popover is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the panel relative to the trigger. */\n position?: CPlacement;\n /**\n * Designated trigger: an element elsewhere in the document that opens the\n * popover — its document ID, or the element itself. The same trigger\n * concept as the `trigger` slot, supplied by reference: the popover wires\n * click-to-toggle, ARIA and focus return onto it and anchors the panel to\n * it. When both routes are supplied, this prop wins over the slot.\n */\n trigger?: HTMLElement | string;\n}",
|
|
317
317
|
"description": "",
|
|
318
318
|
"kind": "interface",
|
|
319
319
|
"name": "CPopoverProps",
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
"owner": "c-toasts"
|
|
440
440
|
},
|
|
441
441
|
{
|
|
442
|
-
"declaration": "export interface CTooltipProps {\n /**\n * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\n * shows the tooltip immediately, regardless of this value. Defaults to\n * `400`.\n */\n delay?: number | string;\n /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */\n distance?: number | string;\n /** Whether the tooltip is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the tooltip relative to the trigger. */\n position?: CPlacement;\n /**\n * The tooltip text. Overridden by the `content` slot when that is\n * populated.\n * @freeform\n */\n text?: string;\n}",
|
|
442
|
+
"declaration": "export interface CTooltipProps {\n /**\n * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\n * shows the tooltip immediately, regardless of this value. Defaults to\n * `400`.\n */\n delay?: number | string;\n /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */\n distance?: number | string;\n /** Whether the tooltip is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the tooltip relative to the trigger. */\n position?: CPlacement;\n /**\n * The tooltip text. Overridden by the `content` slot when that is\n * populated.\n * @freeform\n */\n text?: string;\n /**\n * Designated trigger: an element elsewhere in the document that the\n * tooltip describes — its document ID, or the element itself. The same\n * trigger concept as the `trigger` slot, supplied by reference: the\n * tooltip wires hover/focus, mirrors `aria-description` onto it and\n * anchors the bubble to it. When both routes are supplied, this prop wins\n * over the slot.\n */\n trigger?: HTMLElement | string;\n}",
|
|
443
443
|
"description": "",
|
|
444
444
|
"kind": "interface",
|
|
445
445
|
"name": "CTooltipProps",
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
},
|
|
2660
2660
|
{
|
|
2661
2661
|
"name": "indicator",
|
|
2662
|
-
"description": "The checkbox box itself — the bordered square that fills when checked"
|
|
2662
|
+
"description": "The checkbox box itself — the bordered square that fills when checked; border, fill and the keyboard focus ring (its `::before`) all draw with `currentColor`, so `color` recolours them together"
|
|
2663
2663
|
},
|
|
2664
2664
|
{
|
|
2665
2665
|
"name": "mark",
|
|
@@ -5831,6 +5831,14 @@
|
|
|
5831
5831
|
"csc": {
|
|
5832
5832
|
"typeAlias": "CPlacement"
|
|
5833
5833
|
}
|
|
5834
|
+
},
|
|
5835
|
+
{
|
|
5836
|
+
"fieldName": "trigger",
|
|
5837
|
+
"name": "trigger",
|
|
5838
|
+
"description": "Designated trigger: an element elsewhere in the document that opens the\nmenu — its document ID, or the element itself. The same trigger concept\nas the `trigger` slot, supplied by reference: the menu wires\nclick-to-toggle, arrow-key opening, ARIA and focus return onto it and\nanchors the panel to it. When both routes are supplied, this prop wins\nover the slot.",
|
|
5839
|
+
"type": {
|
|
5840
|
+
"text": "HTMLElement | string"
|
|
5841
|
+
}
|
|
5834
5842
|
}
|
|
5835
5843
|
],
|
|
5836
5844
|
"cssParts": [
|
|
@@ -5898,6 +5906,15 @@
|
|
|
5898
5906
|
"csc": {
|
|
5899
5907
|
"typeAlias": "CPlacement"
|
|
5900
5908
|
}
|
|
5909
|
+
},
|
|
5910
|
+
{
|
|
5911
|
+
"kind": "field",
|
|
5912
|
+
"name": "trigger",
|
|
5913
|
+
"privacy": "public",
|
|
5914
|
+
"description": "Designated trigger: an element elsewhere in the document that opens the\nmenu — its document ID, or the element itself. The same trigger concept\nas the `trigger` slot, supplied by reference: the menu wires\nclick-to-toggle, arrow-key opening, ARIA and focus return onto it and\nanchors the panel to it. When both routes are supplied, this prop wins\nover the slot.",
|
|
5915
|
+
"type": {
|
|
5916
|
+
"text": "HTMLElement | string"
|
|
5917
|
+
}
|
|
5901
5918
|
}
|
|
5902
5919
|
],
|
|
5903
5920
|
"slots": [
|
|
@@ -7313,6 +7330,14 @@
|
|
|
7313
7330
|
"csc": {
|
|
7314
7331
|
"typeAlias": "CPlacement"
|
|
7315
7332
|
}
|
|
7333
|
+
},
|
|
7334
|
+
{
|
|
7335
|
+
"fieldName": "trigger",
|
|
7336
|
+
"name": "trigger",
|
|
7337
|
+
"description": "Designated trigger: an element elsewhere in the document that opens the\npopover — its document ID, or the element itself. The same trigger\nconcept as the `trigger` slot, supplied by reference: the popover wires\nclick-to-toggle, ARIA and focus return onto it and anchors the panel to\nit. When both routes are supplied, this prop wins over the slot.",
|
|
7338
|
+
"type": {
|
|
7339
|
+
"text": "HTMLElement | string"
|
|
7340
|
+
}
|
|
7316
7341
|
}
|
|
7317
7342
|
],
|
|
7318
7343
|
"cssParts": [
|
|
@@ -7386,6 +7411,15 @@
|
|
|
7386
7411
|
"csc": {
|
|
7387
7412
|
"typeAlias": "CPlacement"
|
|
7388
7413
|
}
|
|
7414
|
+
},
|
|
7415
|
+
{
|
|
7416
|
+
"kind": "field",
|
|
7417
|
+
"name": "trigger",
|
|
7418
|
+
"privacy": "public",
|
|
7419
|
+
"description": "Designated trigger: an element elsewhere in the document that opens the\npopover — its document ID, or the element itself. The same trigger\nconcept as the `trigger` slot, supplied by reference: the popover wires\nclick-to-toggle, ARIA and focus return onto it and anchors the panel to\nit. When both routes are supplied, this prop wins over the slot.",
|
|
7420
|
+
"type": {
|
|
7421
|
+
"text": "HTMLElement | string"
|
|
7422
|
+
}
|
|
7389
7423
|
}
|
|
7390
7424
|
],
|
|
7391
7425
|
"slots": [
|
|
@@ -7741,7 +7775,7 @@
|
|
|
7741
7775
|
},
|
|
7742
7776
|
{
|
|
7743
7777
|
"name": "indicator",
|
|
7744
|
-
"description": "The radio ring itself; the selection dot is its `::after` —
|
|
7778
|
+
"description": "The radio ring itself; the selection dot is its `::after` and the keyboard focus ring its `::before` — all three follow `currentColor`, so `color` recolours the whole indicator, focus ring included"
|
|
7745
7779
|
},
|
|
7746
7780
|
{
|
|
7747
7781
|
"name": "content",
|
|
@@ -12171,6 +12205,14 @@
|
|
|
12171
12205
|
"csc": {
|
|
12172
12206
|
"freeform": true
|
|
12173
12207
|
}
|
|
12208
|
+
},
|
|
12209
|
+
{
|
|
12210
|
+
"fieldName": "trigger",
|
|
12211
|
+
"name": "trigger",
|
|
12212
|
+
"description": "Designated trigger: an element elsewhere in the document that the\ntooltip describes — its document ID, or the element itself. The same\ntrigger concept as the `trigger` slot, supplied by reference: the\ntooltip wires hover/focus, mirrors `aria-description` onto it and\nanchors the bubble to it. When both routes are supplied, this prop wins\nover the slot.",
|
|
12213
|
+
"type": {
|
|
12214
|
+
"text": "HTMLElement | string"
|
|
12215
|
+
}
|
|
12174
12216
|
}
|
|
12175
12217
|
],
|
|
12176
12218
|
"cssParts": [
|
|
@@ -12250,6 +12292,15 @@
|
|
|
12250
12292
|
"csc": {
|
|
12251
12293
|
"freeform": true
|
|
12252
12294
|
}
|
|
12295
|
+
},
|
|
12296
|
+
{
|
|
12297
|
+
"kind": "field",
|
|
12298
|
+
"name": "trigger",
|
|
12299
|
+
"privacy": "public",
|
|
12300
|
+
"description": "Designated trigger: an element elsewhere in the document that the\ntooltip describes — its document ID, or the element itself. The same\ntrigger concept as the `trigger` slot, supplied by reference: the\ntooltip wires hover/focus, mirrors `aria-description` onto it and\nanchors the bubble to it. When both routes are supplied, this prop wins\nover the slot.",
|
|
12301
|
+
"type": {
|
|
12302
|
+
"text": "HTMLElement | string"
|
|
12303
|
+
}
|
|
12253
12304
|
}
|
|
12254
12305
|
],
|
|
12255
12306
|
"slots": [
|
|
@@ -26,24 +26,27 @@ entirely.
|
|
|
26
26
|
## Customization
|
|
27
27
|
|
|
28
28
|
Restyle via CSS parts from your own stylesheet. The `indicator` part is the
|
|
29
|
-
checkbox box and `mark` is the check glyph inside it
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
checkbox box and `mark` is the check glyph inside it. The indicator's border,
|
|
30
|
+
its checked fill and its keyboard focus ring all draw with `currentColor`, so
|
|
31
|
+
one `color` recolours the three together; the host exposes the `checked` and
|
|
32
|
+
`indeterminate` custom states, so the box is also stylable per state:
|
|
32
33
|
|
|
33
34
|
```css
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
/* Border, checked fill and focus ring follow `color`. */
|
|
36
|
+
c-checkbox::part(indicator) {
|
|
37
|
+
color: var(--my-green);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
border-color: gray;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* The mark draws with currentColor — recolour it via `color`. */
|
|
40
|
+
/* The mark draws with currentColor too — recolour it via `color`. */
|
|
44
41
|
c-checkbox:state(checked)::part(mark) {
|
|
45
42
|
color: black;
|
|
46
43
|
}
|
|
44
|
+
|
|
45
|
+
/* Finer control still works per property and per state (the focus ring
|
|
46
|
+
keeps following `color`, not these). */
|
|
47
|
+
c-checkbox:not(:state(checked))::part(indicator) {
|
|
48
|
+
border-color: gray;
|
|
49
|
+
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
For app-wide recolouring prefer the design tokens (`--c-primary` seed) over
|
|
@@ -2,6 +2,10 @@ A click-opened, non-modal surface anchored to its trigger, floating in the top l
|
|
|
2
2
|
|
|
3
3
|
Put the element that opens the popover in the `trigger` slot and the content in the default slot. An optional `heading` prop renders a heading and doubles as the panel's accessible name (it is not called `title` — a `title` attribute would trigger the browser's native tooltip). The popover is deliberately minimal: compose footers, actions, or a close button from existing components (e.g. `c-button`) inside the body.
|
|
4
4
|
|
|
5
|
+
## Designated trigger
|
|
6
|
+
|
|
7
|
+
When the opener cannot be slotted — a button living elsewhere in the layout — point the `trigger` prop at it instead: the ID of the element, or the element itself via property binding. The two routes are the same concept: the popover wires click-to-toggle onto the designated element, mirrors `aria-haspopup`/`aria-expanded`, returns focus to it on Escape, anchors the panel to it, and clicking it never counts as a light dismiss. Supplying both routes is a misuse: the prop wins, the slotted element gets no wiring, and a console warning flags it.
|
|
8
|
+
|
|
5
9
|
## When to use
|
|
6
10
|
|
|
7
11
|
- Contextual, dismissable UI attached to a control: a small settings panel, a confirm-lite prompt, help content with links.
|
|
@@ -12,6 +16,10 @@ Put the element that opens the popover in the `trigger` slot and the content in
|
|
|
12
16
|
|
|
13
17
|
Clicking outside the popover or pressing Escape closes it. Escape returns focus to the trigger when focus was inside the panel; light dismiss leaves focus where the user clicked. Focus is not moved into the panel on open — Tab reaches the content naturally from the trigger.
|
|
14
18
|
|
|
19
|
+
## Nesting
|
|
20
|
+
|
|
21
|
+
Popovers nest: a control inside one popover's panel can open another. The open popovers form a popover chain — each nested in the previous one; opening a popover whose trigger is not inside the open one closes it first, so sibling popovers never coexist. Escape closes only the innermost popover, one press per layer; clicking outside closes every popover that does not contain the click (clicking in a parent panel closes just its child); closing a popover closes everything nested inside it. Nesting follows the trigger, not the markup — a popover opened from a designated trigger inside another popover's panel chains under it even though its host element lives elsewhere.
|
|
22
|
+
|
|
15
23
|
## Accessibility
|
|
16
24
|
|
|
17
25
|
The panel is a non-modal `role="dialog"` and needs an accessible name: the `heading` prop provides one, or set `aria-label` on the `c-popover` element (`aria-labelledby` cannot reference slotted content across the shadow boundary). The component warns in the console when it opens unnamed. `aria-haspopup="dialog"` and `aria-expanded` are mirrored onto the slotted trigger.
|
|
@@ -29,9 +29,10 @@ never unselected, like a native radio without siblings. Grouping behavior
|
|
|
29
29
|
## Customization
|
|
30
30
|
|
|
31
31
|
Restyle via CSS parts from your own stylesheet. The `indicator` part is the
|
|
32
|
-
radio ring; the selection dot is its `::after` pseudo-element
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
radio ring; the selection dot is its `::after` pseudo-element and the keyboard
|
|
33
|
+
focus ring its `::before`. Ring, dot and focus ring all draw with
|
|
34
|
+
`currentColor`, so `color` recolours the whole indicator, focus ring included.
|
|
35
|
+
The host exposes the `checked` and `disabled` custom states (both also cover
|
|
35
36
|
group-driven selection and disabling):
|
|
36
37
|
|
|
37
38
|
```css
|
|
@@ -4,6 +4,8 @@ Put the element the tooltip describes in the `trigger` slot and the hint in the
|
|
|
4
4
|
|
|
5
5
|
The tooltip shows after a short hover delay (configurable via the `delay` prop) and immediately on keyboard focus. The trigger must be focusable for keyboard and screen-reader users to reach the hint — a `c-icon-button` or `c-button` qualifies; a bare `<span>` does not.
|
|
6
6
|
|
|
7
|
+
When the described element cannot be slotted, point the `trigger` prop at it instead — its document ID, or the element itself via property binding. The tooltip then wires hover/focus onto that element, mirrors the `aria-description` there, and anchors the bubble to it. Supplying both routes is a misuse: the prop wins, the slotted element gets no wiring, and a console warning flags it.
|
|
8
|
+
|
|
7
9
|
## When to use
|
|
8
10
|
|
|
9
11
|
- To name an icon-only control or clarify a truncated label.
|
|
@@ -17,7 +19,7 @@ The tooltip hides when the pointer leaves the trigger and panel, when focus leav
|
|
|
17
19
|
|
|
18
20
|
The tooltip implements the WCAG 1.4.13 (Content on Hover or Focus) contract: dismissable, hoverable, persistent.
|
|
19
21
|
|
|
20
|
-
The tooltip content is mirrored onto the slotted
|
|
22
|
+
The tooltip content is mirrored onto the trigger (slotted or designated) as `aria-description`, so screen readers announce it with the trigger even while the bubble is closed. `aria-describedby` is not used because ARIA ID references cannot cross the shadow boundary between the light-DOM trigger and the shadow-DOM panel (ADR-0033).
|
|
21
23
|
|
|
22
24
|
## Layering
|
|
23
25
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
:root, :host {
|
|
2
2
|
--c-accent-50: #ecfffbff;
|
|
3
3
|
--c-accent-100: #c9f5ecff;
|
|
4
|
-
--c-accent-200: #
|
|
5
|
-
--c-accent-300: #
|
|
6
|
-
--c-accent-400: #
|
|
4
|
+
--c-accent-200: #8ef0dfff;
|
|
5
|
+
--c-accent-300: #48e7d1ff;
|
|
6
|
+
--c-accent-400: #2fd7c1ff;
|
|
7
7
|
--c-accent-500: #00c7b2ff;
|
|
8
8
|
--c-accent-rgb: 0, 199, 178;
|
|
9
9
|
--c-accent-600: #00a190ff;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--c-error-100: #ffd2cbff;
|
|
18
18
|
--c-error-200: #ffaa9dff;
|
|
19
19
|
--c-error-300: #ff7b6bff;
|
|
20
|
-
--c-error-400: #
|
|
20
|
+
--c-error-400: #fc3d30ff;
|
|
21
21
|
--c-error-500: #dd0c0cff;
|
|
22
22
|
--c-error-rgb: 221, 12, 12;
|
|
23
23
|
--c-error-600: #b90004ff;
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
--c-error-950: #320000ff;
|
|
28
28
|
--c-info-50: #f5fbffff;
|
|
29
29
|
--c-info-100: #c5e4faff;
|
|
30
|
-
--c-info-200: #
|
|
31
|
-
--c-info-300: #
|
|
32
|
-
--c-info-400: #
|
|
30
|
+
--c-info-200: #8acef9ff;
|
|
31
|
+
--c-info-300: #50b5f1ff;
|
|
32
|
+
--c-info-400: #319bd6ff;
|
|
33
33
|
--c-info-500: #0082bbff;
|
|
34
34
|
--c-info-rgb: 0, 130, 187;
|
|
35
35
|
--c-info-600: #006b9bff;
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
--c-info-950: #001828ff;
|
|
40
40
|
--c-link-50: #f7faffff;
|
|
41
41
|
--c-link-100: #bfcfe4ff;
|
|
42
|
-
--c-link-200: #
|
|
43
|
-
--c-link-300: #
|
|
44
|
-
--c-link-400: #
|
|
42
|
+
--c-link-200: #84a6ceff;
|
|
43
|
+
--c-link-300: #4f7cb2ff;
|
|
44
|
+
--c-link-400: #295588ff;
|
|
45
45
|
--c-link-500: #002f5fff;
|
|
46
46
|
--c-link-rgb: 0, 47, 95;
|
|
47
47
|
--c-link-600: #002a56ff;
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
--c-link-950: #03162eff;
|
|
52
52
|
--c-primary-50: #f2fcffff;
|
|
53
53
|
--c-primary-100: #c4dee4ff;
|
|
54
|
-
--c-primary-200: #
|
|
55
|
-
--c-primary-300: #
|
|
56
|
-
--c-primary-400: #
|
|
54
|
+
--c-primary-200: #8bc2cfff;
|
|
55
|
+
--c-primary-300: #54a5b7ff;
|
|
56
|
+
--c-primary-400: #328597ff;
|
|
57
57
|
--c-primary-500: #006778ff;
|
|
58
58
|
--c-primary-rgb: 0, 103, 120;
|
|
59
59
|
--c-primary-600: #005665ff;
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
--c-primary-950: #001a20ff;
|
|
64
64
|
--c-secondary-50: #fff8fbff;
|
|
65
65
|
--c-secondary-100: #f3c5d8ff;
|
|
66
|
-
--c-secondary-200: #
|
|
67
|
-
--c-secondary-300: #
|
|
68
|
-
--c-secondary-400: #
|
|
66
|
+
--c-secondary-200: #e88eb6ff;
|
|
67
|
+
--c-secondary-300: #d25995ff;
|
|
68
|
+
--c-secondary-400: #aa3372ff;
|
|
69
69
|
--c-secondary-500: #830051ff;
|
|
70
70
|
--c-secondary-rgb: 131, 0, 81;
|
|
71
71
|
--c-secondary-600: #710045ff;
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
--c-slate-950: #1b1e20ff;
|
|
88
88
|
--c-success-50: #f2ffecff;
|
|
89
89
|
--c-success-100: #d0efc3ff;
|
|
90
|
-
--c-success-200: #
|
|
91
|
-
--c-success-300: #
|
|
92
|
-
--c-success-400: #
|
|
90
|
+
--c-success-200: #a4e386ff;
|
|
91
|
+
--c-success-300: #7bd34aff;
|
|
92
|
+
--c-success-400: #66be30ff;
|
|
93
93
|
--c-success-500: #51a808ff;
|
|
94
94
|
--c-success-rgb: 81, 168, 8;
|
|
95
95
|
--c-success-600: #408900ff;
|
|
@@ -220,18 +220,18 @@
|
|
|
220
220
|
--c-on-nav: var(--c-white);
|
|
221
221
|
--c-nav-active: var(--c-primary-100);
|
|
222
222
|
--c-on-nav-active: var(--c-primary-700);
|
|
223
|
-
--c-chart-1: #
|
|
224
|
-
--c-chart-2: #
|
|
225
|
-
--c-chart-3: #
|
|
226
|
-
--c-chart-4: #
|
|
227
|
-
--c-chart-5: #
|
|
228
|
-
--c-chart-6: #
|
|
229
|
-
--c-chart-7: #
|
|
230
|
-
--c-chart-8: #
|
|
231
|
-
--c-chart-9: #
|
|
232
|
-
--c-chart-10: #
|
|
233
|
-
--c-chart-11: #
|
|
234
|
-
--c-chart-12: #
|
|
223
|
+
--c-chart-1: #1295f2ff;
|
|
224
|
+
--c-chart-2: #b75593ff;
|
|
225
|
+
--c-chart-3: #b5901dff;
|
|
226
|
+
--c-chart-4: #905fc5ff;
|
|
227
|
+
--c-chart-5: #05a88cff;
|
|
228
|
+
--c-chart-6: #b64655ff;
|
|
229
|
+
--c-chart-7: #26a2bcff;
|
|
230
|
+
--c-chart-8: #5165d4ff;
|
|
231
|
+
--c-chart-9: #ce6cb9ff;
|
|
232
|
+
--c-chart-10: #858d00ff;
|
|
233
|
+
--c-chart-11: #8483eeff;
|
|
234
|
+
--c-chart-12: #008f90ff;
|
|
235
235
|
--c-chart-surface: var(--c-white);
|
|
236
236
|
--c-chart-grid: var(--c-tertiary-200);
|
|
237
237
|
--c-chart-axis: var(--c-tertiary-500);
|
|
@@ -265,68 +265,68 @@
|
|
|
265
265
|
--c-primary: var(--c-primary-300);
|
|
266
266
|
--c-primary-hover: var(--c-primary-200);
|
|
267
267
|
--c-on-primary: var(--c-primary-950);
|
|
268
|
-
--c-primary-subtle: var(--c-primary-
|
|
269
|
-
--c-primary-subtle-hover: var(--c-primary-
|
|
270
|
-
--c-on-primary-subtle: var(--c-primary-
|
|
268
|
+
--c-primary-subtle: var(--c-primary-700);
|
|
269
|
+
--c-primary-subtle-hover: var(--c-primary-600);
|
|
270
|
+
--c-on-primary-subtle: var(--c-primary-50);
|
|
271
271
|
--c-secondary: var(--c-secondary-300);
|
|
272
272
|
--c-secondary-hover: var(--c-secondary-200);
|
|
273
|
-
--c-on-secondary: var(--c-secondary-
|
|
274
|
-
--c-secondary-subtle: var(--c-secondary-
|
|
275
|
-
--c-secondary-subtle-hover: var(--c-secondary-
|
|
276
|
-
--c-on-secondary-subtle: var(--c-secondary-
|
|
277
|
-
--c-accent: var(--c-accent-
|
|
278
|
-
--c-accent-hover: var(--c-accent-
|
|
279
|
-
--c-on-accent: var(--c-accent-
|
|
280
|
-
--c-accent-subtle: var(--c-accent-
|
|
281
|
-
--c-accent-subtle-hover: var(--c-accent-
|
|
282
|
-
--c-on-accent-subtle: var(--c-accent-
|
|
283
|
-
--c-success: var(--c-success-
|
|
284
|
-
--c-success-hover: var(--c-success-
|
|
285
|
-
--c-on-success: var(--c-success-
|
|
286
|
-
--c-success-subtle: var(--c-success-
|
|
287
|
-
--c-success-subtle-hover: var(--c-success-
|
|
288
|
-
--c-on-success-subtle: var(--c-success-
|
|
289
|
-
--c-info: var(--c-info-
|
|
290
|
-
--c-info-hover: var(--c-info-
|
|
291
|
-
--c-on-info: var(--c-info-
|
|
292
|
-
--c-info-subtle: var(--c-info-
|
|
293
|
-
--c-info-subtle-hover: var(--c-info-
|
|
294
|
-
--c-on-info-subtle: var(--c-info-
|
|
295
|
-
--c-warning: var(--c-warning-
|
|
296
|
-
--c-warning-hover: var(--c-warning-
|
|
297
|
-
--c-on-warning: var(--c-warning-
|
|
298
|
-
--c-warning-subtle: var(--c-warning-
|
|
299
|
-
--c-warning-subtle-hover: var(--c-warning-
|
|
300
|
-
--c-on-warning-subtle: var(--c-warning-
|
|
301
|
-
--c-error: var(--c-error-
|
|
302
|
-
--c-error-hover: var(--c-error-
|
|
303
|
-
--c-on-error: var(--c-error-
|
|
304
|
-
--c-error-subtle: var(--c-error-
|
|
305
|
-
--c-error-subtle-hover: var(--c-error-
|
|
306
|
-
--c-on-error-subtle: var(--c-error-
|
|
273
|
+
--c-on-secondary: var(--c-secondary-950);
|
|
274
|
+
--c-secondary-subtle: var(--c-secondary-700);
|
|
275
|
+
--c-secondary-subtle-hover: var(--c-secondary-600);
|
|
276
|
+
--c-on-secondary-subtle: var(--c-secondary-50);
|
|
277
|
+
--c-accent: var(--c-accent-400);
|
|
278
|
+
--c-accent-hover: var(--c-accent-300);
|
|
279
|
+
--c-on-accent: var(--c-accent-950);
|
|
280
|
+
--c-accent-subtle: var(--c-accent-700);
|
|
281
|
+
--c-accent-subtle-hover: var(--c-accent-600);
|
|
282
|
+
--c-on-accent-subtle: var(--c-accent-50);
|
|
283
|
+
--c-success: var(--c-success-400);
|
|
284
|
+
--c-success-hover: var(--c-success-300);
|
|
285
|
+
--c-on-success: var(--c-success-950);
|
|
286
|
+
--c-success-subtle: var(--c-success-700);
|
|
287
|
+
--c-success-subtle-hover: var(--c-success-600);
|
|
288
|
+
--c-on-success-subtle: var(--c-success-50);
|
|
289
|
+
--c-info: var(--c-info-400);
|
|
290
|
+
--c-info-hover: var(--c-info-300);
|
|
291
|
+
--c-on-info: var(--c-info-950);
|
|
292
|
+
--c-info-subtle: var(--c-info-700);
|
|
293
|
+
--c-info-subtle-hover: var(--c-info-600);
|
|
294
|
+
--c-on-info-subtle: var(--c-info-50);
|
|
295
|
+
--c-warning: var(--c-warning-400);
|
|
296
|
+
--c-warning-hover: var(--c-warning-300);
|
|
297
|
+
--c-on-warning: var(--c-warning-950);
|
|
298
|
+
--c-warning-subtle: var(--c-warning-700);
|
|
299
|
+
--c-warning-subtle-hover: var(--c-warning-600);
|
|
300
|
+
--c-on-warning-subtle: var(--c-warning-50);
|
|
301
|
+
--c-error: var(--c-error-400);
|
|
302
|
+
--c-error-hover: var(--c-error-300);
|
|
303
|
+
--c-on-error: var(--c-error-950);
|
|
304
|
+
--c-error-subtle: var(--c-error-700);
|
|
305
|
+
--c-error-subtle-hover: var(--c-error-600);
|
|
306
|
+
--c-on-error-subtle: var(--c-error-50);
|
|
307
307
|
--c-link: var(--c-link-200);
|
|
308
308
|
--c-link-hover: var(--c-link-100);
|
|
309
309
|
--c-on-link: var(--c-link-900);
|
|
310
|
-
--c-link-subtle: var(--c-link-
|
|
311
|
-
--c-link-subtle-hover: var(--c-link-
|
|
312
|
-
--c-on-link-subtle: var(--c-link-
|
|
313
|
-
--c-nav-surface: var(--c-primary-
|
|
314
|
-
--c-nav-surface-hover: var(--c-primary-
|
|
310
|
+
--c-link-subtle: var(--c-link-700);
|
|
311
|
+
--c-link-subtle-hover: var(--c-link-600);
|
|
312
|
+
--c-on-link-subtle: var(--c-link-50);
|
|
313
|
+
--c-nav-surface: var(--c-primary-700);
|
|
314
|
+
--c-nav-surface-hover: var(--c-primary-600);
|
|
315
315
|
--c-on-nav: var(--c-primary-100);
|
|
316
|
-
--c-nav-active: var(--c-primary-
|
|
316
|
+
--c-nav-active: var(--c-primary-500);
|
|
317
317
|
--c-on-nav-active: var(--c-white);
|
|
318
|
-
--c-chart-1: #
|
|
319
|
-
--c-chart-2: #
|
|
320
|
-
--c-chart-3: #
|
|
321
|
-
--c-chart-4: #
|
|
322
|
-
--c-chart-5: #
|
|
323
|
-
--c-chart-6: #
|
|
324
|
-
--c-chart-7: #
|
|
325
|
-
--c-chart-8: #
|
|
326
|
-
--c-chart-9: #
|
|
327
|
-
--c-chart-10: #
|
|
328
|
-
--c-chart-11: #
|
|
329
|
-
--c-chart-12: #
|
|
318
|
+
--c-chart-1: #1094f1ff;
|
|
319
|
+
--c-chart-2: #b75693ff;
|
|
320
|
+
--c-chart-3: #b5901aff;
|
|
321
|
+
--c-chart-4: #9160c6ff;
|
|
322
|
+
--c-chart-5: #17ad92ff;
|
|
323
|
+
--c-chart-6: #c3525fff;
|
|
324
|
+
--c-chart-7: #1da6c1ff;
|
|
325
|
+
--c-chart-8: #586eddff;
|
|
326
|
+
--c-chart-9: #ce6cb9ff;
|
|
327
|
+
--c-chart-10: #848c00ff;
|
|
328
|
+
--c-chart-11: #8382edff;
|
|
329
|
+
--c-chart-12: #009293ff;
|
|
330
330
|
--c-chart-surface: var(--c-slate-800);
|
|
331
331
|
--c-chart-grid: var(--c-slate-700);
|
|
332
332
|
--c-chart-axis: var(--c-slate-300);
|
|
@@ -361,68 +361,68 @@
|
|
|
361
361
|
--c-primary: var(--c-primary-300);
|
|
362
362
|
--c-primary-hover: var(--c-primary-200);
|
|
363
363
|
--c-on-primary: var(--c-primary-950);
|
|
364
|
-
--c-primary-subtle: var(--c-primary-
|
|
365
|
-
--c-primary-subtle-hover: var(--c-primary-
|
|
366
|
-
--c-on-primary-subtle: var(--c-primary-
|
|
364
|
+
--c-primary-subtle: var(--c-primary-700);
|
|
365
|
+
--c-primary-subtle-hover: var(--c-primary-600);
|
|
366
|
+
--c-on-primary-subtle: var(--c-primary-50);
|
|
367
367
|
--c-secondary: var(--c-secondary-300);
|
|
368
368
|
--c-secondary-hover: var(--c-secondary-200);
|
|
369
|
-
--c-on-secondary: var(--c-secondary-
|
|
370
|
-
--c-secondary-subtle: var(--c-secondary-
|
|
371
|
-
--c-secondary-subtle-hover: var(--c-secondary-
|
|
372
|
-
--c-on-secondary-subtle: var(--c-secondary-
|
|
373
|
-
--c-accent: var(--c-accent-
|
|
374
|
-
--c-accent-hover: var(--c-accent-
|
|
375
|
-
--c-on-accent: var(--c-accent-
|
|
376
|
-
--c-accent-subtle: var(--c-accent-
|
|
377
|
-
--c-accent-subtle-hover: var(--c-accent-
|
|
378
|
-
--c-on-accent-subtle: var(--c-accent-
|
|
379
|
-
--c-success: var(--c-success-
|
|
380
|
-
--c-success-hover: var(--c-success-
|
|
381
|
-
--c-on-success: var(--c-success-
|
|
382
|
-
--c-success-subtle: var(--c-success-
|
|
383
|
-
--c-success-subtle-hover: var(--c-success-
|
|
384
|
-
--c-on-success-subtle: var(--c-success-
|
|
385
|
-
--c-info: var(--c-info-
|
|
386
|
-
--c-info-hover: var(--c-info-
|
|
387
|
-
--c-on-info: var(--c-info-
|
|
388
|
-
--c-info-subtle: var(--c-info-
|
|
389
|
-
--c-info-subtle-hover: var(--c-info-
|
|
390
|
-
--c-on-info-subtle: var(--c-info-
|
|
391
|
-
--c-warning: var(--c-warning-
|
|
392
|
-
--c-warning-hover: var(--c-warning-
|
|
393
|
-
--c-on-warning: var(--c-warning-
|
|
394
|
-
--c-warning-subtle: var(--c-warning-
|
|
395
|
-
--c-warning-subtle-hover: var(--c-warning-
|
|
396
|
-
--c-on-warning-subtle: var(--c-warning-
|
|
397
|
-
--c-error: var(--c-error-
|
|
398
|
-
--c-error-hover: var(--c-error-
|
|
399
|
-
--c-on-error: var(--c-error-
|
|
400
|
-
--c-error-subtle: var(--c-error-
|
|
401
|
-
--c-error-subtle-hover: var(--c-error-
|
|
402
|
-
--c-on-error-subtle: var(--c-error-
|
|
369
|
+
--c-on-secondary: var(--c-secondary-950);
|
|
370
|
+
--c-secondary-subtle: var(--c-secondary-700);
|
|
371
|
+
--c-secondary-subtle-hover: var(--c-secondary-600);
|
|
372
|
+
--c-on-secondary-subtle: var(--c-secondary-50);
|
|
373
|
+
--c-accent: var(--c-accent-400);
|
|
374
|
+
--c-accent-hover: var(--c-accent-300);
|
|
375
|
+
--c-on-accent: var(--c-accent-950);
|
|
376
|
+
--c-accent-subtle: var(--c-accent-700);
|
|
377
|
+
--c-accent-subtle-hover: var(--c-accent-600);
|
|
378
|
+
--c-on-accent-subtle: var(--c-accent-50);
|
|
379
|
+
--c-success: var(--c-success-400);
|
|
380
|
+
--c-success-hover: var(--c-success-300);
|
|
381
|
+
--c-on-success: var(--c-success-950);
|
|
382
|
+
--c-success-subtle: var(--c-success-700);
|
|
383
|
+
--c-success-subtle-hover: var(--c-success-600);
|
|
384
|
+
--c-on-success-subtle: var(--c-success-50);
|
|
385
|
+
--c-info: var(--c-info-400);
|
|
386
|
+
--c-info-hover: var(--c-info-300);
|
|
387
|
+
--c-on-info: var(--c-info-950);
|
|
388
|
+
--c-info-subtle: var(--c-info-700);
|
|
389
|
+
--c-info-subtle-hover: var(--c-info-600);
|
|
390
|
+
--c-on-info-subtle: var(--c-info-50);
|
|
391
|
+
--c-warning: var(--c-warning-400);
|
|
392
|
+
--c-warning-hover: var(--c-warning-300);
|
|
393
|
+
--c-on-warning: var(--c-warning-950);
|
|
394
|
+
--c-warning-subtle: var(--c-warning-700);
|
|
395
|
+
--c-warning-subtle-hover: var(--c-warning-600);
|
|
396
|
+
--c-on-warning-subtle: var(--c-warning-50);
|
|
397
|
+
--c-error: var(--c-error-400);
|
|
398
|
+
--c-error-hover: var(--c-error-300);
|
|
399
|
+
--c-on-error: var(--c-error-950);
|
|
400
|
+
--c-error-subtle: var(--c-error-700);
|
|
401
|
+
--c-error-subtle-hover: var(--c-error-600);
|
|
402
|
+
--c-on-error-subtle: var(--c-error-50);
|
|
403
403
|
--c-link: var(--c-link-200);
|
|
404
404
|
--c-link-hover: var(--c-link-100);
|
|
405
405
|
--c-on-link: var(--c-link-900);
|
|
406
|
-
--c-link-subtle: var(--c-link-
|
|
407
|
-
--c-link-subtle-hover: var(--c-link-
|
|
408
|
-
--c-on-link-subtle: var(--c-link-
|
|
409
|
-
--c-nav-surface: var(--c-primary-
|
|
410
|
-
--c-nav-surface-hover: var(--c-primary-
|
|
406
|
+
--c-link-subtle: var(--c-link-700);
|
|
407
|
+
--c-link-subtle-hover: var(--c-link-600);
|
|
408
|
+
--c-on-link-subtle: var(--c-link-50);
|
|
409
|
+
--c-nav-surface: var(--c-primary-700);
|
|
410
|
+
--c-nav-surface-hover: var(--c-primary-600);
|
|
411
411
|
--c-on-nav: var(--c-primary-100);
|
|
412
|
-
--c-nav-active: var(--c-primary-
|
|
412
|
+
--c-nav-active: var(--c-primary-500);
|
|
413
413
|
--c-on-nav-active: var(--c-white);
|
|
414
|
-
--c-chart-1: #
|
|
415
|
-
--c-chart-2: #
|
|
416
|
-
--c-chart-3: #
|
|
417
|
-
--c-chart-4: #
|
|
418
|
-
--c-chart-5: #
|
|
419
|
-
--c-chart-6: #
|
|
420
|
-
--c-chart-7: #
|
|
421
|
-
--c-chart-8: #
|
|
422
|
-
--c-chart-9: #
|
|
423
|
-
--c-chart-10: #
|
|
424
|
-
--c-chart-11: #
|
|
425
|
-
--c-chart-12: #
|
|
414
|
+
--c-chart-1: #1094f1ff;
|
|
415
|
+
--c-chart-2: #b75693ff;
|
|
416
|
+
--c-chart-3: #b5901aff;
|
|
417
|
+
--c-chart-4: #9160c6ff;
|
|
418
|
+
--c-chart-5: #17ad92ff;
|
|
419
|
+
--c-chart-6: #c3525fff;
|
|
420
|
+
--c-chart-7: #1da6c1ff;
|
|
421
|
+
--c-chart-8: #586eddff;
|
|
422
|
+
--c-chart-9: #ce6cb9ff;
|
|
423
|
+
--c-chart-10: #848c00ff;
|
|
424
|
+
--c-chart-11: #8382edff;
|
|
425
|
+
--c-chart-12: #009293ff;
|
|
426
426
|
--c-chart-surface: var(--c-slate-800);
|
|
427
427
|
--c-chart-grid: var(--c-slate-700);
|
|
428
428
|
--c-chart-axis: var(--c-slate-300);
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "::part(indicator)",
|
|
140
|
-
"description": "The checkbox box itself — the bordered square that fills when checked"
|
|
140
|
+
"description": "The checkbox box itself — the bordered square that fills when checked; border, fill and the keyboard focus ring (its `::before`) all draw with `currentColor`, so `color` recolours them together"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "::part(mark)",
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
"name": "::part(indicator)",
|
|
448
|
-
"description": "The radio ring itself; the selection dot is its `::after` —
|
|
448
|
+
"description": "The radio ring itself; the selection dot is its `::after` and the keyboard focus ring its `::before` — all three follow `currentColor`, so `color` recolours the whole indicator, focus ring included"
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
"name": "::part(content)",
|