actual-css 0.19.4 → 0.19.5
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 +8 -0
- package/README.md +2 -2
- package/dist/actual.full.css +6 -2
- package/dist/actual.full.min.css +1 -1
- package/docs/pages/forms/joined-controls.md +1 -1
- package/docs/pages/forms/switch.md +4 -2
- package/docs/pages/foundations/tokens.md +13 -13
- package/llms.txt +3 -3
- package/package.json +4 -5
- package/src/cli/actual-css.js +3 -3
- package/src/css/forms/switch.css +6 -2
- package/src/tooling/theme-contrast.js +6 -2
- package/docs/design-notes/accessibility-decisions.md +0 -63
- package/docs/design-notes/app-ui.md +0 -67
- package/docs/design-notes/architecture.md +0 -70
- package/docs/design-notes/browser-support.md +0 -239
- package/docs/design-notes/cascade-layer.md +0 -74
- package/docs/design-notes/column-layout.md +0 -260
- package/docs/design-notes/css-anchor.md +0 -87
- package/docs/design-notes/enhancement-contract.md +0 -193
- package/docs/design-notes/forced-colors.md +0 -123
- package/docs/design-notes/grid.md +0 -785
- package/docs/design-notes/motion-cost.md +0 -62
- package/docs/design-notes/naming.md +0 -71
- package/docs/design-notes/platform-alignment.md +0 -602
- package/docs/design-notes/popover-manual-poc.md +0 -328
- package/docs/design-notes/references.md +0 -336
- package/docs/design-notes/rich-text.md +0 -61
- package/docs/design-notes/spacing-units.md +0 -286
- package/docs/design-notes/steps.md +0 -776
- package/docs/design-notes/surface-reparenting.md +0 -130
- package/docs/design-notes/tokens.md +0 -166
- package/docs/design-notes/tooltip-coordinate-space.md +0 -130
- package/docs/design-notes/widget-primitives.md +0 -144
- package/docs/navigation.json +0 -176
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.19.5] - 2026-11-20
|
|
6
|
+
### Fixed
|
|
7
|
+
- An unchecked `.switch` takes `--border-control` as its resting edge again, so it reaches 3:1 against the surface (1.35:1 since 0.19.0 on the default light palette). Checked and disabled tracks keep their uniform fill; validation still overrides the edge.
|
|
8
|
+
- `actual-css contrast` measures the resting edge of an unchecked switch with the field, checkbox and radio.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- The npm package no longer ships `docs/design-notes/`; README and `llms.txt` link to them on GitHub.
|
|
12
|
+
|
|
5
13
|
## [0.19.4] - 2026-11-20
|
|
6
14
|
### Fixed
|
|
7
15
|
- Dialogs opened from a flyout return focus to its opener when the command is no longer focusable.
|
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ for the full map of module names to import paths.
|
|
|
138
138
|
|
|
139
139
|
Some components can be enhanced with JavaScript: dialog/drawer, flyout, tooltip, tabs, scrollspy, context menu, floating UI, opt-in `data-filter` input filtering, input masks, and the one-shot `in-view` trigger behind `.reveal` and `.mark-sweep`.
|
|
140
140
|
|
|
141
|
-
Presentation (`class`) and behaviour (`data-enhance`) are separate layers — import any primitive independently to build custom widgets. See [enhancement contract](docs/design-notes/enhancement-contract.md) and [widget primitives](docs/design-notes/widget-primitives.md).
|
|
141
|
+
Presentation (`class`) and behaviour (`data-enhance`) are separate layers — import any primitive independently to build custom widgets. See [enhancement contract](https://github.com/lekoala/actual-css/blob/master/docs/design-notes/enhancement-contract.md) and [widget primitives](https://github.com/lekoala/actual-css/blob/master/docs/design-notes/widget-primitives.md).
|
|
142
142
|
|
|
143
143
|
Two ways to load it — pick one, never both, since each copy owns its own
|
|
144
144
|
registries:
|
|
@@ -215,7 +215,7 @@ behavior is not tested or preserved.
|
|
|
215
215
|
|
|
216
216
|
## Cascade layers
|
|
217
217
|
|
|
218
|
-
Actual CSS is layer-compatible, not layer-dependent. The default `actual.css` file is unlayered. See [
|
|
218
|
+
Actual CSS is layer-compatible, not layer-dependent. The default `actual.css` file is unlayered. See [Cascade layer strategy](https://github.com/lekoala/actual-css/blob/master/docs/design-notes/cascade-layer.md) for details.
|
|
219
219
|
|
|
220
220
|
## AI Disclosure
|
|
221
221
|
|
package/dist/actual.full.css
CHANGED
|
@@ -3203,8 +3203,10 @@ mark {
|
|
|
3203
3203
|
|
|
3204
3204
|
.switch {
|
|
3205
3205
|
--switch-bg: var(--border);
|
|
3206
|
-
/*
|
|
3207
|
-
|
|
3206
|
+
/* The quiet --border track does not stand out from the surface: at rest the
|
|
3207
|
+
control edge is what identifies the switch (WCAG 1.4.11, 3:1). Checked and
|
|
3208
|
+
disabled tracks drop it for a uniform fill. */
|
|
3209
|
+
--switch-border: var(--border-control);
|
|
3208
3210
|
--switch-knob: var(--surface-raised);
|
|
3209
3211
|
--switch-block-size: calc(var(--choice-control-size) + 0.125em);
|
|
3210
3212
|
--switch-width: calc(var(--switch-block-size) * 1.8);
|
|
@@ -3281,6 +3283,7 @@ mark {
|
|
|
3281
3283
|
|
|
3282
3284
|
.switch:checked {
|
|
3283
3285
|
--switch-bg: var(--intent, var(--state-selected));
|
|
3286
|
+
--switch-border: var(--switch-bg);
|
|
3284
3287
|
--switch-knob: var(--intent-fg, var(--state-selected-fg));
|
|
3285
3288
|
}
|
|
3286
3289
|
|
|
@@ -3311,6 +3314,7 @@ mark {
|
|
|
3311
3314
|
|
|
3312
3315
|
.switch:disabled {
|
|
3313
3316
|
--switch-bg: var(--surface-subtle);
|
|
3317
|
+
--switch-border: var(--switch-bg);
|
|
3314
3318
|
--switch-knob: var(--state-disabled);
|
|
3315
3319
|
opacity: 1;
|
|
3316
3320
|
cursor: not-allowed;
|