@fusion.dev/helix-docs 0.147.0 → 0.149.0
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/content/color.mdx +17 -0
- package/content/composition.mdx +6 -0
- package/content/graphs.mdx +33 -2
- package/content/iconography.mdx +2 -2
- package/content/localization.mdx +167 -19
- package/content/maps.mdx +34 -2
- package/content/metrics.mdx +227 -227
- package/content/overlays.mdx +24 -7
- package/content/react.mdx +12 -0
- package/content/tokens.mdx +2 -1
- package/dist/pages.generated.js +1 -1
- package/dist/sources.generated.js +524 -260
- package/package.json +9 -9
package/content/overlays.mdx
CHANGED
|
@@ -106,13 +106,30 @@ The fields with a panel behave the same way:
|
|
|
106
106
|
**A tooltip never takes focus.** A tooltip only describes a control, so it
|
|
107
107
|
cannot contain a button. For something with a button in it, use a `Popover`.
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
**Name the tooltip in its trigger's `aria-describedby`.** Place the tooltip
|
|
110
|
+
beside its trigger, name the trigger with `for`, and give the trigger an
|
|
111
|
+
`aria-describedby` with the tooltip's id. The description is then in the
|
|
112
|
+
markup your server sends, so a screen reader meets it at rest, in reading mode
|
|
113
|
+
too:
|
|
114
|
+
|
|
115
|
+
```html
|
|
116
|
+
<helix-button
|
|
117
|
+
aria-describedby="save-tip"
|
|
118
|
+
id="save"
|
|
119
|
+
>Save</helix-button>
|
|
120
|
+
<helix-tooltip
|
|
121
|
+
content="Save your work"
|
|
122
|
+
for="save"
|
|
123
|
+
id="save-tip"
|
|
124
|
+
></helix-tooltip>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Without the attribute, a tooltip links itself. A Helix trigger is described as
|
|
128
|
+
soon as it has rendered. A plain element that `for` names is described the
|
|
129
|
+
first time you point at it or focus it, so the link is never written into
|
|
130
|
+
markup your server sent. In the `for` form, the tooltip itself is out of the
|
|
131
|
+
accessibility tree while its bubble is down, so you meet its words once, as the
|
|
132
|
+
description.
|
|
116
133
|
The pointer can move onto a tooltip's bubble and the bubble stays, so a reader
|
|
117
134
|
can read it under a magnifier. Set `hoverable="false"` to hide it once the
|
|
118
135
|
pointer reaches it.
|
package/content/react.mdx
CHANGED
|
@@ -29,6 +29,18 @@ The prop is `on` followed by the exact event name. `onHelixOpen` and `onOpen` do
|
|
|
29
29
|
not work. React 19 passes an unknown `on*` prop to `addEventListener` with the
|
|
30
30
|
name as written, so use the event's own casing.
|
|
31
31
|
|
|
32
|
+
In a development build, an element prints a warning once when one of its `on`
|
|
33
|
+
props can never run:
|
|
34
|
+
|
|
35
|
+
- a misspelled event name, such as `onhelix-opne`
|
|
36
|
+
- an event that a different element sends
|
|
37
|
+
- Solid's `on:` syntax
|
|
38
|
+
- a callback property that was removed, such as `onCheckedChange`
|
|
39
|
+
|
|
40
|
+
TypeScript does not check a JSX prop whose name has a hyphen, so the console is
|
|
41
|
+
the only place these show. Vite and webpack use the `development` export
|
|
42
|
+
condition while you develop. A production build carries none of the check.
|
|
43
|
+
|
|
32
44
|
## The hydration bridge
|
|
33
45
|
|
|
34
46
|
While React hydrates, it skips everything it would have to apply imperatively.
|
package/content/tokens.mdx
CHANGED
|
@@ -15,9 +15,10 @@ Helix has two layers of tokens. You use the second layer, the semantic tokens.
|
|
|
15
15
|
| Semantic | `--helix-color-primary` | Any code, including yours |
|
|
16
16
|
|
|
17
17
|
Each semantic token is named for its purpose. The name does not describe its
|
|
18
|
-
value. Every token belongs to exactly one of
|
|
18
|
+
value. Every token belongs to exactly one of sixteen categories:
|
|
19
19
|
|
|
20
20
|
- `color`
|
|
21
|
+
- `scrollbar`
|
|
21
22
|
- `space`
|
|
22
23
|
- `radii`
|
|
23
24
|
- `font`
|
package/dist/pages.generated.js
CHANGED
|
@@ -107,7 +107,7 @@ export const docPages = [
|
|
|
107
107
|
title: 'Introduction',
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
description: 'Set the locale of date, time, and number controls, translate
|
|
110
|
+
description: 'Set the locale of date, time, and number controls, translate the built-in words, and lay out pages right to left.',
|
|
111
111
|
section: 'Essentials',
|
|
112
112
|
slug: 'localization',
|
|
113
113
|
title: 'Localization and RTL',
|