@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.
@@ -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 or a form control that renders with no name warns once in the console:
70
- `<helix-icon-button> has no accessible name`, followed by the ways to give it
71
- one. The check runs a moment after the control first renders, so a label your
72
- framework writes beside the control in the same pass counts. The warning has the
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.
@@ -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 or "Hour" on a time
117
- wheel. Set those through their properties, such as `previous-label` and
118
- `next-label` on Date Picker and Date Input, and `hour-label` on Time Picker.
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.