@crewlethq/tokens 0.37.0 → 0.37.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/README.md +4 -0
- package/dist/css/base.css +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,10 @@ const accent = color.brand.accent;
|
|
|
45
45
|
CSS variables follow Style Dictionary's `--{group}-{path}` convention,
|
|
46
46
|
for example `var(--color-brand-accent)` or `var(--spacing-4)`.
|
|
47
47
|
|
|
48
|
+
## Changed in 0.37.1: focus handed back
|
|
49
|
+
|
|
50
|
+
The baseline keeps the ring off an element marked `data-crewlet-focus-returned` (by `@crewlethq/ui`'s `returnFocus`) while the root says the last move was a pointer's (`data-crewlet-focus="pointer"`). A trigger focused again when its palette closes matched `:focus-visible` because the palette's field did, so a click and an Escape left it ringed. The outline turns transparent rather than going, so forced colors still paints one.
|
|
51
|
+
|
|
48
52
|
## Changed in 0.36.0: a chosen option's edge and fill
|
|
49
53
|
|
|
50
54
|
Two tokens name what a CHOSEN option draws (the template, theme, agent or starting layout a reader picked, the slide being edited), so a page of options is calm and the focus ring is the only accent line on it.
|
package/dist/css/base.css
CHANGED
|
@@ -149,6 +149,16 @@ img {
|
|
|
149
149
|
border-radius: var(--radius-xs);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/* Focus handed back by script (a trigger after its palette or menu closes,
|
|
153
|
+
marked by @crewlethq/ui's returnFocus) draws no ring while the last move
|
|
154
|
+
was a pointer's. The browser rings it because the field it left always
|
|
155
|
+
matched :focus-visible, so a palette opened with a click and closed with
|
|
156
|
+
Escape left its trigger ringed. The outline stays, transparent, so forced
|
|
157
|
+
colors still paints one. */
|
|
158
|
+
:root[data-crewlet-focus='pointer'] [data-crewlet-focus-returned]:focus-visible {
|
|
159
|
+
outline-color: transparent;
|
|
160
|
+
}
|
|
161
|
+
|
|
152
162
|
::selection {
|
|
153
163
|
background: var(--color-brand-accent-soft);
|
|
154
164
|
}
|