@ids-group-ltd/ids-design-system 0.11.2 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +319 -12
- package/components.md +35 -12
- package/design-system.md +135 -1
- package/docs/agent/INDEX.md +99 -0
- package/docs/agent/domain/ds-w3w.md +10 -0
- package/docs/agent/feedback/ds-alert.md +9 -0
- package/docs/agent/feedback/ds-avatar-group.md +7 -0
- package/docs/agent/feedback/ds-avatar.md +6 -0
- package/docs/agent/feedback/ds-badge.md +7 -0
- package/docs/agent/feedback/ds-banner.md +10 -0
- package/docs/agent/feedback/ds-empty-state.md +7 -0
- package/docs/agent/feedback/ds-progress.md +7 -0
- package/docs/agent/feedback/ds-skeleton.md +6 -0
- package/docs/agent/feedback/ds-spinner.md +6 -0
- package/docs/agent/feedback/ds-stat.md +7 -0
- package/docs/agent/feedback/ds-status-dot.md +6 -0
- package/docs/agent/feedback/ds-tag.md +8 -0
- package/docs/agent/feedback/ds-toast.md +12 -0
- package/docs/agent/forms/ds-autocomplete.md +9 -0
- package/docs/agent/forms/ds-button.md +14 -0
- package/docs/agent/forms/ds-checkbox.md +6 -0
- package/docs/agent/forms/ds-date-picker.md +7 -0
- package/docs/agent/forms/ds-dropzone.md +10 -0
- package/docs/agent/forms/ds-icon-button.md +10 -0
- package/docs/agent/forms/ds-input.md +22 -0
- package/docs/agent/forms/ds-multi-select.md +6 -0
- package/docs/agent/forms/ds-number-stepper.md +8 -0
- package/docs/agent/forms/ds-radio.md +6 -0
- package/docs/agent/forms/ds-search.md +10 -0
- package/docs/agent/forms/ds-select.md +7 -0
- package/docs/agent/forms/ds-switch.md +6 -0
- package/docs/agent/forms/ds-textarea.md +9 -0
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +21 -0
- package/docs/agent/foundations/global-helper-classes.md +18 -0
- package/docs/agent/foundations/grid.md +35 -0
- package/docs/agent/foundations/tokens.md +47 -0
- package/docs/agent/navigation/ds-app-layout.md +10 -0
- package/docs/agent/navigation/ds-auth-layout.md +9 -0
- package/docs/agent/navigation/ds-breadcrumbs.md +7 -0
- package/docs/agent/navigation/ds-divider.md +9 -0
- package/docs/agent/navigation/ds-page-footer.md +7 -0
- package/docs/agent/navigation/ds-page-header.md +8 -0
- package/docs/agent/navigation/ds-pagination.md +7 -0
- package/docs/agent/navigation/ds-sidenav-group.md +8 -0
- package/docs/agent/navigation/ds-sidenav-item.md +9 -0
- package/docs/agent/navigation/ds-sidenav.md +9 -0
- package/docs/agent/navigation/ds-stepper.md +6 -0
- package/docs/agent/navigation/ds-tabs.md +9 -0
- package/docs/agent/navigation/ds-topbar.md +8 -0
- package/docs/agent/overlays/ds-bottom-sheet.md +9 -0
- package/docs/agent/overlays/ds-drawer.md +9 -0
- package/docs/agent/overlays/ds-menu.md +8 -0
- package/docs/agent/overlays/ds-modal-card.md +6 -0
- package/docs/agent/overlays/ds-modal.md +8 -0
- package/docs/agent/overlays/ds-popover.md +6 -0
- package/docs/agent/overlays/ds-tooltip.md +8 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/breadcrumbs-service.md +30 -0
- package/docs/agent/platform/ds-config.md +60 -0
- package/docs/agent/platform/ds-icon-registry.md +23 -0
- package/docs/agent/platform/toast-service.md +17 -0
- package/docs/agent/surfaces/ds-accordion.md +8 -0
- package/docs/agent/surfaces/ds-card.md +10 -0
- package/docs/agent/tables/ds-table.md +15 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +924 -763
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.3.json +152 -0
- package/migrations/0.11.4.json +241 -0
- package/migrations/0.8.0.json +6 -5
- package/package.json +1 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_dropdown-overlay.scss +25 -32
- package/styles/_ds-color.scss +37 -12
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/styles/_tokens-charts.scss +2 -3
- package/styles/_tokens.scss +158 -321
- package/themes/README.md +32 -1
- package/themes/_base-palette.scss +35 -76
- package/themes/_semantic.scss +16 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +205 -230
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.11.3",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "banner-icon-top-offset-token-removed",
|
|
6
|
+
"kind": "removed-api",
|
|
7
|
+
"old": "--banner-ic-mt",
|
|
8
|
+
"new": null,
|
|
9
|
+
"appliesWhen": "You set --banner-ic-mt anywhere. It is a global geometry token, not a --ds-* component hook, so an app that only overrides --ds-banner-* is unaffected.",
|
|
10
|
+
"pitfall": "Deleting the override is the whole fix, but only because the icon no longer needs nudging: it is now centred on the message block rather than aligned to the first line. If you had raised the value to line the icon up with a taller first line, that adjustment is now working against the new rule and will push the icon off centre.",
|
|
11
|
+
"searchHints": [
|
|
12
|
+
"banner-ic-mt"
|
|
13
|
+
],
|
|
14
|
+
"surface": "style",
|
|
15
|
+
"detect": [
|
|
16
|
+
"--banner-ic-mt"
|
|
17
|
+
],
|
|
18
|
+
"verify": "A ds-banner with two or more lines of body text shows its icon vertically centred on the text block, and no rule in your app references --banner-ic-mt.",
|
|
19
|
+
"restore": "There is no one-line restore. `align-self: flex-start` on the icon does not reproduce the old look: it drops the one border-width of nudge the token supplied on a banner (the toast never read it — its own 2px came from a margin, removed with the same change), and a consumer's `ds-banner .icon` is specificity (0,1,1) against the component's own (0,4,0), so it does not win at all. On a `compact` banner it is actively wrong, because that variant was already centred before this change. If you must have the old alignment, fork the component's stylesheet.",
|
|
20
|
+
"note": "The token was one border-width of optical bump, and it existed only to serve the first-line alignment rule. With the icon centred on the block there is nothing left for it to correct.",
|
|
21
|
+
"action": "Delete any --banner-ic-mt declaration. There is no replacement token."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "toast-region-subclass-members-moved",
|
|
25
|
+
"kind": "behavior",
|
|
26
|
+
"old": "class MyToastRegion extends ToastRegionComponent",
|
|
27
|
+
"new": null,
|
|
28
|
+
"action": "Build after upgrading. Rename or mark `override` every member the compiler reports as colliding, and DELETE any `override startCountdown` - that member no longer exists, so the override is dead code the compiler will not complain about.",
|
|
29
|
+
"appliesWhen": "Only a class that extends ToastRegionComponent. Template users of `<ds-toast-region>` and callers of ToastService need nothing.",
|
|
30
|
+
"pitfall": "`startCountdown` was announced in 0.11.2 as a member the region had just GAINED, so an override written for that release is one release old and now overrides nothing: it compiles clean and silently never runs. And every one of the five new names is `private` or `protected`, which is no protection - a redeclared private fails with TS2415 exactly as a public collision does.",
|
|
31
|
+
"note": "ToastRegionComponent gained `arm`, `pauseAll`, `remaining`, `resumeAll` and `startedAt`, and lost `startCountdown`. A countdown is armed when a toast is promoted to visible, and re-armed from what is left when a hover or focus pause ends - the region owns the timing because only it knows when a toast became visible. None of the five is public API or a signal, and there is no public replacement for `startCountdown`.",
|
|
32
|
+
"searchHints": [
|
|
33
|
+
"extends ToastRegionComponent",
|
|
34
|
+
"ToastRegionComponent",
|
|
35
|
+
"startCountdown",
|
|
36
|
+
"override startCountdown",
|
|
37
|
+
"pauseAll",
|
|
38
|
+
"resumeAll",
|
|
39
|
+
"TS2415",
|
|
40
|
+
"TS4114"
|
|
41
|
+
],
|
|
42
|
+
"surface": "typescript",
|
|
43
|
+
"detect": [
|
|
44
|
+
"extends ToastRegionComponent",
|
|
45
|
+
"override startCountdown"
|
|
46
|
+
],
|
|
47
|
+
"verify": "The app builds with no TS4114 / TS2415 / TS2416 naming ToastRegionComponent, and no `override startCountdown` remains in your source.",
|
|
48
|
+
"restore": null
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "banner-dismissed-output-never-existed",
|
|
52
|
+
"kind": "output-rename",
|
|
53
|
+
"old": "ds-banner[dismissed]",
|
|
54
|
+
"new": "closed",
|
|
55
|
+
"action": "On every `<ds-banner>`, rename the binding `(dismissed)` to `(closed)`.",
|
|
56
|
+
"appliesWhen": "Only if you bound `(dismissed)` on a `<ds-banner>`. It was never an output of this component, so the handler has never run.",
|
|
57
|
+
"pitfall": "Nothing errors and nothing logs: an unknown event binding registers a DOM listener for an event no one dispatches, so `(dismissed)` looks wired and is inert. Only checking that the handler runs finds it.",
|
|
58
|
+
"note": "`ds-banner` emits `(closed)`. `(dismissed)` was published in the component catalogue and is not an output of the class.",
|
|
59
|
+
"searchHints": [
|
|
60
|
+
"(dismissed)",
|
|
61
|
+
"<ds-banner",
|
|
62
|
+
"(closed)"
|
|
63
|
+
],
|
|
64
|
+
"surface": "template",
|
|
65
|
+
"verify": "Every `<ds-banner>` handler you expected to run does run — bind it and confirm the callback fires."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "toast-dismissed-output-never-existed",
|
|
69
|
+
"kind": "output-rename",
|
|
70
|
+
"old": "ds-toast[dismissed]",
|
|
71
|
+
"new": "closed",
|
|
72
|
+
"action": "On every `<ds-toast>`, rename the binding `(dismissed)` to `(closed)`.",
|
|
73
|
+
"appliesWhen": "Only if you bound `(dismissed)` on a `<ds-toast>`. It was never an output of this component, so the handler has never run.",
|
|
74
|
+
"pitfall": "Nothing errors and nothing logs: an unknown event binding registers a DOM listener for an event no one dispatches, so `(dismissed)` looks wired and is inert. Only checking that the handler runs finds it.",
|
|
75
|
+
"note": "`ds-toast` emits `(closed)`. `(dismissed)` was published in the component catalogue and is not an output of the class.",
|
|
76
|
+
"searchHints": [
|
|
77
|
+
"(dismissed)",
|
|
78
|
+
"<ds-toast",
|
|
79
|
+
"(closed)"
|
|
80
|
+
],
|
|
81
|
+
"surface": "template",
|
|
82
|
+
"verify": "Every `<ds-toast>` handler you expected to run does run — bind it and confirm the callback fires."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "pagination-page-change-output-never-existed",
|
|
86
|
+
"kind": "output-rename",
|
|
87
|
+
"old": "ds-pagination[pageChange]",
|
|
88
|
+
"new": "currentPageChange",
|
|
89
|
+
"action": "On every `<ds-pagination>`, rename the binding `(pageChange)` to `(currentPageChange)`.",
|
|
90
|
+
"appliesWhen": "Only if you bound `(pageChange)` on a `<ds-pagination>`. It was never an output of this component, so the handler has never run.",
|
|
91
|
+
"pitfall": "Nothing errors and nothing logs: an unknown event binding registers a DOM listener for an event no one dispatches, so `(pageChange)` looks wired and is inert. Only checking that the handler runs finds it.",
|
|
92
|
+
"note": "`ds-pagination` emits `(currentPageChange)`. `(pageChange)` was published in the component catalogue and is not an output of the class.",
|
|
93
|
+
"searchHints": [
|
|
94
|
+
"(pageChange)",
|
|
95
|
+
"<ds-pagination",
|
|
96
|
+
"(currentPageChange)"
|
|
97
|
+
],
|
|
98
|
+
"surface": "template",
|
|
99
|
+
"verify": "Every `<ds-pagination>` handler you expected to run does run — bind it and confirm the callback fires."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "table-row-click-output-never-existed",
|
|
103
|
+
"kind": "output-rename",
|
|
104
|
+
"old": "ds-table[rowClick]",
|
|
105
|
+
"new": "rowClicked",
|
|
106
|
+
"action": "On every `<ds-table>`, rename the binding `(rowClick)` to `(rowClicked)`.",
|
|
107
|
+
"appliesWhen": "Only if you bound `(rowClick)` on a `<ds-table>`. It was never an output of this component, so the handler has never run.",
|
|
108
|
+
"pitfall": "Nothing errors and nothing logs: an unknown event binding registers a DOM listener for an event no one dispatches, so `(rowClick)` looks wired and is inert. Only checking that the handler runs finds it.",
|
|
109
|
+
"note": "`ds-table` emits `(rowClicked)`. `(rowClick)` was published in the component catalogue and is not an output of the class.",
|
|
110
|
+
"searchHints": [
|
|
111
|
+
"(rowClick)",
|
|
112
|
+
"<ds-table",
|
|
113
|
+
"(rowClicked)"
|
|
114
|
+
],
|
|
115
|
+
"surface": "template",
|
|
116
|
+
"verify": "Every `<ds-table>` handler you expected to run does run — bind it and confirm the callback fires."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "ds-color-mixin-rejects-unknown-family",
|
|
120
|
+
"kind": "behavior",
|
|
121
|
+
"old": "ds.color(",
|
|
122
|
+
"new": null,
|
|
123
|
+
"action": "Change every `@include ds.color(<name>)` to one of `secondary`, `tertiary`, `error`, `success` or `warning`, or delete the include if the zone was never painting.",
|
|
124
|
+
"appliesWhen": "Only a consumer whose own Sass calls the mixin. The `ds-color=\"…\"` attribute in a template runs no Sass and is unaffected.",
|
|
125
|
+
"pitfall": "This is a hard build failure, not a warning — the `@error` aborts the compile, so a wrong name that used to ship silently now stops the build. That is the point: the eleven pointers it emitted could never resolve, so the zone painted with `unset` and read as a theming problem.",
|
|
126
|
+
"note": "`ds.color($family)` validates its argument against the five families it supports. It previously accepted any name and emitted pointers at guaranteed-invalid values.",
|
|
127
|
+
"searchHints": [
|
|
128
|
+
"ds.color(",
|
|
129
|
+
"@include ds.color",
|
|
130
|
+
"styles/ds-color"
|
|
131
|
+
],
|
|
132
|
+
"surface": "style",
|
|
133
|
+
"verify": "Your Sass compiles, and every `ds-color` zone shows its family's accent rather than falling back to the default.",
|
|
134
|
+
"restore": null,
|
|
135
|
+
"detect": [
|
|
136
|
+
"ds.color(",
|
|
137
|
+
"@include ds.color"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"informational": [
|
|
142
|
+
"The banner, toast and alert icon now centres on the message block instead of aligning to the first line of text. Nothing to change: it is a visual default, applied by the components themselves. One-line messages look identical either way, which covers most toasts; the difference grows with the text, and was 12px at two lines and 21px at three.",
|
|
143
|
+
"ToastService.promise() and any toast with an `action` changed their dismissal timing. A settled promise toast now counts its 4s/6s from when it becomes visible rather than from when the promise resolved, so one queued behind `maxVisible` is no longer removed before it is shown. A toast with an `action` no longer auto-dismisses at all and is always dismissible, because the region is last in tab order and the button was unreachable within the old five seconds. Hovering or focusing the region pauses every countdown. Nothing to change in consumer code; if you relied on an action toast disappearing on its own, dismiss it from the action handler.",
|
|
144
|
+
"Inside a `ds-color=\"error\"`, `=\"success\"` or `=\"warning\"` zone, anything that reads the scoped accent's strong colour now renders in that status colour instead of falling back to body text — selected list and tree rows, the active sidenav item and its rail, the active tab pill, avatar initials, the active tag, dropzone text and the toast's action label. Nothing to change: those three families simply never defined the role the zone asked for, and the pointer now asks for the name they do define. A zone whose accent looked plain before will now look coloured, which is the intended appearance.",
|
|
145
|
+
"ds-banner's close button gained aria-label=\"Dismiss\", which ds-toast and ds-alert already carried. NO ACTION.",
|
|
146
|
+
"A toast body now wraps an unbroken token instead of overflowing the pill. NO ACTION.",
|
|
147
|
+
"The toast region's hover/focus pause is derived from both sources rather than latched, so tabbing out of a region the pointer still covers does not resume, focus moving inside it is not a leave, and a toast that becomes visible while paused is banked rather than counted. A resumed toast always gets at least 600ms. NO ACTION.",
|
|
148
|
+
"ds-config and the card types moved inside the library. Every symbol still reaches the package root unchanged, and no import path of yours could have named the old location: there is one entry point and no subpath resolves into lib/. NO ACTION.",
|
|
149
|
+
"A disabled ds-accordion-item's chevron asked for a colour token this library does not define, so the declaration was invalid and the chevron inherited the surrounding colour while its label greyed correctly. It reads the disabled text colour now. NO ACTION."
|
|
150
|
+
],
|
|
151
|
+
"deleteList": []
|
|
152
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.11.4",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "toast-promise-messages-generic",
|
|
6
|
+
"kind": "type-rename",
|
|
7
|
+
"old": "ToastPromiseMessages",
|
|
8
|
+
"new": "ToastPromiseMessages<T>",
|
|
9
|
+
"appliesWhen": "You name the type explicitly, e.g. in a variable or a helper that builds the messages object. Calling toast.promise(p, {...}) inline needs no change - T is inferred.",
|
|
10
|
+
"pitfall": "The parameter defaults to unknown, so an un-parameterised annotation still compiles - and still hands your success callback `unknown`, which is the defect. Passing the type is what fixes it, not the compile.",
|
|
11
|
+
"searchHints": [
|
|
12
|
+
"ToastPromiseMessages"
|
|
13
|
+
],
|
|
14
|
+
"surface": "typescript",
|
|
15
|
+
"detect": [
|
|
16
|
+
"ToastPromiseMessages"
|
|
17
|
+
],
|
|
18
|
+
"verify": "A success callback receives the resolved value with its real type: toast.promise(loadOrder(), { success: (order) => `Saved #${order.id}` }) compiles without a cast.",
|
|
19
|
+
"restore": null,
|
|
20
|
+
"note": "promise<T> declared a type parameter and then threw it away, because the messages interface hardcoded unknown. Every call site that wanted the resolved value had to cast.",
|
|
21
|
+
"action": "Annotate as ToastPromiseMessages<T> where you name the type; inline object literals need no change."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "toast-message-input-renamed-body",
|
|
25
|
+
"kind": "input-rename",
|
|
26
|
+
"old": "message",
|
|
27
|
+
"new": "body",
|
|
28
|
+
"appliesWhen": "You render <ds-toast> yourself and bind message. ToastService callers pass body already and change nothing.",
|
|
29
|
+
"pitfall": "An unknown input on a component is a template error under strictTemplates, but a plain attribute is not - message=\"…\" without brackets keeps compiling and silently renders an empty toast.",
|
|
30
|
+
"searchHints": [
|
|
31
|
+
"ds-toast",
|
|
32
|
+
"message"
|
|
33
|
+
],
|
|
34
|
+
"surface": "template",
|
|
35
|
+
"detect": [
|
|
36
|
+
"[message]",
|
|
37
|
+
"message="
|
|
38
|
+
],
|
|
39
|
+
"verify": "A hand-placed <ds-toast [body]=\"…\"> renders its text; nothing in your templates still binds message on ds-toast.",
|
|
40
|
+
"restore": null,
|
|
41
|
+
"note": "ToastOptions and ToastEntry always called the text body; only the component input said message, so one concept had two names either side of the same service.",
|
|
42
|
+
"action": "Rename the ds-toast input from message to body."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "toast-border-tokens-gain-color",
|
|
46
|
+
"kind": "token-rename",
|
|
47
|
+
"old": "--ds-toast-border, --ds-toast-border-info, --ds-toast-border-success, --ds-toast-border-warning, --ds-toast-border-error",
|
|
48
|
+
"new": "--ds-toast-border-color, --ds-toast-border-color-info, --ds-toast-border-color-success, --ds-toast-border-color-warning, --ds-toast-border-color-error",
|
|
49
|
+
"appliesWhen": "You set any of the five anywhere - :root, a theme file, or a per-instance ds-toast block.",
|
|
50
|
+
"pitfall": "The old name simply stops resolving, and the declaration it sits in is dropped whole - so a toast loses its border rather than falling back to a default. Nothing errors.",
|
|
51
|
+
"searchHints": [
|
|
52
|
+
"ds-toast-border"
|
|
53
|
+
],
|
|
54
|
+
"surface": "style",
|
|
55
|
+
"detect": [
|
|
56
|
+
"--ds-toast-border"
|
|
57
|
+
],
|
|
58
|
+
"verify": "A :root override of --ds-toast-border-color repaints the toast border, and no rule in your styles still names --ds-toast-border.",
|
|
59
|
+
"restore": null,
|
|
60
|
+
"note": "They are colours, and every other border token in the library already carries -color. These five were the last holdouts of the pre-rename naming.",
|
|
61
|
+
"action": "Add -color after -border in all five token names."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "banner-alert-announce-opt-in",
|
|
65
|
+
"kind": "behavior",
|
|
66
|
+
"old": "role and aria-live always present",
|
|
67
|
+
"new": null,
|
|
68
|
+
"appliesWhen": "You rely on a ds-banner or ds-alert being announced by a screen reader when it appears. A banner that is page furniture needs no change - silence is now the correct behaviour for it.",
|
|
69
|
+
"pitfall": "Nothing breaks visibly and no build fails, so a regression here is invisible without a screen reader: an app that raised an error banner in response to a request and relied on the alert firing now shows it silently.",
|
|
70
|
+
"searchHints": [
|
|
71
|
+
"ds-banner",
|
|
72
|
+
"ds-alert"
|
|
73
|
+
],
|
|
74
|
+
"surface": "template",
|
|
75
|
+
"detect": [
|
|
76
|
+
"ds-banner",
|
|
77
|
+
"ds-alert"
|
|
78
|
+
],
|
|
79
|
+
"verify": "A banner your app raises in response to an event carries announce and is spoken; a static strip carries none and is silent on route change.",
|
|
80
|
+
"restore": "Pass [announce]=\"true\" to get the previous behaviour on a given instance.",
|
|
81
|
+
"note": "An alert region fires on insertion, so a statically-placed strip interrupted the reader on every client-side route into its page - 12 such regions on this library's own docs. MDN advises against alert on content the user has not interacted with, and the DS convention is that a new capability is off by default.",
|
|
82
|
+
"action": "Add [announce]=\"true\" to any ds-banner or ds-alert that should be announced when it appears."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "toast-config-token-removed",
|
|
86
|
+
"kind": "removed-api",
|
|
87
|
+
"old": "DS_TOAST_CONFIG",
|
|
88
|
+
"new": "provideDsConfig({ toast: { maxVisible: 5 } })",
|
|
89
|
+
"appliesWhen": "You provide DS_TOAST_CONFIG anywhere - app.config.ts, a Route's providers, or a component's.",
|
|
90
|
+
"pitfall": "The import stops resolving, so this one fails the build rather than going quiet. The DsToastConfig interface went with the token.",
|
|
91
|
+
"searchHints": [
|
|
92
|
+
"DS_TOAST_CONFIG",
|
|
93
|
+
"DsToastConfig",
|
|
94
|
+
"maxVisible"
|
|
95
|
+
],
|
|
96
|
+
"surface": "typescript",
|
|
97
|
+
"detect": [
|
|
98
|
+
"DS_TOAST_CONFIG"
|
|
99
|
+
],
|
|
100
|
+
"verify": "Raising more toasts at once than the cap queues the extras, with the cap read from provideDsConfig and no token provider left in the app.",
|
|
101
|
+
"restore": null,
|
|
102
|
+
"note": "The two toast tokens were the only configuration in the library that did not go through DsConfig, so an app set thirteen other areas in one provideDsConfig call and then remembered two bare InjectionToken providers for toasts.",
|
|
103
|
+
"action": "Replace the { provide: DS_TOAST_CONFIG, useValue: { maxVisible: n } } provider with provideDsConfig({ toast: { maxVisible: n } }), and drop the DS_TOAST_CONFIG and DsToastConfig imports."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "toast-position-token-removed",
|
|
107
|
+
"kind": "removed-api",
|
|
108
|
+
"old": "DS_TOAST_POSITION",
|
|
109
|
+
"new": "provideDsConfig({ toast: { position: { verticalPosition: 'bottom' } } })",
|
|
110
|
+
"appliesWhen": "You provide DS_TOAST_POSITION to move the stack off its default top-right corner.",
|
|
111
|
+
"pitfall": "The import stops resolving, so the build fails rather than the toasts quietly moving. DS_TOAST_POSITION_DEFAULT is unchanged and still exported.",
|
|
112
|
+
"searchHints": [
|
|
113
|
+
"DS_TOAST_POSITION",
|
|
114
|
+
"horizontalPosition",
|
|
115
|
+
"verticalPosition"
|
|
116
|
+
],
|
|
117
|
+
"surface": "typescript",
|
|
118
|
+
"detect": [
|
|
119
|
+
"DS_TOAST_POSITION"
|
|
120
|
+
],
|
|
121
|
+
"verify": "A toast appears at the corner named in provideDsConfig, and naming only verticalPosition keeps the default horizontal side and offset.",
|
|
122
|
+
"restore": null,
|
|
123
|
+
"note": "position is now partial and merged field by field over right / top / var(--space-6). The old token's type required all three fields, so moving the stack to the bottom meant restating the other two; naming one key is now enough.",
|
|
124
|
+
"action": "Replace the { provide: DS_TOAST_POSITION, useValue: {...} } provider with provideDsConfig({ toast: { position: {...} } }), keeping only the fields you actually change."
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "toast-max-visible-default-5",
|
|
128
|
+
"kind": "behavior",
|
|
129
|
+
"old": "provideDsConfig without a toast.maxVisible",
|
|
130
|
+
"new": null,
|
|
131
|
+
"appliesWhen": "You raise more than five toasts at once and expect every one to be on screen together. An app that shows one or two at a time needs nothing.",
|
|
132
|
+
"pitfall": "Nothing is dropped and nothing errors, so this reads as toasts \"not appearing\": the sixth is queued and shows as an earlier one dismisses. A cap of 0 is the only way left to ask for an uncapped stack, and 0 no longer means \"unset\" - it is forwarded.",
|
|
133
|
+
"searchHints": [
|
|
134
|
+
"provideDsConfig",
|
|
135
|
+
"maxVisible",
|
|
136
|
+
"ToastService"
|
|
137
|
+
],
|
|
138
|
+
"surface": "config",
|
|
139
|
+
"detect": [
|
|
140
|
+
"maxVisible"
|
|
141
|
+
],
|
|
142
|
+
"verify": "Raise six toasts at once: with maxVisible 0 all six are on screen, and with the default five are, the sixth arriving as one dismisses.",
|
|
143
|
+
"restore": "Pass provideDsConfig({ toast: { maxVisible: 0 } }).",
|
|
144
|
+
"note": "The default moved from unlimited to 5. A negative value means unlimited too and warns in development, because 0 already says it.",
|
|
145
|
+
"action": "Decide whether an uncapped stack was deliberate. If it was, pass provideDsConfig({ toast: { maxVisible: 0 } }); otherwise change nothing."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "toast-standalone-no-longer-announced",
|
|
149
|
+
"kind": "behavior",
|
|
150
|
+
"old": "<ds-toast>",
|
|
151
|
+
"new": null,
|
|
152
|
+
"appliesWhen": "You place <ds-toast> in a template yourself and rely on a screen reader announcing it. Calling ToastService needs nothing - it announces through its own region.",
|
|
153
|
+
"pitfall": "The toast still renders and still looks right, so nothing signals the loss; only a screen reader shows it, and only for the markup you placed by hand.",
|
|
154
|
+
"searchHints": [
|
|
155
|
+
"<ds-toast",
|
|
156
|
+
"ds-toast",
|
|
157
|
+
"aria-live",
|
|
158
|
+
"role=\"alert\"",
|
|
159
|
+
"role=\"status\""
|
|
160
|
+
],
|
|
161
|
+
"surface": "template",
|
|
162
|
+
"detect": [
|
|
163
|
+
"<ds-toast"
|
|
164
|
+
],
|
|
165
|
+
"verify": "A hand-placed <ds-toast> carries no role or aria-live in the DOM, and a toast raised through ToastService is announced once.",
|
|
166
|
+
"restore": null,
|
|
167
|
+
"note": "<ds-toast> no longer sets role, aria-live or aria-atomic: a node created with its text already inside it is the case screen readers do not announce, so announcing moved to a region that exists first. The markup is a specimen.",
|
|
168
|
+
"action": "Raise anything that should be announced through ToastService. Keep <ds-toast> in a template only for a static specimen, or add your own live region around it."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "toast-table-subclass-members-moved",
|
|
172
|
+
"kind": "behavior",
|
|
173
|
+
"old": "class MyThing extends ToastComponent | ToastRegionComponent | ToastService | TableComponent | BannerComponent | AlertComponent",
|
|
174
|
+
"new": null,
|
|
175
|
+
"appliesWhen": "Only a class that extends one of those six. Template users and service callers need nothing.",
|
|
176
|
+
"pitfall": "Every new name is private or protected, which is no protection - a redeclared private fails with TS2415 exactly as a public collision does. And an `override promoteFromQueue` or `override role` now overrides nothing: it compiles clean and silently never runs.",
|
|
177
|
+
"searchHints": [
|
|
178
|
+
"extends ToastComponent",
|
|
179
|
+
"extends ToastRegionComponent",
|
|
180
|
+
"extends ToastService",
|
|
181
|
+
"extends TableComponent",
|
|
182
|
+
"promoteFromQueue",
|
|
183
|
+
"override role",
|
|
184
|
+
"TS2415",
|
|
185
|
+
"TS4114",
|
|
186
|
+
"extends BannerComponent",
|
|
187
|
+
"extends AlertComponent"
|
|
188
|
+
],
|
|
189
|
+
"surface": "typescript",
|
|
190
|
+
"detect": [
|
|
191
|
+
"extends ToastComponent",
|
|
192
|
+
"extends ToastRegionComponent",
|
|
193
|
+
"extends ToastService",
|
|
194
|
+
"extends TableComponent",
|
|
195
|
+
"override promoteFromQueue",
|
|
196
|
+
"override role",
|
|
197
|
+
"extends BannerComponent",
|
|
198
|
+
"extends AlertComponent"
|
|
199
|
+
],
|
|
200
|
+
"verify": "The app builds with no TS4114 / TS2415 / TS2416 naming any of the six classes, and no override of promoteFromQueue, role or message remains in your source.",
|
|
201
|
+
"restore": null,
|
|
202
|
+
"note": "ToastComponent lost `role`. ToastRegionComponent gained `leaveTimers`, `slideNeighbours`, `toastNodes`, `measureTops` and `leaveDuration`, and renamed `promoteFromQueue` to `drainQueue`. ToastService gained `announcer`, `pendingAnnouncements`, `pendingAssertive`, `announceTimer`, `scrimWatcher`, `announce` and `keepAboveScrims`. TableComponent gained `eventsAtExport`, `eventMessages`, `tableHead`, `hostElement` and `announceExport`. None is public API or a signal. BannerComponent and AlertComponent each gained `announce`. ToastComponent also gained `body` and lost `message`, which is the input rename listed separately.",
|
|
203
|
+
"action": "Build after upgrading. Rename or mark `override` every member the compiler reports as colliding, and DELETE any `override promoteFromQueue` or `override role` - neither member exists any more, so the override is dead code."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "banner-alert-aria-getters-nullable",
|
|
207
|
+
"kind": "behavior",
|
|
208
|
+
"old": "protected get ariaRole(): 'alert' | 'status'",
|
|
209
|
+
"new": null,
|
|
210
|
+
"appliesWhen": "Only a class extending BannerComponent or AlertComponent that reads or overrides ariaRole or ariaLive. Nothing in a template sees these.",
|
|
211
|
+
"pitfall": "A widening breaks the READER, not the writer: an override that still declares the narrow return type fails, and code that fed the value somewhere non-nullable fails too, both at a site that did not change.",
|
|
212
|
+
"searchHints": [
|
|
213
|
+
"ariaRole",
|
|
214
|
+
"ariaLive",
|
|
215
|
+
"extends BannerComponent",
|
|
216
|
+
"extends AlertComponent",
|
|
217
|
+
"TS2416"
|
|
218
|
+
],
|
|
219
|
+
"surface": "typescript",
|
|
220
|
+
"detect": [
|
|
221
|
+
"ariaRole",
|
|
222
|
+
"ariaLive"
|
|
223
|
+
],
|
|
224
|
+
"verify": "The app builds with no TS2416 naming ariaRole or ariaLive, and any code consuming either handles null.",
|
|
225
|
+
"restore": null,
|
|
226
|
+
"note": "Both getters widened from `'alert' | 'status'` and `'assertive' | 'polite'` to include `null`, and return null while `announce` is false, which is the default - that is how the attribute is left off entirely rather than set to an empty value.",
|
|
227
|
+
"action": "Widen your own declaration to include null, and handle null wherever you read either getter."
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"informational": [
|
|
231
|
+
"Typing on a closed ds-select now commits the type-ahead jump, as a native <select> does. The path existed but was unreachable, so nothing that worked before changes. NO ACTION.",
|
|
232
|
+
"A chip row's guard against a parent that hugs its content was unreachable and is removed; the measurement is unchanged. NO ACTION.",
|
|
233
|
+
"A queued toast is not lost: it appears as an earlier one dismisses. The stack also animates when a toast is added rather than jumping, and --ds-toast-shift-duration and --ds-toast-shift-easing tune that. NO ACTION.",
|
|
234
|
+
"Info, success and loading toasts raised through ToastService are now announced at all, where before only error and warning were. NO ACTION.",
|
|
235
|
+
"Six tokens the connected panel reads - --ds-option-padding, -gap, -radius, -row-gap, --ds-option-bg-color-active and --ds-dropdown-panel-maxh - now take effect when scoped to one picker (ds-select { ... }), where before only a global declaration reached them. The panel is portaled outside the component, so a host-scoped value arrives only if the token is on the forwarded list, and these six were not; --ds-dropdown-panel-maxh reached ds-autocomplete and neither of its siblings. NO ACTION, and nothing moves on its own: it changes only where such a declaration is already written on an element and was being ignored. If you widened one to a global rule because the scoped form did nothing, the scoped form is now the narrower way to say it.",
|
|
236
|
+
"A click in the strip between a boolean control and its label now toggles the control, where it previously hit nothing. Affects ds-radio, ds-checkbox and ds-switch. The label’s clickable box grew 8px taller; its laid-out size, the text position and the row height are unchanged, so nothing in your layout moves. NO ACTION.",
|
|
237
|
+
"The buttons inside ds-table’s bulk-actions bar are visible again — their label was the same colour as the inverted bar behind it. A pressed state now has a fill where it had none. NO ACTION.",
|
|
238
|
+
"The skeleton shimmer is driven per element instead of by one registered custom property on :root, so skeletons no longer travel in lock-step with one another. The property that drove it, --skeleton-shimmer-x, no longer exists: it was never a --ds-* hook, but if you referenced it, it now resolves to nothing. NO ACTION otherwise."
|
|
239
|
+
],
|
|
240
|
+
"deleteList": []
|
|
241
|
+
}
|
package/migrations/0.8.0.json
CHANGED
|
@@ -154,13 +154,14 @@
|
|
|
154
154
|
"verify": "Every menu that uses ds-menu-divider reads as intended with the line taking one row's place instead of adding a second gap."
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
"id": "time-picker-panel-
|
|
157
|
+
"id": "time-picker-panel-lost-its-radius",
|
|
158
158
|
"kind": "behavior",
|
|
159
159
|
"old": "ds-time-picker",
|
|
160
160
|
"new": null,
|
|
161
|
-
"action": "None unless
|
|
161
|
+
"action": "None, unless a square dropdown is unacceptable — then apply `restore`.",
|
|
162
162
|
"appliesWhen": "The open dropdown only. The trigger radius is unchanged and still resolves through `--ds-time-picker-trigger-radius`.",
|
|
163
|
-
"note": "The panel
|
|
163
|
+
"note": "The panel renders square, where it drew an 8px corner before. Its rule reads a private token declared on `:host` and the CDK portals the panel out of that host, so the `var()` does not resolve and `border-radius` takes its initial `0`. The public `--ds-time-picker-panel-radius` hook is forwarded onto the pane but read by no rule, so setting it changes nothing.",
|
|
164
|
+
"pitfall": "The obvious override does nothing, and does it silently: `ds-time-picker { --ds-time-picker-panel-radius: … }` cannot reach the panel, the panel being portaled out of that element. Do not reach for a selector instead — a single `.time-panel { border-radius: … }` loses to the component’s own rule, which view encapsulation shims to `.time-panel[_ngcontent-…]`, and matching its two classes only ties, with the tie going to whichever comes later. `restore` declares the PRIVATE token the panel already reads on an ancestor it does have — the CDK overlay container — so it inherits down and no specificity is contested.",
|
|
164
165
|
"searchHints": [
|
|
165
166
|
"ds-time-picker",
|
|
166
167
|
"--ds-time-picker-panel-radius",
|
|
@@ -169,8 +170,8 @@
|
|
|
169
170
|
"time-picker"
|
|
170
171
|
],
|
|
171
172
|
"surface": "style",
|
|
172
|
-
"restore": "
|
|
173
|
-
"verify": "
|
|
173
|
+
"restore": "`.cdk-overlay-container { --_time-picker-panel-radius: var(--radius-md); }`, in a global stylesheet.",
|
|
174
|
+
"verify": "Open the time picker: the panel draws square corners, or the 8px corner if you applied `restore`."
|
|
174
175
|
},
|
|
175
176
|
{
|
|
176
177
|
"id": "focus-partial-needs-use-line",
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// The label of a boolean control is part of its hit area, and the separation between
|
|
2
|
+
// control and label has to live INSIDE that area.
|
|
3
|
+
//
|
|
4
|
+
// A flex `gap` cannot do it: a gap is dead space neither element covers, so a click in
|
|
5
|
+
// those few pixels did nothing. Measured on checkbox/radio/switch — an 8px vertical
|
|
6
|
+
// strip beside every label was inert. The label carries the separation as padding
|
|
7
|
+
// instead, and the block padding widens the target past the text line, cancelled by a
|
|
8
|
+
// negative block margin so no layout moves.
|
|
9
|
+
//
|
|
10
|
+
// Usage — @include inside the label's own selector, and give the row NO gap:
|
|
11
|
+
// @use '../../styles/control-label' as control-label;
|
|
12
|
+
// .control-line { display: flex; align-items: center; } // no gap
|
|
13
|
+
// .control-text { @include control-label.hit-area; }
|
|
14
|
+
@mixin hit-area {
|
|
15
|
+
padding-inline-start: var(--space-2);
|
|
16
|
+
padding-block: var(--space-1);
|
|
17
|
+
margin-block: calc(var(--space-1) * -1);
|
|
18
|
+
}
|
|
@@ -1,33 +1,23 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// declares the matching rules so the portaled panel renders styled.
|
|
1
|
+
// GLOBAL because the panel is portaled via CDK Overlay outside the host
|
|
2
|
+
// component's DOM tree, so emulated encapsulation (and any `:host ::ng-deep`
|
|
3
|
+
// selector) cannot reach it. The component sets `panelClass: 'ds-dropdown-panel'`
|
|
4
|
+
// on the overlay config; this partial declares the matching rules.
|
|
6
5
|
|
|
7
6
|
@use 'text-clip' as text-clip;
|
|
8
7
|
@use 'visually-hidden' as visually-hidden;
|
|
9
8
|
|
|
10
9
|
.ds-dropdown-panel {
|
|
11
|
-
/*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
palette still flows through. Panel-level, not per-component: one partial
|
|
16
|
-
paints the rows for select, autocomplete and multi-select alike. */
|
|
10
|
+
/* Every --_* below resolves through a public --ds-* hook and falls back to a
|
|
11
|
+
semantic role or the panel radius role, so an untouched theme is unchanged.
|
|
12
|
+
Panel-level, not per-component: this one partial paints the rows for select,
|
|
13
|
+
autocomplete and multi-select alike. */
|
|
17
14
|
--_option-selected-bg-color: var(--ds-option-selected-bg-color, var(--primary-subtitle));
|
|
18
15
|
--_option-selected-label-color: var(--ds-option-selected-label-color, var(--primary-strong));
|
|
19
16
|
--_option-selected-bg-color-hover: var(--ds-option-selected-bg-color-hover, var(--primary-muted));
|
|
20
17
|
--_option-check-color: var(--ds-option-check-color, var(--primary));
|
|
21
18
|
|
|
22
|
-
/* Panel-level for the same reason as the option hooks above: retuning ONE
|
|
23
|
-
picker's corner is not a thing a design system should encourage, but moving
|
|
24
|
-
every panel — modal, popover, date picker — to reach the dropdowns is too
|
|
25
|
-
blunt. This is the middle lever, and `--ds-radius-panel` stays its default so
|
|
26
|
-
an untouched theme is unchanged. */
|
|
27
19
|
--_dropdown-panel-radius: var(--ds-dropdown-panel-radius, var(--ds-radius-panel));
|
|
28
20
|
|
|
29
|
-
/* Only bite in `content` width mode, where the pane is auto-sized: in `fill` the
|
|
30
|
-
component pins the pane to the trigger and there is nothing left to bound. */
|
|
31
21
|
--_option-gap: var(--ds-option-gap, var(--space-2));
|
|
32
22
|
--_option-padding: var(--ds-option-padding, var(--space-2) var(--space-2-5));
|
|
33
23
|
--_option-radius: var(--ds-option-radius, var(--ds-radius-inner));
|
|
@@ -36,6 +26,10 @@
|
|
|
36
26
|
|
|
37
27
|
--_dropdown-panel-bg-color: var(--ds-dropdown-panel-bg-color, var(--surface-overlay));
|
|
38
28
|
--_dropdown-panel-maxh: var(--ds-dropdown-panel-maxh, 320px);
|
|
29
|
+
|
|
30
|
+
/* minw/maxw only bite in `content` width mode, where the pane is auto-sized: in
|
|
31
|
+
`fill` the component pins the pane to the trigger width and there is nothing
|
|
32
|
+
left to bound. */
|
|
39
33
|
--_dropdown-panel-minw: var(--ds-dropdown-panel-minw, 0);
|
|
40
34
|
--_dropdown-panel-maxw: var(--ds-dropdown-panel-maxw, none);
|
|
41
35
|
|
|
@@ -52,9 +46,9 @@
|
|
|
52
46
|
max-width: var(--_dropdown-panel-maxw);
|
|
53
47
|
max-height: var(--_dropdown-panel-maxh);
|
|
54
48
|
|
|
55
|
-
// The panel clips and the LIST scrolls, so a filter
|
|
56
|
-
//
|
|
57
|
-
//
|
|
49
|
+
// The panel clips and the LIST scrolls, so a filter or select-all row stays
|
|
50
|
+
// put while the options move under it — a panel that scrolled itself would
|
|
51
|
+
// carry those rows out of view.
|
|
58
52
|
display: flex;
|
|
59
53
|
flex-direction: column;
|
|
60
54
|
overflow: hidden;
|
|
@@ -62,6 +56,8 @@
|
|
|
62
56
|
}
|
|
63
57
|
|
|
64
58
|
.dropdown-list {
|
|
59
|
+
// A cap of its own, separate from the panel's: the difference between the two
|
|
60
|
+
// is what the panel's non-scrolling rows (filter, select-all) can occupy.
|
|
65
61
|
max-height: var(--picker-maxh);
|
|
66
62
|
list-style: none;
|
|
67
63
|
margin: 0;
|
|
@@ -91,7 +87,6 @@
|
|
|
91
87
|
text-transform: uppercase;
|
|
92
88
|
letter-spacing: var(--letter-spacing-wide);
|
|
93
89
|
|
|
94
|
-
// First group sits flush against the panel padding — no extra top space.
|
|
95
90
|
&.is-first {
|
|
96
91
|
padding-top: var(--space-1);
|
|
97
92
|
}
|
|
@@ -150,23 +145,22 @@
|
|
|
150
145
|
flex: 0 0 auto;
|
|
151
146
|
}
|
|
152
147
|
|
|
153
|
-
// `:not(.is-selected)` is load-bearing: this branch outranks `.is-selected`
|
|
154
|
-
// on specificity, so without it a hovered (or keyboard-active) selected row
|
|
155
|
-
// repaints to the neutral surface while KEEPING the selected label colour —
|
|
156
|
-
// unreadable as soon as a brand gives the selected row a dark fill.
|
|
157
148
|
&:disabled {
|
|
158
149
|
color: var(--text-disabled);
|
|
159
150
|
cursor: not-allowed;
|
|
160
151
|
}
|
|
161
152
|
|
|
153
|
+
// `:not(.is-selected)` is load-bearing: this branch outranks `.is-selected`
|
|
154
|
+
// on specificity, so without it a hovered (or keyboard-active) selected row
|
|
155
|
+
// repaints to the neutral surface while KEEPING the selected label colour —
|
|
156
|
+
// unreadable as soon as a brand gives the selected row a dark fill.
|
|
162
157
|
&:hover:not(.is-disabled, .is-selected, :disabled),
|
|
163
158
|
&.is-active:not(.is-disabled, .is-selected, :disabled) {
|
|
164
159
|
background: var(--_option-bg-color-active);
|
|
165
160
|
}
|
|
166
161
|
|
|
167
|
-
// A tap on a phone has no hover, so
|
|
168
|
-
// row was hit.
|
|
169
|
-
// all render their options through this partial.
|
|
162
|
+
// A tap on a phone has no hover, so the pressed state is the only feedback
|
|
163
|
+
// that the row was hit.
|
|
170
164
|
&:active:not(.is-disabled, :disabled) {
|
|
171
165
|
background: var(--surface-muted);
|
|
172
166
|
}
|
|
@@ -187,9 +181,8 @@
|
|
|
187
181
|
background: var(--_option-selected-bg-color-hover);
|
|
188
182
|
}
|
|
189
183
|
|
|
190
|
-
//
|
|
191
|
-
//
|
|
192
|
-
// strand the selected label colour on it.
|
|
184
|
+
// Same reason as the hover above: falling back to the neutral pressed fill
|
|
185
|
+
// would strand the selected label colour on it.
|
|
193
186
|
&:active:not(.is-disabled) {
|
|
194
187
|
background: var(--_option-selected-bg-color);
|
|
195
188
|
}
|