@scalar/docusaurus 0.8.43 → 0.8.45
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 +27 -0
- package/dist/theme.css +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @scalar/docusaurus
|
|
2
2
|
|
|
3
|
+
## 0.8.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#10375](https://github.com/scalar/scalar/pull/10375): Raise muted text, code-string blue and the deprecated schema row to the 4.5:1 text contrast minimum across the shipped themes
|
|
8
|
+
|
|
9
|
+
An accessibility audit turned up text that is legible in the default theme but not in several of the presets, which pair the default greys and blues with an off-white page background. Nine presets and four integration themes get a hue-preserving nudge:
|
|
10
|
+
- Light `--scalar-color-2` now clears 4.5:1 on both the page background and the grey card background in every preset. That covers `alternate`, `bluePlanet`, `mars` and `saturn`, which paired the default grey with an off-white page, and `custom-theme-starter`, `deepSpace`, `elysiajs`, `fastify`, `kepler` and `purple`, which copied the default grey and were left behind when the default moved.
|
|
11
|
+
- Light `--scalar-color-blue`, which colours code strings, now clears 4.5:1 on the grey example background in `alternate`, `bluePlanet`, `deepSpace`, `elysiajs`, `fastify`, `kepler` and `moon`, and in the Docusaurus, NestJS, Next.js and SvelteKit themes.
|
|
12
|
+
- Dark `--scalar-color-blue` now clears 4.5:1 in `purple` and `saturn`, and in the Hono and Docusaurus dark themes.
|
|
13
|
+
- Deprecated schema rows no longer fade their contents to 75% opacity, which had dropped their muted text to 3.0:1. The diagonal stripes, the strikethrough on the property name and the Deprecated badge still mark the row.
|
|
14
|
+
- The AsyncAPI send and receive pills blend their label further toward the body text colour, so they read against the tinted fill in every preset but `laserwave`.
|
|
15
|
+
- `--scalar-focus-color` sits further from the accent so a keyboard focus ring clears 3:1 on `--scalar-background-3` as well, which some presets use for the selected sidebar item.
|
|
16
|
+
|
|
17
|
+
`laserwave` still misses in light mode, where it reuses its dark accents unchanged; bringing it up is a redesign of the preset rather than a nudge.
|
|
18
|
+
|
|
19
|
+
- [#10373](https://github.com/scalar/scalar/pull/10373): fix(api-reference): correct selected state, focus ring, target size and reflow of reference controls
|
|
20
|
+
- Client library tabs no longer announce a featured tab as selected while a client picked from "More" is active
|
|
21
|
+
- The response card "Copy example value" button shows a keyboard focus ring again
|
|
22
|
+
- The schema tree toggle keeps its 24px hit box in narrow layouts
|
|
23
|
+
- The schema property copy-link button gets a 24px hit box without changing its layout
|
|
24
|
+
- Heading copy-link buttons no longer widen the page in narrow layouts
|
|
25
|
+
|
|
26
|
+
Rename the always-present layout container class and CSS container name from `narrow-references-container` to `references-container`.
|
|
27
|
+
|
|
28
|
+
## 0.8.44
|
|
29
|
+
|
|
3
30
|
## 0.8.43
|
|
4
31
|
|
|
5
32
|
## 0.8.42
|
package/dist/theme.css
CHANGED
|
@@ -41,7 +41,7 @@ html[data-theme="light"] .scalar-card.dark-mode {
|
|
|
41
41
|
--scalar-color-green: #00a400;
|
|
42
42
|
--scalar-color-red: #fa383e;
|
|
43
43
|
--scalar-color-yellow: #ffba00;
|
|
44
|
-
--scalar-color-blue: #
|
|
44
|
+
--scalar-color-blue: #0072bd;
|
|
45
45
|
--scalar-color-orange: #fb892c;
|
|
46
46
|
--scalar-color-purple: #5203d1;
|
|
47
47
|
--scalar-button-1: rgba(0, 0, 0, 1);
|
|
@@ -70,7 +70,7 @@ html[data-theme="dark"] body,
|
|
|
70
70
|
--scalar-color-green: #00a400;
|
|
71
71
|
--scalar-color-red: #fa383e;
|
|
72
72
|
--scalar-color-yellow: #ffba00;
|
|
73
|
-
--scalar-color-blue: #
|
|
73
|
+
--scalar-color-blue: #5990ea;
|
|
74
74
|
--scalar-color-orange: #ff8d4d;
|
|
75
75
|
--scalar-color-purple: #b191f9;
|
|
76
76
|
|
|
@@ -167,7 +167,7 @@ html[data-theme="light"] body .api-client-drawer {
|
|
|
167
167
|
.schema-properties-open > .schema-card-title {
|
|
168
168
|
backdrop-filter: blur(50px);
|
|
169
169
|
}
|
|
170
|
-
@container
|
|
170
|
+
@container references-container (max-width: 900px) {
|
|
171
171
|
.section {
|
|
172
172
|
padding-top: calc(var(--refs-header-height) + 48px) !important;
|
|
173
173
|
}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"testing",
|
|
20
20
|
"react"
|
|
21
21
|
],
|
|
22
|
-
"version": "0.8.
|
|
22
|
+
"version": "0.8.45",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=22"
|
|
25
25
|
},
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@scalar/client-side-rendering": "0.4.
|
|
52
|
-
"@scalar/types": "0.22.
|
|
51
|
+
"@scalar/client-side-rendering": "0.4.6",
|
|
52
|
+
"@scalar/types": "0.22.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@docusaurus/core": "^3.9.2",
|