@fusion.dev/helix-docs 0.145.0 → 0.146.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/accessibility.mdx +11 -4
- package/content/localization.mdx +3 -3
- package/content/metrics.mdx +223 -223
- package/content/overlays.mdx +17 -6
- package/content/state-and-control.mdx +7 -5
- package/dist/sources.generated.js +261 -241
- package/package.json +9 -9
|
@@ -66,13 +66,20 @@ words are yours to choose. An icon-only control has no other text to name it:
|
|
|
66
66
|
></helix-icon-button>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
A button
|
|
70
|
-
`<helix-icon-button> has no accessible name`,
|
|
71
|
-
one. The check runs a moment after the control
|
|
72
|
-
framework writes beside the control in the same
|
|
69
|
+
A button, a form control, a button group or an open dialog that has no name
|
|
70
|
+
warns once in the console: `<helix-icon-button> has no accessible name`,
|
|
71
|
+
followed by the ways to give it one. The check runs a moment after the control
|
|
72
|
+
first renders, so a label your framework writes beside the control in the same
|
|
73
|
+
pass counts. The warning has the
|
|
73
74
|
kind `missing-name`, so `@fusion.dev/helix-diagnostics` counts it with the
|
|
74
75
|
other runtime events.
|
|
75
76
|
|
|
77
|
+
The warning prints in development builds only. Vite and webpack ask for the
|
|
78
|
+
`development` export condition while you develop, and so do
|
|
79
|
+
`bun --conditions development` and `node --conditions=development`. A production
|
|
80
|
+
build resolves the check to a function that does nothing and carries none of
|
|
81
|
+
its code.
|
|
82
|
+
|
|
76
83
|
### `label` and `aria-label`
|
|
77
84
|
|
|
78
85
|
`label` renders visible text and names the control through that text.
|
package/content/localization.mdx
CHANGED
|
@@ -113,9 +113,9 @@ Firefox does not provide. There, and where you set no `locale`, the week starts
|
|
|
113
113
|
on Sunday. Set `first-day-of-week` to choose the day yourself.
|
|
114
114
|
|
|
115
115
|
`locale` formats dates, times, and numbers. It does not translate the words a
|
|
116
|
-
control speaks, such as "Previous month" on a calendar
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
control speaks, such as "Previous month" on a calendar. Set those through their
|
|
117
|
+
properties, such as `previous-label` and `next-label` on Date Picker and Date
|
|
118
|
+
Input. A time wheel's name, such as "Hour", comes from the locale.
|
|
119
119
|
|
|
120
120
|
Formatting uses `Intl`, so Helix bundles no locale data, and you have nothing to
|
|
121
121
|
keep up to date.
|