@takazudo/zudo-doc 5.18.0 → 5.18.1
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 +12 -0
- package/dist/compiled.css +2 -3
- package/dist/page-loading.css +14 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to `@takazudo/zudo-doc` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
|
|
6
6
|
|
|
7
|
+
## [5.18.1] - 2026-09-06
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- The page-loading spinner no longer flips colour with the scheme. It previously took `--color-fg` while the scrim is deliberately theme-independent (always dark), which left the ring at only **3.02:1** against the scrim in a light scheme — over the WCAG 1.4.11 non-text 3:1 floor by 0.02. Both spinner declarations now read `var(--color-page-loading-spinner, #fff)`, a new optional host token with a light default: **6.18:1** in a light scheme and **20.13:1** in a dark one. The scrim itself is unchanged. (4fa1651b2)
|
|
12
|
+
- The `prefers-reduced-motion` spinner no longer dims to `opacity: 0.5`. A white ring at 50% composites to **2.85:1** on the light-scheme scrim — still under the floor — so fixing only the colour would have left the ring non-compliant for exactly the users who rely on a static indicator. It now matches the animated ring at 6.18:1 / 20.13:1. (4fa1651b2)
|
|
13
|
+
|
|
14
|
+
### Other Changes
|
|
15
|
+
|
|
16
|
+
- **Behavior note for hosts that styled the spinner via `--color-fg`:** that coupling was the defect and is gone. Use the new `--color-page-loading-spinner` token instead, and override it in step with `--color-page-loading-overlay` whenever you retone the scrim, so the pair stays above the contrast floor together. The token is optional and intentionally left undefined in the package — the `#fff` fallback is the fix. (4fa1651b2)
|
|
17
|
+
- `@takazudo/zdtp` peer floor moved to `^0.5.1`. zdtp 0.5.1 bounds its eager-load state-key gate to a new `READABLE_STATE_KEY_SUFFIXES` registry (`-state`, `-state-v2/v3/v4`) instead of accepting any `-state-vN`; this package already delegated to `EAGER_LOAD_GATE_STATE_FAMILY.matchesKey`, so runtime behavior follows upstream with no code change. Stale prose describing the old open-ended numeric family was corrected in the source docblock, `CLAUDE.md`, `API.md`, and the route-injection ADR. (4a72db50d, c9042f3ed, a61722e40)
|
|
18
|
+
|
|
7
19
|
## [5.18.0] - 2026-09-06
|
|
8
20
|
|
|
9
21
|
### Features
|
package/dist/compiled.css
CHANGED
|
@@ -2728,7 +2728,7 @@ a[data-zd-nav-pending], button[data-zd-nav-pending] {
|
|
|
2728
2728
|
.page-loading-spinner {
|
|
2729
2729
|
width: 48px;
|
|
2730
2730
|
height: 48px;
|
|
2731
|
-
border: 5px solid var(--color-
|
|
2731
|
+
border: 5px solid var(--color-page-loading-spinner, #fff);
|
|
2732
2732
|
border-bottom-color: transparent;
|
|
2733
2733
|
border-radius: 50%;
|
|
2734
2734
|
display: inline-block;
|
|
@@ -2753,8 +2753,7 @@ a[data-zd-nav-pending], button[data-zd-nav-pending] {
|
|
|
2753
2753
|
@media (prefers-reduced-motion: reduce) {
|
|
2754
2754
|
.page-loading-spinner {
|
|
2755
2755
|
animation: none;
|
|
2756
|
-
border-bottom-color: var(--color-
|
|
2757
|
-
opacity: 0.5;
|
|
2756
|
+
border-bottom-color: var(--color-page-loading-spinner, #fff);
|
|
2758
2757
|
}
|
|
2759
2758
|
}
|
|
2760
2759
|
header[data-header] {
|
package/dist/page-loading.css
CHANGED
|
@@ -16,7 +16,15 @@
|
|
|
16
16
|
* host's --color-overlay token.
|
|
17
17
|
* --color-overlay Semi-opaque backdrop colour (used by the fallback chain
|
|
18
18
|
* above when --color-page-loading-overlay is not set).
|
|
19
|
-
* --color-
|
|
19
|
+
* --color-page-loading-spinner
|
|
20
|
+
* Spinner border colour. Falls back to #fff.
|
|
21
|
+
* Deliberately NOT --color-fg: the scrim above is theme-independent
|
|
22
|
+
* (always dark), so a scheme-flipping foreground put the ring at only
|
|
23
|
+
* 3.02:1 against it in a light scheme — under the WCAG 1.4.11 non-text
|
|
24
|
+
* 3:1 floor for practical purposes. Pinning the ring light keeps it at
|
|
25
|
+
* 6.18:1 (light scheme) / 20.13:1 (dark scheme) on the default scrim.
|
|
26
|
+
* Override it alongside --color-page-loading-overlay whenever the
|
|
27
|
+
* scrim is retoned, so the pair stays above the floor together.
|
|
20
28
|
* --color-accent Colour applied to links/buttons with data-zd-nav-pending.
|
|
21
29
|
* --z-index-modal Stack level for the overlay. Falls back to 100.
|
|
22
30
|
* ========================================================================== */
|
|
@@ -52,7 +60,7 @@ button[data-zd-nav-pending] {
|
|
|
52
60
|
.page-loading-spinner {
|
|
53
61
|
width: 48px;
|
|
54
62
|
height: 48px;
|
|
55
|
-
border: 5px solid var(--color-
|
|
63
|
+
border: 5px solid var(--color-page-loading-spinner, #fff);
|
|
56
64
|
border-bottom-color: transparent;
|
|
57
65
|
border-radius: 50%;
|
|
58
66
|
display: inline-block;
|
|
@@ -76,7 +84,9 @@ button[data-zd-nav-pending] {
|
|
|
76
84
|
@media (prefers-reduced-motion: reduce) {
|
|
77
85
|
.page-loading-spinner {
|
|
78
86
|
animation: none;
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
/* Completes the ring into a static indicator. No opacity reduction: a
|
|
88
|
+
white ring at 0.5 composites to 2.85:1 on the light-scheme scrim,
|
|
89
|
+
below the 3:1 non-text floor these users depend on. */
|
|
90
|
+
border-bottom-color: var(--color-page-loading-spinner, #fff);
|
|
81
91
|
}
|
|
82
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-doc",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
"CHANGELOG.md"
|
|
668
668
|
],
|
|
669
669
|
"peerDependencies": {
|
|
670
|
-
"@takazudo/zdtp": "^0.5.
|
|
670
|
+
"@takazudo/zdtp": "^0.5.1",
|
|
671
671
|
"@takazudo/zfb": "^2.15.1",
|
|
672
672
|
"@takazudo/zfb-md-wasm": "^2.15.1",
|
|
673
673
|
"@takazudo/zfb-runtime": "^2.15.1",
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
"typescript": "^5.0.0",
|
|
721
721
|
"vitest": "^4.1.0",
|
|
722
722
|
"zod": "^4.3.6",
|
|
723
|
-
"@takazudo/zudo-doc-history-server": "5.18.
|
|
723
|
+
"@takazudo/zudo-doc-history-server": "5.18.1"
|
|
724
724
|
},
|
|
725
725
|
"scripts": {
|
|
726
726
|
"gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",
|