bestax-mcp 1.18.68 → 1.18.70

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.
Files changed (84) hide show
  1. package/data/bulma-classes.json +1 -1
  2. package/data/catalog.json +7 -7
  3. package/data/components/AppFrame.json +1 -1
  4. package/data/components/Autocomplete.json +2 -2
  5. package/data/components/Button.json +2 -2
  6. package/data/components/Buttons.json +5 -5
  7. package/data/components/Carousel.json +3 -3
  8. package/data/components/Cascader.json +2 -2
  9. package/data/components/Checkboxes.json +2 -2
  10. package/data/components/Code.json +1 -1
  11. package/data/components/Collapse.json +2 -2
  12. package/data/components/Collapses.json +2 -2
  13. package/data/components/ColorInput.json +2 -2
  14. package/data/components/ColorPicker.json +2 -2
  15. package/data/components/Combobox.json +2 -2
  16. package/data/components/ContextMenu.json +1 -1
  17. package/data/components/CopyButton.json +2 -2
  18. package/data/components/DataTable.json +1 -1
  19. package/data/components/DateInput.json +2 -2
  20. package/data/components/DateRangeInput.json +2 -2
  21. package/data/components/DateTimeInput.json +2 -2
  22. package/data/components/Dialog.json +3 -3
  23. package/data/components/Divider.json +1 -1
  24. package/data/components/Dropdown.json +2 -2
  25. package/data/components/Dropzone.json +1 -1
  26. package/data/components/Emphasis.json +1 -1
  27. package/data/components/EmptyState.json +2 -2
  28. package/data/components/File.json +2 -2
  29. package/data/components/FloatButton.json +3 -3
  30. package/data/components/IconButton.json +2 -2
  31. package/data/components/Input.json +2 -2
  32. package/data/components/LinkButton.json +2 -2
  33. package/data/components/Loading.json +10 -1
  34. package/data/components/Menu.json +2 -2
  35. package/data/components/Modal.json +6 -6
  36. package/data/components/Navbar.json +1 -1
  37. package/data/components/Numberinput.json +3 -3
  38. package/data/components/OrderedList.json +1 -1
  39. package/data/components/Panel.json +1 -1
  40. package/data/components/PasswordInput.json +3 -3
  41. package/data/components/PinInput.json +2 -2
  42. package/data/components/Popover.json +1 -1
  43. package/data/components/Pre.json +1 -1
  44. package/data/components/Radio.json +1 -1
  45. package/data/components/RadioCard.json +1 -1
  46. package/data/components/Radios.json +3 -3
  47. package/data/components/Rate.json +2 -2
  48. package/data/components/SegmentedControl.json +3 -3
  49. package/data/components/Select.json +2 -2
  50. package/data/components/Sidebar.json +20 -11
  51. package/data/components/Skeleton.json +15 -15
  52. package/data/components/Slider.json +2 -2
  53. package/data/components/Strong.json +1 -1
  54. package/data/components/SubTitle.json +5 -5
  55. package/data/components/Switch.json +1 -1
  56. package/data/components/Table.json +2 -2
  57. package/data/components/Tag.json +16 -3
  58. package/data/components/Taginput.json +2 -2
  59. package/data/components/Tags.json +11 -2
  60. package/data/components/TextArea.json +2 -2
  61. package/data/components/TimeInput.json +2 -2
  62. package/data/components/Title.json +5 -5
  63. package/data/components/Toast.json +3 -3
  64. package/data/components/ToggleButton.json +2 -2
  65. package/data/components/Tour.json +3 -3
  66. package/data/components/TreeSelect.json +2 -2
  67. package/data/components/useBulmaClasses.json +11 -11
  68. package/data/skills/bestax-form/SKILL.md +29 -20
  69. package/data/skills/bestax-form/references/api.md +9 -2
  70. package/data/skills/bestax-form/references/patterns.md +14 -3
  71. package/data/skills/bestax-layout-scaffold/references/layout-components.md +4 -0
  72. package/data/skills/bestax-migrate/references/bloomer/prop-map.md +1 -1
  73. package/data/skills/bestax-migrate/references/bloomer/unmappables.md +3 -2
  74. package/data/skills/bestax-migrate/references/bulma-classes/component-map.md +3 -2
  75. package/data/skills/bestax-migrate/references/bulma-classes/prop-map.md +5 -0
  76. package/data/skills/bestax-migrate/references/bulma-classes/unmappables.md +10 -1
  77. package/data/skills/bestax-migrate/references/rbx/prop-map.md +1 -0
  78. package/data/skills/bestax-migrate/references/rbx/unmappables.md +3 -0
  79. package/data/skills/bestax-migrate/references/react-bulma-components/component-map.md +29 -29
  80. package/data/skills/bestax-migrate/references/react-bulma-components/prop-map.md +1 -1
  81. package/data/skills/bestax-migrate/references/react-bulma-components/unmappables.md +17 -2
  82. package/data/skills/bestax-optimize/references/modular-build.md +50 -24
  83. package/data/skills/bestax-theming/references/css-variables.md +6 -1
  84. package/package.json +2 -2
@@ -2949,7 +2949,7 @@
2949
2949
  "status": "mapped",
2950
2950
  "target": "Tag",
2951
2951
  "tag": "span",
2952
- "as": null,
2952
+ "as": ["span", "a", "button"],
2953
2953
  "sizeDrivesTag": false,
2954
2954
  "textColor": null,
2955
2955
  "bgColor": "backgroundColor",
package/data/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.73.7"
5
+ "version": "5.73.10"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -990,7 +990,7 @@
990
990
  "slug": "components/loading",
991
991
  "import": "import { Loading } from '@allxsmith/bestax-bulma';",
992
992
  "compound": false,
993
- "propCount": 10,
993
+ "propCount": 11,
994
994
  "exampleCount": 7
995
995
  },
996
996
  {
@@ -1485,8 +1485,8 @@
1485
1485
  "slug": "elements/tag",
1486
1486
  "import": "import { Tag } from '@allxsmith/bestax-bulma';",
1487
1487
  "compound": false,
1488
- "propCount": 9,
1489
- "exampleCount": 12
1488
+ "propCount": 10,
1489
+ "exampleCount": 13
1490
1490
  },
1491
1491
  {
1492
1492
  "name": "Taginput",
@@ -1507,7 +1507,7 @@
1507
1507
  "slug": "elements/tags",
1508
1508
  "import": "import { Tags } from '@allxsmith/bestax-bulma';",
1509
1509
  "compound": true,
1510
- "propCount": 14,
1510
+ "propCount": 15,
1511
1511
  "exampleCount": 8
1512
1512
  },
1513
1513
  {
@@ -3794,7 +3794,7 @@
3794
3794
  "MenuLabel": {
3795
3795
  "component": "Menu",
3796
3796
  "path": "Menu.Label",
3797
- "purpose": "Bulma Menu label component."
3797
+ "purpose": "The label over a group of the menu's items: a paragraph to assistive tech, until you give it `role=\"heading\"` and an `aria-level`."
3798
3798
  },
3799
3799
  "MenuList": {
3800
3800
  "component": "Menu",
@@ -4032,7 +4032,7 @@
4032
4032
  "SidebarTitle": {
4033
4033
  "component": "Sidebar",
4034
4034
  "path": "Sidebar.Title",
4035
- "purpose": "Title text inside the header."
4035
+ "purpose": "Title text inside the header. It doesn't name the sidebar on its own: give it an `id`, and the `Sidebar` an `aria-labelledby` pointing at it."
4036
4036
  },
4037
4037
  "SplitterPane": {
4038
4038
  "component": "Splitter",
@@ -46,7 +46,7 @@
46
46
  "code": "<AppFrame>\n <AppFrameHeader>\n <Navbar aria-label=\"Site\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <strong>Acme</strong>\n </Navbar.Item>\n <AppFrameBurger />\n </Navbar.Brand>\n </Navbar>\n </AppFrameHeader>\n <AppFrameNav>\n <Menu>\n <Menu.List>\n <Menu.Item href=\"#\" active>\n Dashboard\n </Menu.Item>\n </Menu.List>\n </Menu>\n </AppFrameNav>\n <AppFrame.Main>\n <Section>\n <Paragraph>\n AppFrameNav and AppFrame.Nav are the same component.\n </Paragraph>\n </Section>\n </AppFrame.Main>\n</AppFrame>"
47
47
  }
48
48
  ],
49
- "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The resize handle** is a focusable `separator` with `aria-valuenow`, `aria-valuemin` and\n `aria-valuemax` in pixels, `aria-controls` naming the nav, and the nav's name, so it's read as\n \"Sections, separator, 256\". Collapsed, its value is the rail's width, or 0 without a rail, which\n is where its range starts. Its keys do everything a drag does (WCAG 2.1.1). As with Splitter's\n handles, a pointer can't set a width without dragging; the column works at its default width,\n and the burger collapses and expands it with a click. Its strip is 24 pixels wide for a coarse\n pointer (WCAG 2.5.8), and its line, on hover, focus and drag, is a border, which forced colors\n keeps in the system's highlight.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
49
+ "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The resize handle** is a focusable `separator` with `aria-valuenow`, `aria-valuemin` and\n `aria-valuemax` in pixels, `aria-controls` naming the nav, and the nav's name, so it's read as\n \"Sections, separator, 256\". Collapsed, its value is the rail's width, or 0 without a rail, which\n is where its range starts. Its keys do everything a drag does (WCAG 2.1.1). As with Splitter's\n handles, a pointer can't set a width without dragging; the column works at its default width,\n and the burger collapses and expands it with a click. Its strip is 24 pixels wide for a coarse\n pointer (WCAG 2.5.8), and its line, on hover, focus and drag, is a border, which forced colors\n keeps in the system's highlight, with its focus ring in the text color.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
50
50
  "related": [
51
51
  "Footer",
52
52
  "Menu",
@@ -54,7 +54,7 @@
54
54
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Fruit\"\n labelProps={{\n htmlFor: 'fruit-field-control',\n id: 'fruit-field-control-label',\n }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"search\">\n <Autocomplete\n id=\"fruit-field-control\"\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Search fruit...\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
55
55
  }
56
56
  ],
57
- "accessibility": "- The `label` prop is automatically associated with the inner text input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it. Inside a labeled `Field`, that `Field`'s label names the input instead when it points at it: a `Field` that is not `grouped` or `hasAddons` points it there on its own when the Autocomplete has no `id` and no inner `Field` sits between them, and a label you wire by hand with `labelProps.htmlFor` points at the input with that `id`.\n- A user-supplied `id` is applied to the inner input (the labellable control), not the wrapper div.\n- Uses `role=\"combobox\"` with `aria-expanded`, which is true only while the list is on screen. When nothing matches, the dropdown shows the `empty` content but no list, so it stays false\n- Has `aria-haspopup=\"listbox\"` and `aria-autocomplete=\"list\"`, and, while the list is on screen, `aria-controls` pointing at it\n- Focus stays in the input, which points `aria-activedescendant` at the highlighted option as the arrow keys move it. Clicking an option leaves focus in the input too, with the picked value in it\n- The list is a `role=\"listbox\"` named through `aria-labelledby` by the label that names the input, when that label has an id: the `label` prop's label always has one, and so does a `Field`'s label that the `Field` wires itself. A `Field` label you wire by hand with `labelProps.htmlFor`, which is how a horizontal form names an Autocomplete in an inner `Field`, needs an `id` in its `labelProps` as well. Otherwise the list falls back to `aria-label=\"Suggestions\"`\n- The list holds only the options. The `header`, `footer` and `empty` content sit beside it in the dropdown, so a screen reader doesn't count them as options\n- When the user's typing leaves nothing that matches, the `empty` text is announced through a polite `role=\"status\"` region. That region is in the page from the start, so it's there before the message arrives. It's said once each time the matches run out, not again on every keystroke while they stay out, and the next search that comes up empty is announced too: after matches come back, after the field is emptied, or after the list closes and the user types again\n- While `loading` is on, or a `Control` with `isLoading` around the Autocomplete, the announcement waits, so the `empty` text that shows while results are on their way isn't read out. It's said once loading ends with nothing matching, for each search that comes back empty. Pass `loading` while you fetch results, as the async story in Storybook does\n- Focusing the field, opening the list with `openOnFocus` or `↓`, or emptying the field announces nothing. Without `empty`, nothing is announced at all, since there's no built-in message to say\n- `empty` is a message, so keep it to text. `Tab` closes the list, so a keyboard user can't reach a link or a button in it\n- Keep that message static, like \"No results found\". Its text is read when the matches first run out and isn't read again while they stay out, so a message that names the query, like \"No results for xyz\", is only heard for the query that ran them out\n- Dropdown items use `role=\"option\"`, and the highlighted one is `aria-selected` unless it's disabled\n- Disabled items have `aria-disabled`\n- The `clearable` clear button is a native button named \"Clear\": `Tab` from the input reaches it, and `Enter` or `Space` clears the input and puts focus back in it\n- Full keyboard navigation support",
57
+ "accessibility": "- The `label` prop is automatically associated with the inner text input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it. Inside a labeled `Field`, that `Field`'s label names the input instead when it points at it: a `Field` that is not `grouped` or `hasAddons` points it there on its own when the Autocomplete has no `id` and no inner `Field` sits between them, and a label you wire by hand with `labelProps.htmlFor` points at the input with that `id`.\n- A user-supplied `id` is applied to the inner input (the labellable control), not the wrapper div.\n- Uses `role=\"combobox\"` with `aria-expanded`, which is true only while the list is on screen. When nothing matches, the dropdown shows the `empty` content but no list, so it stays false\n- Has `aria-haspopup=\"listbox\"` and `aria-autocomplete=\"list\"`, and, while the list is on screen, `aria-controls` pointing at it\n- Focus stays in the input, which points `aria-activedescendant` at the highlighted option as the arrow keys move it. Clicking an option leaves focus in the input too, with the picked value in it\n- The list is a `role=\"listbox\"` named through `aria-labelledby` by the label that names the input, when that label has an id: the `label` prop's label always has one, and so does a `Field`'s label that the `Field` wires itself. A `Field` label you wire by hand with `labelProps.htmlFor`, which is how a horizontal form names an Autocomplete in an inner `Field`, needs an `id` in its `labelProps` as well. Otherwise the list falls back to `aria-label=\"Suggestions\"`\n- The list holds only the options. The `header`, `footer` and `empty` content sit beside it in the dropdown, so a screen reader doesn't count them as options\n- When the user's typing leaves nothing that matches, the `empty` text is announced through a polite `role=\"status\"` region. That region is in the page from the start, so it's there before the message arrives. It's said once each time the matches run out, not again on every keystroke while they stay out, and the next search that comes up empty is announced too: after matches come back, after the field is emptied, or after the list closes and the user types again\n- While `loading` is on, or a `Control` with `isLoading` around the Autocomplete, the announcement waits, so the `empty` text that shows while results are on their way isn't read out. It's said once loading ends with nothing matching, for each search that comes back empty. Pass `loading` while you fetch results, as the async story in Storybook does\n- Focusing the field, opening the list with `openOnFocus` or `↓`, or emptying the field announces nothing. Without `empty`, nothing is announced at all, since there's no built-in message to say\n- `empty` is a message, so keep it to text. `Tab` closes the list, so a keyboard user can't reach a link or a button in it\n- Keep that message static, like \"No results found\". Its text is read when the matches first run out and isn't read again while they stay out, so a message that names the query, like \"No results for xyz\", is only heard for the query that ran them out\n- Dropdown items use `role=\"option\"`, and the highlighted one is `aria-selected` unless it's disabled\n- In forced colors (Windows' contrast themes), which take away the dropdown's shadow and the highlighted option's fill, the open dropdown is drawn with an edge, whether it shows options or the `empty` content, and the highlighted option with an outline in the system's highlight color\n- Disabled items have `aria-disabled`\n- The `clearable` clear button is a native button named \"Clear\": `Tab` from the input reaches it, and `Enter` or `Space` clears the input and puts focus back in it\n- Full keyboard navigation support\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus.",
58
58
  "related": ["Combobox", "Input", "Select", "Taginput"],
59
59
  "storybook": "https://bestax.io/storybook/?path=/story/form-autocomplete",
60
60
  "summary": "The `Autocomplete` component provides an input field with dropdown suggestions that filter based on user input.",
@@ -379,7 +379,7 @@
379
379
  "name": "message",
380
380
  "type": "React.ReactNode",
381
381
  "default": null,
382
- "description": "Help/validation message below the input.",
382
+ "description": "Help or validation text under the widget. It describes the control its label names through `aria-describedby`, so a screen reader reads it there.",
383
383
  "required": false,
384
384
  "inherited": true,
385
385
  "deprecated": false
@@ -101,7 +101,7 @@
101
101
  "code": "function example() {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Button color=\"primary\" ref={buttonRef}>\n Target\n </Button>\n <Button ml=\"2\" onClick={() => setTag(buttonRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
102
102
  }
103
103
  ],
104
- "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither. A loading or static one has no shadow. All a loading one keeps is its border turning the focus color, which on a colored one is drawn on its own fill, and a loading outlined or text one, or a static one, doesn't change at all. Forced colors (Windows' contrast themes) drops the shadow and sets the border's color. So bestax's styles give a focused ghost, loading or static button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
104
+ "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Loading:** while `isLoading` is set, the button carries `aria-busy=\"true\"` and `aria-disabled=\"true\"`, so a screen reader can tell it won't respond, and a click, <kbd>Enter</kbd> or <kbd>Space</kbd> does nothing: `onClick` doesn't run, a submit button doesn't submit its form, and a click on a link doesn't follow its `href`. It keeps focus, since `aria-disabled` doesn't take it away the way `disabled` would.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither. A loading or static one has no shadow. All a loading one keeps is its border turning the focus color, which on a colored one is drawn on its own fill, and a loading outlined or text one, or a static one, doesn't change at all. Forced colors (Windows' contrast themes) drops the shadow and sets the border's color. So bestax's styles give a focused ghost, loading or static button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are. A button with Bulma's `is-selected`, such as a pressed [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton) or the selected button of a `Buttons hasAddons` row, is drawn in the system's highlight colors there, since the fill that marks it is replaced, and a disabled one in the system's color for a disabled control, filled.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
105
105
  "related": [
106
106
  "Buttons",
107
107
  "CopyButton",
@@ -170,7 +170,7 @@
170
170
  "name": "isLoading",
171
171
  "type": "boolean",
172
172
  "default": "false",
173
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
173
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
174
174
  "required": false,
175
175
  "inherited": false,
176
176
  "deprecated": false
@@ -193,7 +193,7 @@
193
193
  "name": "isLoading",
194
194
  "type": "boolean",
195
195
  "default": "false",
196
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
196
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
197
197
  "required": false,
198
198
  "inherited": false,
199
199
  "deprecated": false
@@ -387,7 +387,7 @@
387
387
  "name": "isLoading",
388
388
  "type": "boolean",
389
389
  "default": "false",
390
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
390
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
391
391
  "required": false,
392
392
  "inherited": true,
393
393
  "deprecated": false
@@ -545,7 +545,7 @@
545
545
  "name": "color",
546
546
  "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
547
547
  "default": "'link'",
548
- "description": "The fill while it's pressed. Not pressed, it's a plain button, so the fill is the difference people see. `white`, `light`, `dark` and `black` aren't offered, since in one theme or the other each fills about as light or dark as a plain button already is. Of the rest, a pale one such as `warning` changes less than the default `link`.",
548
+ "description": "The fill while it's pressed. Not pressed, it's a plain button, so the fill is the difference people see. `white`, `light`, `dark` and `black` aren't offered, since in one theme or the other each fills about as light or dark as a plain button already is. Of the rest, a pale one such as `warning` changes less than the default `link`. Forced colors (Windows' contrast themes) replaces the fill, so there a pressed one is drawn in the system's highlight colors instead, whatever the `color`, which needs bestax's CSS.",
549
549
  "required": false,
550
550
  "inherited": false,
551
551
  "deprecated": false
@@ -746,7 +746,7 @@
746
746
  "name": "isLoading",
747
747
  "type": "boolean",
748
748
  "default": "false",
749
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
749
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
750
750
  "required": false,
751
751
  "inherited": true,
752
752
  "deprecated": false
@@ -985,7 +985,7 @@
985
985
  "name": "isLoading",
986
986
  "type": "boolean",
987
987
  "default": "false",
988
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
988
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
989
989
  "required": false,
990
990
  "inherited": true,
991
991
  "deprecated": false
@@ -70,7 +70,7 @@
70
70
  "code": "<Carousel repeat={false}>\n <CarouselItem>\n <Hero color=\"danger\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">First (no previous)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"warning\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph>Middle slide</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"success\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">Last (no next)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n</Carousel>"
71
71
  }
72
72
  ],
73
- "accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is anywhere inside it, on an item, an arrow or an indicator, so nothing moves while someone reads or works it. A browser that leaves focus on an arrow or an indicator a click pressed keeps it waiting until focus moves on. It's a pause, not a stop: once the pointer and focus leave, autoplay goes on\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators take Bulma's look: a resting dot, line or bar is filled in the border color and the current one in the primary color, and a circle is a ring in the border color, filled when current. A resting one falls short of the 3:1 against the page that WCAG asks of a graphic. For that, set `--bulma-carousel-indicator-border-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the carousel's class in the selector (`.carousel.my-carousel`, `.bestax-carousel.my-carousel` under the prefixed flavor) so it wins whatever order the stylesheets load in. It draws a ring at each resting indicator's edge, circles included, and leaves the current one, and the dots, lines and bars in the overlay look, as they are. Forced colors (Windows' contrast themes) replaces the fills, so there each indicator shows its ring in the buttons' text color and the current one is filled in it.\n- The Left and Right arrow keys move the carousel while focus is on its arrows or indicators. Inside an item they're left to the item's content, such as a field or a slider\n- Previous/Next buttons are properly disabled at boundaries when not repeating\n- On a right-to-left page the slides run from right to left. The previous arrow sits on the right, at the start of the line, and the next arrow on the left, and the built-in chevrons flip to match. An `iconPrev` or `iconNext` is drawn as you give it. <kbd>ArrowLeft</kbd> and a swipe to the right go to the next slide, the way the track moves.",
73
+ "accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is anywhere inside it, on an item, an arrow or an indicator, so nothing moves while someone reads or works it. A browser that leaves focus on an arrow or an indicator a click pressed keeps it waiting until focus moves on. It's a pause, not a stop: once the pointer and focus leave, autoplay goes on\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- With `arrowBackground={false}`, an arrow with keyboard focus shows Bulma's focus outline, as a ghost `Button` does, in the overlay look too. With `arrowHover`, an arrow shows while keyboard focus is on it\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators take Bulma's look: a resting dot, line or bar is filled in the border color and the current one in the primary color, and a circle is a ring in the border color, filled when current. A resting one falls short of the 3:1 against the page that WCAG asks of a graphic. For that, set `--bulma-carousel-indicator-border-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the carousel's class in the selector (`.carousel.my-carousel`, `.bestax-carousel.my-carousel` under the prefixed flavor) so it wins whatever order the stylesheets load in. It draws a ring at each resting indicator's edge, circles included, and leaves the current one, and the dots, lines and bars in the overlay look, as they are. Forced colors (Windows' contrast themes) replaces the fills, so there each indicator shows its ring in the buttons' text color and the current one is filled in it.\n- The Left and Right arrow keys move the carousel while focus is on its arrows or indicators. Inside an item they're left to the item's content, such as a field or a slider\n- Previous/Next buttons are properly disabled at boundaries when not repeating\n- On a right-to-left page the slides run from right to left. The previous arrow sits on the right, at the start of the line, and the next arrow on the left, and the built-in chevrons flip to match. An `iconPrev` or `iconNext` is drawn as you give it. <kbd>ArrowLeft</kbd> and a swipe to the right go to the next slide, the way the track moves.",
74
74
  "related": ["Modal", "Tabs"],
75
75
  "storybook": "https://bestax.io/storybook/?path=/story/components-carousel",
76
76
  "summary": "The `Carousel` component provides an image/content slider with navigation arrows and indicators.",
@@ -213,7 +213,7 @@
213
213
  "name": "arrowHover",
214
214
  "type": "boolean",
215
215
  "default": "false",
216
- "description": "Only show arrows on hover.",
216
+ "description": "Only show arrows on hover. An arrow also shows while keyboard focus is on it.",
217
217
  "required": false,
218
218
  "inherited": false,
219
219
  "deprecated": false
@@ -321,7 +321,7 @@
321
321
  "name": "arrowBackground",
322
322
  "type": "boolean",
323
323
  "default": "true",
324
- "description": "Show semi-transparent background on arrow buttons. Set to `false` for icon-only arrows.",
324
+ "description": "Show semi-transparent background on arrow buttons. Set to `false` for icon-only arrows, which show Bulma's focus outline while they have keyboard focus, as a ghost `Button` does.",
325
325
  "required": false,
326
326
  "inherited": false,
327
327
  "deprecated": false
@@ -42,7 +42,7 @@
42
42
  "code": "<LocaleProvider locale=\"ar\" dir=\"rtl\">\n <Cascader\n label=\"المدينة\"\n defaultValue=\"berlin\"\n clearable\n data={[\n {\n value: 'germany',\n label: 'ألمانيا',\n children: [{ value: 'berlin', label: 'برلين' }],\n },\n { value: 'oceania', label: 'أوقيانوسيا' },\n ]}\n />\n</LocaleProvider>"
43
43
  }
44
44
  ],
45
- "accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' and TreeSelect's are:\n `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the\n panel is open, named by its `label`. It's read-only, and its value is the picked node's path.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked node, its path open, or with nothing picked onto the first\n column's item on an open path, or its first enabled item, so a `defaultExpanded` path stays\n open. It holds\n focus while it's open, as the date pickers' panel does: Tab and Shift+Tab move between the\n search box and the columns, and wrap. Escape and Alt+Up close it and put focus back on the\n field, and so does a pick. A press outside closes it and leaves focus where the press put it.\n- **Each column** is a `listbox` with one tab stop and real focus on its `option`s. The first is\n named as the panel is, and each one after it by the label of the item that opened it. Up, Down,\n Home, End and type-ahead move within a column, and type-ahead starts over in each column it\n comes into and after Up, Down, Home or End. Space joins a search under way when an item starts with what's been typed and a\n space, so \"new y\" reaches \"New York\", and otherwise picks or opens. Right opens the next column\n and moves into it, Left goes back, and the two swap on a right-to-left page. Disabled items are\n reachable and `aria-disabled`, and Right moves into a column at its item on the open path even\n when that one is disabled.\n- **The picked node's path is `aria-selected`,** and drawn filled, its items `is-checked` as\n Combobox's picked items are. The path you've opened, which follows focus, is drawn with a lighter\n tint, its items `is-active` as Combobox's highlighted item is, and isn't announced as selected, so moving around never says an item is picked when it isn't. A disabled\n node on the picked path is selected but not filled, so it stays readable. In forced colors the\n picked path takes the system's highlight and the open path an outline. Right opens the focused\n item and nothing else.\n- **An item that opens a column** is described by \"Opens a column\", or `labels.opens`, since an\n option has no way of its own to say it has items under it. Its chevron is hidden.\n- **A column that's loading** ends in a row that says so, and a failed load's row is named by its\n message and its Retry, which Enter, Space or a click run. The live region says when a column\n starts loading and when it's loaded, as TreeView's does.\n- **The search box** is named \"Search\", or `labels.search`, and its results are a listbox of the\n paths that match. Enter picks the highlighted path unless it's disabled, and with none\n highlighted it does nothing, so it never submits the form around the field. When nothing matches, `empty` is said once\n through a polite status region, not again on every key.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the columns keep their edges in system colors, the\n path through the columns keeps the system's highlight, and the chevrons are borders, so they\n stay.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
45
+ "accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' and TreeSelect's are:\n `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the\n panel is open, named by its `label`. It's read-only, and its value is the picked node's path.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked node, its path open, or with nothing picked onto the first\n column's item on an open path, or its first enabled item, so a `defaultExpanded` path stays\n open. It holds\n focus while it's open, as the date pickers' panel does: Tab and Shift+Tab move between the\n search box and the columns, and wrap. Escape and Alt+Up close it and put focus back on the\n field, and so does a pick. A press outside closes it and leaves focus where the press put it.\n- **Each column** is a `listbox` with one tab stop and real focus on its `option`s. The first is\n named as the panel is, and each one after it by the label of the item that opened it. Up, Down,\n Home, End and type-ahead move within a column, and type-ahead starts over in each column it\n comes into and after Up, Down, Home or End. Space joins a search under way when an item starts with what's been typed and a\n space, so \"new y\" reaches \"New York\", and otherwise picks or opens. Right opens the next column\n and moves into it, Left goes back, and the two swap on a right-to-left page. Disabled items are\n reachable and `aria-disabled`, and Right moves into a column at its item on the open path even\n when that one is disabled.\n- **The picked node's path is `aria-selected`,** and drawn filled, its items `is-checked` as\n Combobox's picked items are. The path you've opened, which follows focus, is drawn with a lighter\n tint, its items `is-active` as Combobox's highlighted item is, and isn't announced as selected, so moving around never says an item is picked when it isn't. A disabled\n node on the picked path is selected but not filled, so it stays readable. In forced colors the\n picked path takes the system's highlight and the open path an outline. Right opens the focused\n item and nothing else.\n- **An item that opens a column** is described by \"Opens a column\", or `labels.opens`, since an\n option has no way of its own to say it has items under it. Its chevron is hidden.\n- **A column that's loading** ends in a row that says so, and a failed load's row is named by its\n message and its Retry, which Enter, Space or a click run. The live region says when a column\n starts loading and when it's loaded, as TreeView's does.\n- **The search box** is named \"Search\", or `labels.search`, and its results are a listbox of the\n paths that match. Enter picks the highlighted path unless it's disabled, and with none\n highlighted it does nothing, so it never submits the form around the field. When nothing matches, `empty` is said once\n through a polite status region, not again on every key.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the columns keep their edges in system colors, the\n path through the columns keeps the system's highlight, and the chevrons are borders, so they\n stay.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the field takes focus.",
46
46
  "related": [
47
47
  "Combobox",
48
48
  "Select",
@@ -416,7 +416,7 @@
416
416
  "name": "message",
417
417
  "type": "React.ReactNode",
418
418
  "default": null,
419
- "description": "Help/validation message below the input.",
419
+ "description": "Help or validation text under the widget. It describes the control its label names through `aria-describedby`, so a screen reader reads it there.",
420
420
  "required": false,
421
421
  "inherited": true,
422
422
  "deprecated": false
@@ -30,7 +30,7 @@
30
30
  "code": "<Checkboxes name=\"frameworks\" label=\"Frameworks\">\n <Checkboxes.Checkbox value=\"react\">React</Checkboxes.Checkbox>\n <Checkboxes.Checkbox value=\"vue\">Vue</Checkboxes.Checkbox>\n</Checkboxes>"
31
31
  }
32
32
  ],
33
- "accessibility": "- By default the group is rendered as a `<div class=\"checkboxes\" role=\"group\">` containing labeled checkboxes.\n- The `label` prop names the whole group: the rendered `<label>` gets an id (yours via `labelProps.id`, or a generated one) and the group points at it with `aria-labelledby`.\n- Inside a labeled `Field`, that `Field`'s label names the group the same way.\n- With `as=\"fieldset\"`, the group is a native `<fieldset>`, named by its `<legend>` where it renders its own `Field`, or by an outer `Field`'s label through `aria-labelledby` inside one.\n- An `aria-label` or `aria-labelledby` you give the group wins over either label, whether that label sits on the Checkboxes or on a `Field` around them.\n- Each child should be a `Checkbox` for proper labeling and accessibility.",
33
+ "accessibility": "- By default the group is rendered as a `<div class=\"checkboxes\" role=\"group\">` containing labeled checkboxes.\n- The `label` prop names the whole group: the rendered `<label>` gets an id (yours via `labelProps.id`, or a generated one) and the group points at it with `aria-labelledby`.\n- Inside a labeled `Field`, that `Field`'s label names the group the same way.\n- With `as=\"fieldset\"`, the group is a native `<fieldset>`, named by its `<legend>` where it renders its own `Field`, or by an outer `Field`'s label through `aria-labelledby` inside one.\n- An `aria-label` or `aria-labelledby` you give the group wins over either label, whether that label sits on the Checkboxes or on a `Field` around them.\n- Each child should be a `Checkbox` for proper labeling and accessibility.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it. That holds with `as=\"fieldset\"` too.",
34
34
  "related": ["Checkbox", "Field"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/form-checkboxes--default",
36
36
  "summary": "The `Checkboxes` component wraps multiple `Checkbox` components in a Bulma-styled group.",
@@ -146,7 +146,7 @@
146
146
  "name": "message",
147
147
  "type": "React.ReactNode",
148
148
  "default": null,
149
- "description": "Help/validation message below the input.",
149
+ "description": "Help or validation text under the widget. It describes the control its label names through `aria-describedby`, so a screen reader reads it there.",
150
150
  "required": false,
151
151
  "inherited": true,
152
152
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<Paragraph>\n Edit the configuration file at <Code>src/config/settings.ts</Code> to change\n the default values.\n</Paragraph>"
39
39
  }
40
40
  ],
41
- "accessibility": "- **Code Semantics:** Screen readers may indicate code content differently, helping users understand it's technical content.\n- **Monospace Font:** The `<code>` element typically renders in a monospace font, aiding readability of technical content.\n- **Context:** Provide context around code snippets so users understand what the code represents.\n\n:::info\nUse `Code` for short inline snippets. For multi-line code blocks that need to preserve whitespace and formatting, use the `Pre` component.\n:::",
41
+ "accessibility": "- **Code Semantics:** browsers tell assistive tech that `<code>` is code, but don't count on a screen reader saying so.\n- **Monospace Font:** The `<code>` element typically renders in a monospace font, aiding readability of technical content.\n- **Context:** Provide context around code snippets so users understand what the code represents.\n\n:::info\nUse `Code` for short inline snippets. For multi-line code blocks that need to preserve whitespace and formatting, use the `Pre` component.\n:::",
42
42
  "related": ["Figure", "Kbd", "Paragraph", "Pre", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/elements-code--default",
44
44
  "summary": "The `Code` component renders a styled `<code>` element with Bulma helper class integration.",
@@ -30,7 +30,7 @@
30
30
  "code": "function example() {\n const faqs = [\n {\n q: 'What is Bestax?',\n a: 'Bestax is a React component library built on Bulma.',\n },\n { q: 'How do I install it?', a: 'pnpm add @allxsmith/bestax-bulma' },\n { q: 'Is it free?', a: 'Yes, Bestax is open source and free to use.' },\n ];\n\n const [open, setOpen] = useState<number[]>([]);\n\n return (\n <Block>\n <Title size=\"5\" mb=\"4\">\n FAQ\n </Title>\n <Collapses multiple value={open} onChange={setOpen}>\n {faqs.map((faq, index) => (\n <Collapse\n key={faq.q}\n bordered\n trigger={\n <Block p=\"4\" display=\"flex\" justifyContent=\"space-between\">\n <Strong>{faq.q}</Strong>\n <Span aria-hidden=\"true\">\n {open.includes(index) ? '▲' : '▼'}\n </Span>\n </Block>\n }\n >\n <Paragraph p=\"4\" textColor=\"grey-dark\">\n {faq.a}\n </Paragraph>\n </Collapse>\n ))}\n </Collapses>\n </Block>\n );\n}"
31
31
  }
32
32
  ],
33
- "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)\n- The trigger is already a button, so give `trigger` text or layout and nothing interactive: no `Button`, `LinkButton`, `<button>`, link or field. One inside would be a second tab stop with no expanded state, nested in the first",
33
+ "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)\n- When the system asks for reduced motion, a `fade` or `slide` Collapse opens and closes at once, with no transition. With bestax's CSS loaded, a `collapse-trigger-icon` turns and a bordered trigger's edge appears without one too\n- The trigger is already a button, so give `trigger` text or layout and nothing interactive: no `Button`, `LinkButton`, `<button>`, link or field. One inside would be a second tab stop with no expanded state, nested in the first",
34
34
  "related": [],
35
35
  "storybook": null,
36
36
  "summary": "The `Collapse` component provides an expandable/collapsible content panel.",
@@ -101,7 +101,7 @@
101
101
  "name": "animation",
102
102
  "type": "'fade' | 'slide' | false",
103
103
  "default": "'fade'",
104
- "description": "Animation style, or `false` to disable.",
104
+ "description": "Animation style, or `false` to disable. When the user's system asks for reduced motion, `fade` and `slide` lose their transition, so the panel opens and closes at once.",
105
105
  "required": false,
106
106
  "inherited": false,
107
107
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<Collapses defaultValue={0}>\n <Collapses.Collapse\n bordered\n trigger={\n <Block p=\"4\">\n <Strong>Shipping</Strong>\n </Block>\n }\n >\n <Paragraph p=\"4\">\n Orders leave the warehouse within two business days.\n </Paragraph>\n </Collapses.Collapse>\n <Collapses.Collapse\n bordered\n trigger={\n <Block p=\"4\">\n <Strong>Returns</Strong>\n </Block>\n }\n >\n <Paragraph p=\"4\">\n Send anything back within 30 days for a full refund.\n </Paragraph>\n </Collapses.Collapse>\n</Collapses>"
39
39
  }
40
40
  ],
41
- "accessibility": "Measured against the\n[WAI-ARIA accordion pattern](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/):\n\n- **Implemented.** Each item keeps the wiring `Collapse` gives it: the trigger has\n `role=\"button\"` and `tabIndex=\"0\"`, toggles on Enter and Space, and carries `aria-expanded`\n and an `aria-controls` that points at its own panel. A closed panel is `aria-hidden` and\n `inert`, so its links and fields leave the tab order until it opens. The group only decides\n which items are open.\n- **Not implemented: the heading.** The pattern wraps each trigger button in a heading\n (`role=\"heading\"` with an `aria-level`), so screen reader users can move between items by\n heading. `Collapse` renders the button itself and has no prop to wrap it, and a heading\n placed inside `trigger` doesn't count, because assistive tech reads a button's contents as\n plain text. A heading above the group still names the section as a whole.\n- **Optional parts, not built in.** Arrow keys, Home and End between triggers: each trigger is\n its own tab stop instead. And `role=\"region\"` on panels: to add one, wrap an item's content in\n an element with `role=\"region\"` and an `aria-label` naming the item. The pattern suggests\n regions only when few panels can be open at once, since each one is a landmark.\n- A trigger's text is its accessible name, so name what the item opens (\"Returns\", not\n \"Click here\"). Mark a decorative icon in a trigger `aria-hidden` so it adds nothing to that\n name.\n- The trigger is already a button, so don't put another button or link inside it. Assistive\n tech treats what's inside a button as plain content, so the inner control loses its role\n while still taking a tab stop.",
41
+ "accessibility": "Measured against the\n[WAI-ARIA accordion pattern](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/):\n\n- **Implemented.** Each item keeps the wiring `Collapse` gives it: the trigger has\n `role=\"button\"` and `tabIndex=\"0\"`, toggles on Enter and Space, and carries `aria-expanded`\n and an `aria-controls` that points at its own panel. A closed panel is `aria-hidden` and\n `inert`, so its links and fields leave the tab order until it opens. The group only decides\n which items are open.\n- When the system asks for reduced motion, each item opens and closes at once, with no\n transition, as `Collapse` does.\n- **Not implemented: the heading.** The pattern wraps each trigger button in a heading\n (`role=\"heading\"` with an `aria-level`), so screen reader users can move between items by\n heading. `Collapse` renders the button itself and has no prop to wrap it, and a heading\n placed inside `trigger` doesn't count, because assistive tech reads a button's contents as\n plain text. A heading above the group still names the section as a whole.\n- **Optional parts, not built in.** Arrow keys, Home and End between triggers: each trigger is\n its own tab stop instead. And `role=\"region\"` on panels: to add one, wrap an item's content in\n an element with `role=\"region\"` and an `aria-label` naming the item. The pattern suggests\n regions only when few panels can be open at once, since each one is a landmark.\n- A trigger's text is its accessible name, so name what the item opens (\"Returns\", not\n \"Click here\"). Mark a decorative icon in a trigger `aria-hidden` so it adds nothing to that\n name.\n- The trigger is already a button, so don't put another button or link inside it. Assistive\n tech treats what's inside a button as plain content, so the inner control loses its role\n while still taking a tab stop.",
42
42
  "related": ["Collapse", "Tabs", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/components-collapses--default",
44
44
  "summary": "The `Collapses` component groups `Collapse` items into an accordion that keeps one item open at a time, or any number with `multiple`.",
@@ -182,7 +182,7 @@
182
182
  "name": "animation",
183
183
  "type": "'fade' | 'slide' | false",
184
184
  "default": "'fade'",
185
- "description": "Animation style, or `false` to disable.",
185
+ "description": "Animation style, or `false` to disable. When the user's system asks for reduced motion, `fade` and `slide` lose their transition, so the panel opens and closes at once.",
186
186
  "required": false,
187
187
  "inherited": false,
188
188
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "<Field label=\"Bare\">\n <Control>\n <ColorInputBase defaultValue=\"#ff6685\" />\n </Control>\n</Field>"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color.\n- **Strings** come from `labels`, with English defaults.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
53
+ "accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color.\n- **Strings** come from `labels`, with English defaults.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the text input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
54
54
  "related": ["ColorPicker", "ColorSwatch", "DateInput", "useBulmaClasses"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/form-colorinput--default",
56
56
  "summary": "The `ColorInput` component is a form field for a color: type it, or open a color picker from its launcher or its swatch. The value is a CSS color string, HSL by default, or empty. The panel is the `ColorPicker`'s square, hue slider and, when asked for, alpha slider, swatches and eye dropper, in the same popover the date pickers use.",
@@ -139,7 +139,7 @@
139
139
  "name": "message",
140
140
  "type": "React.ReactNode",
141
141
  "default": null,
142
- "description": "Help/validation text below the field.",
142
+ "description": "Help or validation text under the field. It describes the text input through `aria-describedby`, after any ids you pass there.",
143
143
  "required": false,
144
144
  "inherited": false,
145
145
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "<ColorPicker\n aria-label=\"Accent\"\n format=\"hex\"\n defaultValue=\"#00d1b2\"\n swatches={['#1e6b99', '#00d1b2', '#ff6685', '#ffdd57']}\n>\n <ColorPicker.Swatches />\n <ColorPickerArea />\n <ColorPicker.HueSlider />\n <ColorPicker.Input />\n</ColorPicker>"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The square is one 2D slider made of two native range inputs**, saturation and brightness,\n the way React Aria builds it. Only the input for the axis moved last is a tab stop, and the\n other is hidden until a key moves it, so a screen reader lists one control, \"Saturation and\n brightness, 2D slider\", with value text such as \"Saturation 50%, Brightness 80%\", the moved\n channel first. On a touch device both inputs stay exposed, so a touch screen reader can adjust\n each with its own gestures.\n- **Keys in the square:** the arrows move by 1, with Shift by 10; Page Up and Page Down move\n brightness by 10, and Home and End move saturation by 10. Focus follows the axis a key moved.\n- **The sliders** are native range inputs named \"Hue\" and \"Alpha\", read as \"171 degrees\" and\n \"50%\". The arrows step by 1, with Shift or Page Up and Page Down by 10, and Home and End go to\n the ends.\n- **Right to left,** the horizontal arrows follow the screen.\n- **Pointer:** a press anywhere on the square or a track sets the value there, so nothing needs a\n drag (WCAG 2.5.7), and the sliders, the square and the swatch buttons are at least 24 by 24 CSS\n pixels (WCAG 2.5.8).\n- **Swatches** are a radio group named \"Swatches\": each swatch is a radio named by its label or\n its color, the chosen one checked and marked by a check and a ring as well as its color.\n- **The value is always in words:** the field shows it and takes a typed color, and a value it\n can't read is marked invalid and put back when you leave the field.\n- **The group** is named by its `label`, or by `aria-label`.\n- **Strings** come from `labels`, with English defaults.\n- **Forced colors:** the square, the tracks and the swatches keep their colors with an edge in the\n system's text color, and the chosen swatch's ring is drawn in the system's highlight color.\n- **The eye dropper** button is named \"Pick a color from the screen\" and only appears where the\n browser can do it.",
53
+ "accessibility": "- **The square is one 2D slider made of two native range inputs**, saturation and brightness,\n the way React Aria builds it. Only the input for the axis moved last is a tab stop, and the\n other is hidden until a key moves it, so a screen reader lists one control, \"Saturation and\n brightness, 2D slider\", with value text such as \"Saturation 50%, Brightness 80%\", the moved\n channel first. On a touch device both inputs stay exposed, so a touch screen reader can adjust\n each with its own gestures.\n- **Keys in the square:** the arrows move by 1, with Shift by 10; Page Up and Page Down move\n brightness by 10, and Home and End move saturation by 10. Focus follows the axis a key moved.\n- **The sliders** are native range inputs named \"Hue\" and \"Alpha\", read as \"171 degrees\" and\n \"50%\". The arrows step by 1, with Shift or Page Up and Page Down by 10, and Home and End go to\n the ends.\n- **Right to left,** the horizontal arrows follow the screen.\n- **Pointer:** a press anywhere on the square or a track sets the value there, so nothing needs a\n drag (WCAG 2.5.7), and the sliders, the square and the swatch buttons are at least 24 by 24 CSS\n pixels (WCAG 2.5.8).\n- **Swatches** are a radio group named \"Swatches\": each swatch is a radio named by its label or\n its color, the chosen one checked and marked by a check and a ring as well as its color.\n- **The value is always in words:** the field shows it and takes a typed color, and a value it\n can't read is marked invalid and put back when you leave the field.\n- **The group** is named by its `label`, or by `aria-label`.\n- **Strings** come from `labels`, with English defaults.\n- **Forced colors:** the square, the tracks and the swatches keep their colors with an edge in the\n system's text color, and the chosen swatch's ring is drawn in the system's highlight color.\n- **The eye dropper** button is named \"Pick a color from the screen\" and only appears where the\n browser can do it.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it.",
54
54
  "related": ["ColorSwatch", "Slider", "Theme", "useBulmaClasses"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/form-colorpicker--default",
56
56
  "summary": "The `ColorPicker` component is a panel for choosing a color: a saturation and brightness square, a hue slider, and the value as text, with alpha and swatches when asked for. Every part is operable by keyboard, and the square is two native range inputs, one per axis, with one tab stop. The value is a CSS color string in `format`, HSL by default.",
@@ -229,7 +229,7 @@
229
229
  "name": "message",
230
230
  "type": "React.ReactNode",
231
231
  "default": null,
232
- "description": "Help/validation message below the input.",
232
+ "description": "Help or validation text under the widget. It describes the control its label names through `aria-describedby`, so a screen reader reads it there.",
233
233
  "required": false,
234
234
  "inherited": true,
235
235
  "deprecated": false
@@ -62,7 +62,7 @@
62
62
  "code": "function example() {\n const drinks: Record<\n string,\n { value: string; label: string; disabled?: boolean }[]\n > = {\n Hot: [\n { value: 'coffee', label: 'Coffee' },\n { value: 'tea', label: 'Tea' },\n ],\n Cold: [\n { value: 'lemonade', label: 'Lemonade' },\n { value: 'iced-tea', label: 'Iced tea' },\n { value: 'smoothie', label: 'Smoothie (sold out)', disabled: true },\n ],\n };\n const [query, setQuery] = useState('');\n const [value, setValue] = useState('tea');\n const picked = Object.values(drinks)\n .flat()\n .find(i => i.value === value);\n const term = query.trim().toLowerCase();\n const groups = Object.entries(drinks)\n .map(([label, items]) => ({\n label,\n items: items.filter(i => i.label.toLowerCase().includes(term)),\n }))\n .filter(g => g.items.length > 0);\n\n return (\n <form onSubmit={e => e.preventDefault()}>\n <Combobox\n label=\"Drink\"\n message={`Your drink: ${picked?.label}`}\n onSelect={next => {\n setValue(next);\n setQuery('');\n }}\n >\n <Combobox.Input\n iconLeftName=\"mug-hot\"\n placeholder=\"Type to filter\"\n value={query}\n onChange={e => setQuery(e.target.value)}\n />\n <Combobox.Menu>\n {groups.length > 0 ? (\n <Combobox.List>\n {groups.map(g => (\n <Combobox.Group key={g.label} label={g.label}>\n {g.items.map(i => (\n <Combobox.Item\n key={i.value}\n value={i.value}\n checked={i.value === value}\n disabled={i.disabled}\n >\n {i.label}\n </Combobox.Item>\n ))}\n </Combobox.Group>\n ))}\n </Combobox.List>\n ) : (\n <Combobox.Empty>No drinks match</Combobox.Empty>\n )}\n </Combobox.Menu>\n </Combobox>\n <Select label=\"Size\">\n <option>Small</option>\n <option>Medium</option>\n <option>Large</option>\n </Select>\n <Input label=\"Name for the cup\" />\n <Button type=\"submit\" color=\"primary\">\n Order\n </Button>\n </form>\n );\n}"
63
63
  }
64
64
  ],
65
- "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`. The list is a `listbox` of `option`s, and a group is a `group` named by\n its heading. This is the ARIA 1.2 combobox the ARIA Authoring Practices describe.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`.\n When a key or the list opening moves the highlight, the item is scrolled into view, since a\n browser only scrolls to what has focus. The pointer moves it without scrolling, since the pointer\n is already on that item. A click on an item keeps focus in the field too.\n- **`aria-expanded`** is `true` while a list with an item in it is on screen, and\n `aria-controls` points at the list then. While the menu shows just the empty message, the\n field says it's collapsed, and so does the server markup for a list rendered with\n `appendToBody`, which shows only once the page has hydrated.\n- **The list's name** comes from the label that names the field: the Combobox's `label`, or an\n outer `Field`'s. An `aria-label` or `aria-labelledby` you put on `Combobox.List` wins, and\n with none of these the list is named \"Suggestions\". Given `data`, an `aria-label` or\n `aria-labelledby` on the Combobox names the field and the list, so it needs no `label`.\n- **`aria-selected`, with one value,** is on the highlighted item and nothing else, the way the\n Authoring Practices' combobox examples do it. The value shows as a check mark, which doesn't rely\n on color, and the list opens with the highlight on it. Several libraries put `aria-selected` on\n the chosen item instead.\n- **With `multiple`,** the list is `aria-multiselectable`, and each item's `aria-selected` is its\n `checked`.\n- **Disabled items** are `aria-disabled` and stay reachable with the arrows, the Authoring\n Practices' advice for listbox options, so a screen reader user finds them. They're never picked\n or `aria-selected`, and the opening highlight and `keepFirst` pass over them.\n- **The empty message** sits beside the list, not in it, so it isn't counted as an item. When\n your typing brings it on screen, its text is announced through a polite status region that's in\n the page from the start, once each time the matches run out. Opening the list with it already\n there, or emptying the field, announces nothing. While `isLoading` is on, or a loading `Control`\n is around the Combobox, the announcement waits and is made once loading ends. In a menu,\n keep it to text: Tab closes the list before a keyboard user can reach a link or a button in it.\n An `inline` list stays on screen, so a link or a button beside it is in the Tab order.\n- **Tags,** with `multiple` and `data`: the field's `aria-describedby` points at the tags' labels,\n since its own text is the search, so focusing it reads the picks. Each tag's button is named\n \"Remove\" and the item's label, or `ariaCloseLabel` with the label as its description, and\n taking a tag off puts focus back in the field, which then reads the picks that are left.\n- **No counts are announced,** for the reasons in [A Result Count](https://bestax.io/docs/api/form/combobox#a-result-count).\n- **Enter and Escape:** Enter submits the form when nothing is highlighted, and Escape only stops\n at the Combobox when it closed a panel that was on screen.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, a disabled item takes the system's color for disabled text, and the\n check mark and the panel's edge stay visible.\n- A menu that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
65
+ "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`. The list is a `listbox` of `option`s, and a group is a `group` named by\n its heading. This is the ARIA 1.2 combobox the ARIA Authoring Practices describe.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`.\n When a key or the list opening moves the highlight, the item is scrolled into view, since a\n browser only scrolls to what has focus. The pointer moves it without scrolling, since the pointer\n is already on that item. A click on an item keeps focus in the field too.\n- **`aria-expanded`** is `true` while a list with an item in it is on screen, and\n `aria-controls` points at the list then. While the menu shows just the empty message, the\n field says it's collapsed, and so does the server markup for a list rendered with\n `appendToBody`, which shows only once the page has hydrated.\n- **The list's name** comes from the label that names the field: the Combobox's `label`, or an\n outer `Field`'s. An `aria-label` or `aria-labelledby` you put on `Combobox.List` wins, and\n with none of these the list is named \"Suggestions\". Given `data`, an `aria-label` or\n `aria-labelledby` on the Combobox names the field and the list, so it needs no `label`.\n- **`aria-selected`, with one value,** is on the highlighted item and nothing else, the way the\n Authoring Practices' combobox examples do it. The value shows as a check mark, which doesn't rely\n on color, and the list opens with the highlight on it. Several libraries put `aria-selected` on\n the chosen item instead.\n- **With `multiple`,** the list is `aria-multiselectable`, and each item's `aria-selected` is its\n `checked`.\n- **Disabled items** are `aria-disabled` and stay reachable with the arrows, the Authoring\n Practices' advice for listbox options, so a screen reader user finds them. They're never picked\n or `aria-selected`, and the opening highlight and `keepFirst` pass over them.\n- **The empty message** sits beside the list, not in it, so it isn't counted as an item. When\n your typing brings it on screen, its text is announced through a polite status region that's in\n the page from the start, once each time the matches run out. Opening the list with it already\n there, or emptying the field, announces nothing. While `isLoading` is on, or a loading `Control`\n is around the Combobox, the announcement waits and is made once loading ends. In a menu,\n keep it to text: Tab closes the list before a keyboard user can reach a link or a button in it.\n An `inline` list stays on screen, so a link or a button beside it is in the Tab order.\n- **Tags,** with `multiple` and `data`: the field's `aria-describedby` points at the tags' labels,\n since its own text is the search, so focusing it reads the picks. Each tag's button is named\n \"Remove\" and the item's label, or `ariaCloseLabel` with the label as its description, and\n taking a tag off puts focus back in the field, which then reads the picks that are left.\n- **No counts are announced,** for the reasons in [A Result Count](https://bestax.io/docs/api/form/combobox#a-result-count).\n- **Enter and Escape:** Enter submits the form when nothing is highlighted, and Escape only stops\n at the Combobox when it closed a panel that was on screen.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, a disabled item takes the system's color for disabled text, and the\n check mark and the panel's edge stay visible.\n- A menu that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass to `Combobox.Input` and, with `data` and `multiple`, after the picked tags.",
66
66
  "related": [
67
67
  "Autocomplete",
68
68
  "Cascader",
@@ -359,7 +359,7 @@
359
359
  "name": "message",
360
360
  "type": "React.ReactNode",
361
361
  "default": null,
362
- "description": "Help/validation message below the input.",
362
+ "description": "Help or validation text under the widget. It describes the control its label names through `aria-describedby`, so a screen reader reads it there.",
363
363
  "required": false,
364
364
  "inherited": true,
365
365
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<ContextMenu\n aria-label=\"Actions for notes.txt\"\n trigger={\n <Box tabIndex={0} p=\"6\" textAlign=\"centered\">\n notes.txt\n </Box>\n }\n>\n <ContextMenu.Item as=\"button\">Open</ContextMenu.Item>\n <ContextMenu.Item as=\"button\">Rename</ContextMenu.Item>\n <ContextMenu.Divider />\n <ContextMenu.Item as=\"button\">Delete</ContextMenu.Item>\n</ContextMenu>"
39
39
  }
40
40
  ],
41
- "accessibility": "`ContextMenu` follows the [WAI-ARIA menu pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/),\nwithout a menubar or submenus:\n\n- **Opening:** APG names \"a command, such as Shift + F10 in Windows, that opens a context specific\n menu\". That's the browser's `contextmenu` event, which <kbd>Shift</kbd>+<kbd>F10</kbd> and the\n context menu key fire on Windows and Linux, and VoiceOver's <kbd>VO</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd>\n fires on macOS. `ContextMenu` adds no key handler of its own, so the menu never opens twice for\n one key.\n- **Focus on open** goes to the first enabled item, or to the menu itself when there's none.\n- <kbd>ArrowDown</kbd> and <kbd>ArrowUp</kbd> move to the next and previous item, wrapping, and\n <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last.\n- **Typing** a letter moves to the next item whose text starts with what's been typed. Letters typed\n in quick succession add up to one search, and the same letter again cycles through the items that\n start with it. Each opening starts a new search.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> activate the focused item the way a click does, so its\n `onClick` runs, and a key held down activates it once.\n- <kbd>Escape</kbd> closes the menu and returns focus to what had it before the menu opened. It\n stops there, so a `Popover` or a `Modal` around the menu stays open.\n- <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> close it and return focus too. The menu sits at\n the end of the page, so letting Tab go on from it would skip the rest of the page.\n- An item that runs closes the menu and returns focus, unless it moved focus somewhere else, such as\n into a `Modal` it opened or a rename field.\n\nRoles and names:\n\n- The menu is `role=\"menu\"`, named by the `aria-label` or `aria-labelledby` you pass. There's no\n button to borrow a name from, and a development build warns when a menu opens without one.\n- Items are `menuitem` by default, and `menuitemcheckbox` or `menuitemradio` with `aria-checked`\n through the item's `role`. A divider is an `<hr>`, which is a separator.\n- An `active` item has `aria-current=\"true\"`, as in `Dropdown`, and an `aria-current` you pass\n wins.\n- Disabled items, a `button` with `disabled` or an item with `aria-disabled=\"true\"`, are skipped by\n the arrow keys and by typing, as in `Dropdown`.\n- The trigger gets no ARIA, no role and no tab stop. `aria-haspopup` describes a popup that opens\n when an element is activated, and a right-click on a row isn't that. So nothing tells a screen\n reader user the menu is there, and on macOS only VoiceOver opens it from the keyboard: every action\n in it has to be reachable from a visible control as well, which\n [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html) asks for.\n\nAnd around it:\n\n- The menu isn't modal. A press outside it closes it and does whatever it does, the rest of the page\n stays reachable, and nothing locks scrolling.\n- Nothing listens on the page while the menu is closed and no finger is held on its trigger, so a\n table with a menu on every row adds no listeners until one is used.\n- The menu doesn't animate.",
41
+ "accessibility": "`ContextMenu` follows the [WAI-ARIA menu pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/),\nwithout a menubar or submenus:\n\n- **Opening:** APG names \"a command, such as Shift + F10 in Windows, that opens a context specific\n menu\". That's the browser's `contextmenu` event, which <kbd>Shift</kbd>+<kbd>F10</kbd> and the\n context menu key fire on Windows and Linux, and VoiceOver's <kbd>VO</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd>\n fires on macOS. `ContextMenu` adds no key handler of its own, so the menu never opens twice for\n one key.\n- **Focus on open** goes to the first enabled item, or to the menu itself when there's none.\n- <kbd>ArrowDown</kbd> and <kbd>ArrowUp</kbd> move to the next and previous item, wrapping, and\n <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last.\n- **Typing** a letter moves to the next item whose text starts with what's been typed. Letters typed\n in quick succession add up to one search, and the same letter again cycles through the items that\n start with it. Each opening starts a new search.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> activate the focused item the way a click does, so its\n `onClick` runs, and a key held down activates it once.\n- <kbd>Escape</kbd> closes the menu and returns focus to what had it before the menu opened. It\n stops there, so a `Popover` or a `Modal` around the menu stays open.\n- <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> close it and return focus too. The menu sits at\n the end of the page, so letting Tab go on from it would skip the rest of the page.\n- An item that runs closes the menu and returns focus, unless it moved focus somewhere else, such as\n into a `Modal` it opened or a rename field.\n\nRoles and names:\n\n- The menu is `role=\"menu\"`, named by the `aria-label` or `aria-labelledby` you pass. There's no\n button to borrow a name from, and a development build warns when a menu opens without one.\n- Items are `menuitem` by default, and `menuitemcheckbox` or `menuitemradio` with `aria-checked`\n through the item's `role`. A divider is an `<hr>`, which is a separator.\n- An `active` item has `aria-current=\"true\"`, as in `Dropdown`, and an `aria-current` you pass\n wins.\n- Disabled items, a `button` with `disabled` or an item with `aria-disabled=\"true\"`, are skipped by\n the arrow keys and by typing, as in `Dropdown`, and they go on from an item that turns disabled\n while it keeps focus.\n- The trigger gets no ARIA, no role and no tab stop. `aria-haspopup` describes a popup that opens\n when an element is activated, and a right-click on a row isn't that. So nothing tells a screen\n reader user the menu is there, and on macOS only VoiceOver opens it from the keyboard: every action\n in it has to be reachable from a visible control as well, which\n [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html) asks for.\n\nAnd around it:\n\n- The menu isn't modal. A press outside it closes it and does whatever it does, the rest of the page\n stays reachable, and nothing locks scrolling.\n- Nothing listens on the page while the menu is closed and no finger is held on its trigger, so a\n table with a menu on every row adds no listeners until one is used.\n- The menu doesn't animate.",
42
42
  "related": [
43
43
  "ConfigProvider",
44
44
  "Dropdown",
@@ -50,7 +50,7 @@
50
50
  "code": "<CopyButton value=\"https://bestax.io\" isDisabled />"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The name follows the words:** with its label shown, the button has no `aria-label`, so its name\n is the text on it, \"Copy\" and then \"Copied\", and a voice control user can say what they see\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **The result is announced:** a change to a focused button's label isn't read out by every screen\n reader and browser pairing, so each copy, and each failure, is also a polite `role=\"status\"`\n message\n ([WCAG 4.1.3](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html), technique\n [ARIA22](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA22)). The region is in the page from\n hydration, well before any click, and is visually hidden. It's portaled to the end of the page,\n or to a `ConfigProvider`'s `portalContainer`, so it isn't a child of the button's `Control` or\n `Buttons` row. Inside an open modal dialog (`aria-modal=\"true\"`), such as a `Modal`, a `Dialog`\n or a `Sidebar` with an overlay, it goes inside the dialog instead, since a screen reader ignores\n a live region behind one. It moves there when the button takes focus or a click. A copy repeated\n while the button still reads \"Copied\" is announced again.\n- **Icon-only, it's still named:** `labels.copy` is its `aria-label` in both states, since there are\n no words to follow, and only the glyph swaps. Give it a name that says what it copies when there\n are several on a page (\"Copy the Production key\").\n- **The glyphs are decorative:** both render `aria-hidden=\"true\"`; the label and the status carry the\n meaning.\n- **Failures aren't hidden:** a copy that didn't happen never shows \"Copied\".\n- **Keyboard and focus:** it's a native `<button type=\"button\">`, so <kbd>Enter</kbd> and\n <kbd>Space</kbd> copy, focus stays on it, and it never submits the form it sits in.\n- **Forced colors:** the glyphs are drawn in `currentColor`, so they take the system's button text\n color.",
53
+ "accessibility": "- **The name follows the words:** with its label shown, the button has no `aria-label`, so its name\n is the text on it, \"Copy\" and then \"Copied\", and a voice control user can say what they see\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **The result is announced:** a change to a focused button's label isn't read out by every screen\n reader and browser pairing, so each copy, and each failure, is also a polite `role=\"status\"`\n message\n ([WCAG 4.1.3](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html), technique\n [ARIA22](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA22)). The region is in the page from\n hydration, well before any click, and is visually hidden. It's portaled to the end of the page,\n or to a `ConfigProvider`'s `portalContainer`, so it isn't a child of the button's `Control` or\n `Buttons` row. Inside an open modal dialog (`aria-modal=\"true\"`), such as a `Modal`, a `Dialog`\n or a `Sidebar` with an overlay, it goes inside the dialog instead, since a screen reader ignores\n a live region behind one. It moves there when the button takes focus or a click. A copy repeated\n while the button still reads \"Copied\" is announced again.\n- **Icon-only, it's still named:** `labels.copy` is its `aria-label` in both states, since there are\n no words to follow, and only the glyph swaps. Give it a name that says what it copies when there\n are several on a page (\"Copy the Production key\").\n- **The glyphs are decorative:** both render `aria-hidden=\"true\"`; the label and the status carry the\n meaning.\n- **Failures aren't hidden:** a copy that didn't happen never shows \"Copied\".\n- **Keyboard and focus:** it's a native `<button type=\"button\">`, so <kbd>Enter</kbd> and\n <kbd>Space</kbd> copy, focus stays on it, and it never submits the form it sits in. While\n `isLoading` is set it copies nothing, as `Button` drops the click, and carries `aria-busy` and\n `aria-disabled`.\n- **Forced colors:** the glyphs are drawn in `currentColor`, so they take the system's button text\n color.",
54
54
  "related": [
55
55
  "Button",
56
56
  "Code",
@@ -166,7 +166,7 @@
166
166
  "name": "isLoading",
167
167
  "type": "boolean",
168
168
  "default": "false",
169
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
169
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
170
170
  "required": false,
171
171
  "inherited": true,
172
172
  "deprecated": false
@@ -66,7 +66,7 @@
66
66
  "code": "<DataTable\n caption=\"Mitglieder\"\n columns={[{ id: 'name', header: 'Name', sortable: true, isRowHeader: true }]}\n data={[\n { id: 'm1', name: 'Emmy Noether' },\n { id: 'm2', name: 'Lise Meitner' },\n { id: 'm3', name: 'Konrad Zuse' },\n ]}\n selectionMode=\"multiple\"\n hasSearch\n pageSize={2}\n isFullwidth\n labels={{\n selectAll: 'Alle Zeilen dieser Seite auswählen',\n selectRow: label => `${label} auswählen`,\n sortHint: 'Spaltenköpfe mit Schaltflächen sind sortierbar',\n search: 'Suchen',\n results: count => (count === 1 ? '1 Treffer' : `${count} Treffer`),\n pageRange: (first, last, total) => `${first} bis ${last} von ${total}`,\n loading: 'Wird geladen',\n pagination: 'Mitglieder, Seiten',\n empty: 'Noch keine Mitglieder.',\n noResults: 'Keine Treffer.',\n }}\n/>"
67
67
  }
68
68
  ],
69
- "accessibility": "- **A native table,** as in the ARIA Authoring Practices' Sortable Table example: `th scope=\"col\"`\n headers, `th scope=\"row\"` for the row header, and a `caption` or your `aria-label` or\n `aria-labelledby` as its name. A development build warns when it has none.\n- **Sorting:** a sortable header holds a `<button>` with the header's text, and only the sorted\n header has `aria-sort`, `ascending` or `descending`, which screen readers read out as they reach\n it. That headers with buttons sort is said once, hidden at the end of the caption, or as a hidden\n caption of its own when `aria-label` names the table. The indicator is drawn in CSS, so it's not\n read.\n- **Selection** rides on the checkboxes: each is named \"Select\" and the row's label, and the one in\n the header is mixed (`aria-checked=\"mixed\"`) when some of the page is selected. Rows get Bulma's\n selected look and no `aria-selected`, which ARIA gives the rows of a grid rather than a table.\n- **A status message** in a polite live region says how many rows match a short while after the\n search or a filter changes, the range shown after a page change, and \"Loading\" while `loading` is\n on after one of those. Nothing is said as the page loads, or for a sort, which `aria-sort` covers.\n- **The pager** is a `navigation` named after the table, so two tables on a page have two named\n pagers.\n- **Busy:** `aria-busy` is on the table while `loading`, and the skeleton rows are hidden from\n assistive tech.\n- **Wide tables:** with `isResponsive`, the `ScrollArea` around the table is a tab stop and a\n named region while it overflows, so it can be scrolled from the keyboard.\n- **Forced colors:** the sort indicator is painted in the system's button text color, and the sort\n button's focus ring is an outline. A selected row's fill is a color forced colors takes away, so\n the checked checkbox carries the selection there. The pager's current page is drawn in the\n system's highlight colors, as [Pagination](https://bestax.io/docs/api/components/pagination)'s is.\n- **No motion:** nothing animates but the skeleton, which stops under reduced motion.",
69
+ "accessibility": "- **A native table,** as in the ARIA Authoring Practices' Sortable Table example: `th scope=\"col\"`\n headers, `th scope=\"row\"` for the row header, and a `caption` or your `aria-label` or\n `aria-labelledby` as its name. A development build warns when it has none.\n- **Sorting:** a sortable header holds a `<button>` with the header's text, and only the sorted\n header has `aria-sort`, `ascending` or `descending`, which screen readers read out as they reach\n it. That headers with buttons sort is said once, hidden at the end of the caption, or as a hidden\n caption of its own when `aria-label` names the table. The indicator is drawn in CSS, so it's not\n read.\n- **Selection** rides on the checkboxes: each is named \"Select\" and the row's label, and the one in\n the header is mixed (`aria-checked=\"mixed\"`) when some of the page is selected. Rows get Bulma's\n selected look and no `aria-selected`, which ARIA gives the rows of a grid rather than a table.\n- **A status message** in a polite live region says how many rows match a short while after the\n search or a filter changes, the range shown after a page change, and \"Loading\" while `loading` is\n on after one of those. Nothing is said as the page loads, or for a sort, which `aria-sort` covers.\n- **The pager** is a `navigation` named after the table, so two tables on a page have two named\n pagers.\n- **Busy:** `aria-busy` is on the table while `loading`, and the skeleton rows are hidden from\n assistive tech.\n- **Wide tables:** with `isResponsive`, the `ScrollArea` around the table is a tab stop and a\n named region while it overflows, so it can be scrolled from the keyboard.\n- **Forced colors:** the sort indicator is painted in the system's button text color, and the sort\n button's focus ring is an outline. A selected row's fill is a color forced colors takes away, so\n there a double line in the system's highlight color marks the row, as it marks a selected `Table`\n row, and its checked checkbox carries the selection too. The pager's current page is drawn in the\n system's highlight colors, as [Pagination](https://bestax.io/docs/api/components/pagination)'s is.\n- **No motion:** nothing animates but the skeleton, which stops under reduced motion.",
70
70
  "related": [
71
71
  "Checkbox",
72
72
  "EmptyState",