@slotted/react 0.1.0-beta.29 → 0.1.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-shell-CXlO6z0w.js → app-shell-ClwskWBN.js} +1 -1
- package/dist/app-shell.js +2 -2
- package/dist/docs/AGENTS.snippet.md +1 -1
- package/dist/docs/accordion.json +5 -5
- package/dist/docs/accordion.md +11 -11
- package/dist/docs/action-bar.json +19 -19
- package/dist/docs/action-bar.md +29 -29
- package/dist/docs/action-sheet.json +5 -5
- package/dist/docs/action-sheet.md +15 -15
- package/dist/docs/alert.json +11 -11
- package/dist/docs/alert.md +17 -17
- package/dist/docs/app-shell.examples.md +8 -8
- package/dist/docs/app-shell.json +11 -11
- package/dist/docs/app-shell.md +2 -2
- package/dist/docs/attachment.json +1 -1
- package/dist/docs/attachment.md +1 -1
- package/dist/docs/avatar-group.json +1 -1
- package/dist/docs/avatar-group.md +1 -1
- package/dist/docs/avatar.json +10 -10
- package/dist/docs/avatar.md +9 -9
- package/dist/docs/badge.json +5 -5
- package/dist/docs/badge.md +5 -5
- package/dist/docs/breadcrumb.json +2 -2
- package/dist/docs/breadcrumb.md +2 -2
- package/dist/docs/button-group.json +1 -1
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +11 -11
- package/dist/docs/button.md +7 -7
- package/dist/docs/calendar.json +4 -4
- package/dist/docs/calendar.md +3 -3
- package/dist/docs/card.json +2 -2
- package/dist/docs/card.md +2 -2
- package/dist/docs/carousel.json +11 -11
- package/dist/docs/carousel.md +12 -12
- package/dist/docs/chart.examples.md +41 -41
- package/dist/docs/chart.json +28 -28
- package/dist/docs/chart.md +4 -4
- package/dist/docs/checkbox-group.examples.md +12 -12
- package/dist/docs/checkbox-group.json +6 -6
- package/dist/docs/checkbox-group.md +1 -1
- package/dist/docs/checkbox.examples.md +8 -8
- package/dist/docs/checkbox.json +7 -7
- package/dist/docs/checkbox.md +4 -4
- package/dist/docs/code-block.json +1 -1
- package/dist/docs/code-block.md +1 -1
- package/dist/docs/collapsible.json +12 -12
- package/dist/docs/collapsible.md +21 -21
- package/dist/docs/color-picker.json +25 -25
- package/dist/docs/color-picker.md +15 -15
- package/dist/docs/column-manager.json +1 -1
- package/dist/docs/column-manager.md +1 -1
- package/dist/docs/combobox.json +1 -1
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/context-menu.json +1 -1
- package/dist/docs/context-menu.md +1 -1
- package/dist/docs/currency-field.examples.md +1 -1
- package/dist/docs/currency-field.json +5 -5
- package/dist/docs/currency-field.md +4 -4
- package/dist/docs/dashboard-grid.json +1 -1
- package/dist/docs/data-grid.json +2 -2
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/data-grid.props.md +1 -1
- package/dist/docs/date-field.json +4 -4
- package/dist/docs/date-field.md +9 -9
- package/dist/docs/date-picker.json +1 -1
- package/dist/docs/date-range-picker.json +1 -1
- package/dist/docs/datetime-field.json +3 -3
- package/dist/docs/datetime-field.md +7 -7
- package/dist/docs/datetime-picker.json +1 -1
- package/dist/docs/datetime-range-picker.examples.md +2 -2
- package/dist/docs/datetime-range-picker.json +3 -3
- package/dist/docs/datetime-range-picker.md +2 -2
- package/dist/docs/description-list.json +5 -5
- package/dist/docs/description-list.md +4 -4
- package/dist/docs/detail-panel.json +9 -9
- package/dist/docs/detail-panel.md +11 -11
- package/dist/docs/dialog.examples.md +5 -5
- package/dist/docs/dialog.json +12 -12
- package/dist/docs/dialog.md +4 -4
- package/dist/docs/dialog.props.md +2 -2
- package/dist/docs/drawer.examples.md +14 -14
- package/dist/docs/drawer.json +8 -8
- package/dist/docs/drawer.md +1 -1
- package/dist/docs/entity-picker.json +1 -1
- package/dist/docs/entity-picker.md +2 -2
- package/dist/docs/event-calendar.examples.md +3 -3
- package/dist/docs/event-calendar.json +5 -5
- package/dist/docs/event-calendar.md +2 -2
- package/dist/docs/field-group.json +5 -5
- package/dist/docs/field-group.md +9 -9
- package/dist/docs/field.examples.md +3 -3
- package/dist/docs/field.json +4 -4
- package/dist/docs/field.md +1 -1
- package/dist/docs/form.json +6 -6
- package/dist/docs/form.md +10 -10
- package/dist/docs/fullscreen.json +3 -3
- package/dist/docs/fullscreen.md +6 -6
- package/dist/docs/guidelines/async-feedback.md +2 -2
- package/dist/docs/guidelines/builders.md +1 -1
- package/dist/docs/guidelines/composition.md +4 -4
- package/dist/docs/guidelines/conversations.md +1 -1
- package/dist/docs/guidelines/index.md +2 -2
- package/dist/docs/guidelines/layout-alignment.md +5 -5
- package/dist/docs/guidelines/overviews.md +3 -3
- package/dist/docs/guidelines/own-elements.md +7 -7
- package/dist/docs/guidelines/record-pages.md +1 -1
- package/dist/docs/highlight.json +11 -11
- package/dist/docs/highlight.md +18 -18
- package/dist/docs/icon.json +2 -2
- package/dist/docs/icon.md +2 -2
- package/dist/docs/image.json +3 -3
- package/dist/docs/image.md +3 -3
- package/dist/docs/import-export-center.json +25 -25
- package/dist/docs/import-export-center.md +21 -21
- package/dist/docs/inline-message.json +14 -14
- package/dist/docs/inline-message.md +20 -20
- package/dist/docs/inline.json +1 -1
- package/dist/docs/inline.md +1 -1
- package/dist/docs/kbd.json +2 -2
- package/dist/docs/kbd.md +2 -2
- package/dist/docs/link.json +7 -7
- package/dist/docs/link.md +7 -7
- package/dist/docs/list-item.json +1 -1
- package/dist/docs/list-item.md +1 -1
- package/dist/docs/list.json +2 -2
- package/dist/docs/list.md +1 -1
- package/dist/docs/listbox.json +1 -1
- package/dist/docs/listbox.md +1 -1
- package/dist/docs/loading-overlay.json +2 -2
- package/dist/docs/loading-overlay.md +2 -2
- package/dist/docs/media-viewer.json +1 -1
- package/dist/docs/media-viewer.md +1 -1
- package/dist/docs/message-scroller.json +1 -1
- package/dist/docs/message-scroller.md +1 -1
- package/dist/docs/message.json +11 -11
- package/dist/docs/message.md +17 -17
- package/dist/docs/multi-select.json +1 -1
- package/dist/docs/notification-center.json +18 -18
- package/dist/docs/notification-center.md +25 -22
- package/dist/docs/number-field.examples.md +4 -4
- package/dist/docs/number-field.json +3 -3
- package/dist/docs/otp-input.json +9 -9
- package/dist/docs/otp-input.md +12 -12
- package/dist/docs/page-header.json +9 -9
- package/dist/docs/page-header.md +23 -23
- package/dist/docs/pagination.json +2 -2
- package/dist/docs/pagination.md +1 -1
- package/dist/docs/popover.examples.md +1 -1
- package/dist/docs/popover.json +3 -3
- package/dist/docs/popover.md +1 -1
- package/dist/docs/progress-indicator.json +4 -4
- package/dist/docs/progress-indicator.md +4 -4
- package/dist/docs/prompt-composer.json +3 -3
- package/dist/docs/prompt-composer.md +4 -4
- package/dist/docs/prose.json +1 -1
- package/dist/docs/prose.md +1 -1
- package/dist/docs/radio-group.examples.md +16 -16
- package/dist/docs/radio-group.json +9 -9
- package/dist/docs/radio-group.md +2 -2
- package/dist/docs/rating.json +18 -18
- package/dist/docs/rating.md +19 -23
- package/dist/docs/result-state.json +13 -13
- package/dist/docs/result-state.md +18 -20
- package/dist/docs/saved-views.json +1 -1
- package/dist/docs/scroll-area.json +5 -5
- package/dist/docs/scroll-area.md +6 -6
- package/dist/docs/section.json +6 -6
- package/dist/docs/section.md +11 -11
- package/dist/docs/segmented-control.json +15 -15
- package/dist/docs/segmented-control.md +39 -39
- package/dist/docs/skeleton.json +1 -1
- package/dist/docs/skeleton.md +1 -1
- package/dist/docs/skills/build-own-element/SKILL.md +3 -3
- package/dist/docs/skills/compose-screen/SKILL.md +2 -2
- package/dist/docs/skills/index.md +2 -2
- package/dist/docs/skills/review-screen/SKILL.md +3 -3
- package/dist/docs/skills/theme-app/SKILL.md +9 -9
- package/dist/docs/skills/waiting-states/SKILL.md +1 -1
- package/dist/docs/slider.json +9 -9
- package/dist/docs/slider.md +19 -19
- package/dist/docs/sparkline.json +8 -8
- package/dist/docs/sparkline.md +6 -6
- package/dist/docs/split-button.json +11 -11
- package/dist/docs/split-button.md +27 -27
- package/dist/docs/stack.json +1 -1
- package/dist/docs/stack.md +1 -1
- package/dist/docs/stat-card.json +3 -3
- package/dist/docs/stat-card.md +2 -2
- package/dist/docs/status-indicator.json +8 -8
- package/dist/docs/status-indicator.md +5 -5
- package/dist/docs/stepper.json +4 -4
- package/dist/docs/stepper.md +4 -4
- package/dist/docs/switch.json +5 -5
- package/dist/docs/switch.md +11 -7
- package/dist/docs/table-of-contents.json +9 -9
- package/dist/docs/table-of-contents.md +13 -13
- package/dist/docs/table.examples.md +1 -1
- package/dist/docs/table.json +1 -1
- package/dist/docs/tabs.json +1 -1
- package/dist/docs/tabs.md +1 -1
- package/dist/docs/tag.json +21 -21
- package/dist/docs/tag.md +18 -18
- package/dist/docs/tags-input.json +1 -1
- package/dist/docs/tags-input.md +1 -1
- package/dist/docs/text-field.examples.md +5 -5
- package/dist/docs/text-field.json +5 -5
- package/dist/docs/text-field.md +1 -1
- package/dist/docs/textarea.examples.md +4 -4
- package/dist/docs/textarea.json +2 -2
- package/dist/docs/time-field.json +3 -3
- package/dist/docs/time-field.md +7 -7
- package/dist/docs/time-picker.json +4 -4
- package/dist/docs/time-picker.md +7 -7
- package/dist/docs/time-range-picker.json +4 -4
- package/dist/docs/time-range-picker.md +5 -5
- package/dist/docs/toast.json +5 -5
- package/dist/docs/toast.md +5 -5
- package/dist/docs/toggle-group.json +13 -13
- package/dist/docs/toggle-group.md +38 -38
- package/dist/docs/toggle.json +8 -8
- package/dist/docs/toggle.md +8 -8
- package/dist/docs/tokens.md +15 -15
- package/dist/docs/toolbar.json +11 -11
- package/dist/docs/toolbar.md +28 -28
- package/dist/docs/tooltip.json +3 -3
- package/dist/docs/tooltip.md +3 -3
- package/dist/docs/top-navigation.examples.md +13 -13
- package/dist/docs/top-navigation.json +10 -10
- package/dist/docs/top-navigation.md +7 -7
- package/dist/docs/tour.json +8 -8
- package/dist/docs/tour.md +5 -5
- package/dist/docs/typography.json +2 -2
- package/dist/docs/typography.md +2 -2
- package/dist/docs/upload.examples.md +5 -5
- package/dist/docs/upload.json +10 -10
- package/dist/docs/upload.md +3 -3
- package/dist/{form-Im9lGi45.js → form-DnV8ndwm.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/index.js +8 -8
- package/dist/{rating-Cjrwmxyw.js → rating-BtrkTAi0.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{side-navigation-CvIGfGjZ.js → side-navigation-DNMpckRs.js} +1 -1
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DuJGh0pf.js → slider-CU89H3i0.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{top-navigation-D_Jt0jNw.js → top-navigation-C73WDqLg.js} +1 -1
- package/dist/top-navigation.js +1 -1
- package/dist/types/alert/alert.types.d.ts +2 -2
- package/dist/types/alert/alert.types.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/atrio.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/aurora.d.ts +6 -6
- package/dist/types/app-shell/app-shell-demo/aurora.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/cadence.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +2 -2
- package/dist/types/app-shell/app-shell.types.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts +2 -2
- package/dist/types/avatar/avatar.types.d.ts +8 -8
- package/dist/types/avatar/avatar.types.d.ts.map +1 -1
- package/dist/types/badge/badge.types.d.ts +4 -4
- package/dist/types/badge/badge.types.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb-parts.d.ts +1 -1
- package/dist/types/button/button.constants.d.ts +1 -1
- package/dist/types/button-group/button-group-separator.d.ts +1 -1
- package/dist/types/card/card-selection.d.ts +1 -1
- package/dist/types/carousel/carousel-catalogue.d.ts +6 -6
- package/dist/types/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/code-block/code-block.types.d.ts +1 -1
- package/dist/types/collapsible/collapsible.types.d.ts +1 -1
- package/dist/types/color-picker/color-picker.d.ts +7 -7
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.types.d.ts +5 -5
- package/dist/types/color-picker/color-picker.types.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts +2 -2
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/combobox/combobox-collection.d.ts +1 -1
- package/dist/types/combobox/combobox-defaults.d.ts +1 -1
- package/dist/types/command-palette/command-palette-defaults.d.ts +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +2 -2
- package/dist/types/description-list/description-list-clipboard.d.ts +1 -1
- package/dist/types/detail-panel/detail-panel-demo.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +1 -1
- package/dist/types/drawer/drawer.types.d.ts +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts +1 -1
- package/dist/types/field/field-parts.d.ts +1 -1
- package/dist/types/field/field.d.ts +1 -1
- package/dist/types/field/field.types.d.ts +1 -1
- package/dist/types/form/form.d.ts +1 -1
- package/dist/types/form/form.types.d.ts +1 -1
- package/dist/types/highlight/highlight.types.d.ts +1 -1
- package/dist/types/icon/glyph.d.ts +1 -1
- package/dist/types/icon/icon.d.ts +2 -2
- package/dist/types/icon/icon.types.d.ts +1 -1
- package/dist/types/icon/icon.types.d.ts.map +1 -1
- package/dist/types/image/image.d.ts +1 -1
- package/dist/types/import-export-center/import-export-center-defaults.d.ts +3 -3
- package/dist/types/import-export-center/import-export-center-demo.d.ts +2 -2
- package/dist/types/import-export-center/import-export-center-demo.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.types.d.ts +3 -3
- package/dist/types/import-export-center/use-job-toasts.d.ts +3 -3
- package/dist/types/inline/inline.d.ts +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts +1 -1
- package/dist/types/inline-message/inline-message.d.ts +2 -2
- package/dist/types/inline-message/inline-message.types.d.ts +1 -1
- package/dist/types/inline-message/inline-message.types.d.ts.map +1 -1
- package/dist/types/kbd/kbd.types.d.ts +1 -1
- package/dist/types/list/list.types.d.ts +1 -1
- package/dist/types/listbox/listbox-defaults.d.ts +1 -1
- package/dist/types/listbox/listbox-parts.d.ts +2 -2
- package/dist/types/menu/menu-defaults.d.ts +1 -1
- package/dist/types/menu/menu-parts.d.ts +1 -1
- package/dist/types/message/message-demo.d.ts +2 -2
- package/dist/types/message/message-demo.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts +1 -1
- package/dist/types/notification-center/notification-center-defaults.d.ts +2 -2
- package/dist/types/notification-center/notification-center-demo.d.ts +1 -1
- package/dist/types/notification-center/notification-center-demo.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.types.d.ts +2 -2
- package/dist/types/otp-input/otp-input.d.ts +1 -1
- package/dist/types/page/page-demo.d.ts +2 -2
- package/dist/types/page/page-demo.d.ts.map +1 -1
- package/dist/types/progress-indicator/loader.d.ts +1 -1
- package/dist/types/progress-indicator/progress-circle.d.ts +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.d.ts +1 -1
- package/dist/types/rating/rating-summary.d.ts +1 -1
- package/dist/types/rating/rating.types.d.ts +1 -1
- package/dist/types/result-state/result-state-demo.d.ts +1 -1
- package/dist/types/result-state/result-state.types.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +1 -1
- package/dist/types/select/select.types.d.ts +1 -1
- package/dist/types/side-navigation/side-navigation.d.ts +1 -1
- package/dist/types/stat-card/stat-card.d.ts +1 -1
- package/dist/types/status-indicator/status-indicator.types.d.ts +3 -3
- package/dist/types/status-indicator/status-indicator.types.d.ts.map +1 -1
- package/dist/types/switch/switch.types.d.ts +1 -1
- package/dist/types/table/table-parts.d.ts +1 -1
- package/dist/types/table/table.types.d.ts +1 -1
- package/dist/types/table-of-contents/table-of-contents-demo.d.ts.map +1 -1
- package/dist/types/tabs/tabs.types.d.ts +2 -2
- package/dist/types/tag/tag.types.d.ts +3 -3
- package/dist/types/tag/tag.types.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts +1 -1
- package/dist/types/theme/theme-scope.d.ts +2 -2
- package/dist/types/theme/theme-scope.d.ts.map +1 -1
- package/dist/types/toast/toast-defaults.d.ts +1 -1
- package/dist/types/toast/toast.types.d.ts +2 -2
- package/dist/types/toast/toast.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +1 -1
- package/dist/types/tooltip/tooltip-defaults.d.ts +1 -1
- package/dist/types/tour/tour.types.d.ts +2 -2
- package/dist/types/typography/text.d.ts +1 -1
- package/dist/types/typography/typography.attributes.d.ts +1 -1
- package/dist/types/typography/typography.types.d.ts +1 -1
- package/dist/types/typography/typography.types.d.ts.map +1 -1
- package/dist/{wizard-CpYwQGQ-.js → wizard-CmEJK55_.js} +2 -2
- package/dist/wizard.js +1 -1
- package/package.json +18 -6
|
@@ -24,13 +24,11 @@ Excerpt — not a complete module
|
|
|
24
24
|
```tsx
|
|
25
25
|
<ResultState status="empty">
|
|
26
26
|
<ResultStateContent>
|
|
27
|
-
<ResultStateTitle>
|
|
28
|
-
<ResultStateDescription>
|
|
29
|
-
Crie um projeto para começar a coletar execuções.
|
|
30
|
-
</ResultStateDescription>
|
|
27
|
+
<ResultStateTitle>No projects yet</ResultStateTitle>
|
|
28
|
+
<ResultStateDescription>Create a project to start collecting runs.</ResultStateDescription>
|
|
31
29
|
</ResultStateContent>
|
|
32
30
|
<ResultStateActions>
|
|
33
|
-
<Button>
|
|
31
|
+
<Button>Create project</Button>
|
|
34
32
|
</ResultStateActions>
|
|
35
33
|
</ResultState>;
|
|
36
34
|
```
|
|
@@ -53,7 +51,7 @@ Excerpt — not a complete module
|
|
|
53
51
|
| --- | --- | --- | --- | --- |
|
|
54
52
|
| `status` | `'empty' \| 'no-results' \| 'not-found' \| 'error' \| 'forbidden' \| 'offline' \| 'success'` | empty | ResultState | What the region is reporting, written on the root as data-status for a page to key its own artwork on. The family paints nothing for it (RS1): what happened is in the title |
|
|
55
53
|
| `reach` | `'inline' \| 'section' \| 'page'` | section | ResultState | The scope the message applies to. inline is a row for a table cell and draws no illustration; page takes the top step of the type scale and draws the illustration half again as large |
|
|
56
|
-
| `align` | `'center' \| 'start'` | center | ResultState | Whether the region reads
|
|
54
|
+
| `align` | `'center' \| 'start'` | center | ResultState | Whether the region reads centerd or from the inline edge. start is for a data-dense screen, where a centerd column reads as an interruption |
|
|
57
55
|
| `live` | `'off' \| 'polite' \| 'assertive'` | polite | ResultState | Whether the text announces itself. polite writes role="status" on the content part and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
|
58
56
|
| `illustration` | `'none' \| 'tile' \| 'stack' \| 'cards'` | none | ResultState | The drawing the family makes around the glyph in media, in the neutral surface and border roles and never in a tone. tile and stack frame a glyph and draw nothing without one; cards draws its lines with or without it; none draws nothing of the family’s own |
|
|
59
57
|
| `media` | `ReactNode` | — | ResultState | The glyph an illustration is drawn around, or artwork the page supplies under illustration="none", projected into the box the family draws so it keeps the height the reach gives it. Angular projects an element carrying slResultStateMedia instead |
|
|
@@ -79,7 +77,7 @@ Excerpt — not a complete module
|
|
|
79
77
|
- There is no APG pattern for this family: the Authoring Practices list holds no empty, error or result state, and the nearest official guidance is the Region landmark practice, which states that “a region landmark must have a label”. The root is a section and the attribute is written only once a title exists, so an unlabelled region is a plain grouping element rather than a landmark with no name.
|
|
80
78
|
- The box is a landmark, not a live region. MDN’s alert role reference states that the role “should only be used for text content, not interactive elements such as links or buttons”, and this family has a row of buttons in it. The region that announces is the content part, which holds the title and the description alone; the mark, the actions and the footer are its siblings.
|
|
81
79
|
- live defaults to polite, which is the one place this family and alert disagree. WCAG 2.2’s Understanding document for SC 4.1.3 names this family’s own text as its example: “brief text messages displayed about the completion or status of the search, such as ‘Searching…’, ‘18 results returned’ or ‘No results returned’ would be status updates”. An alert may be a standing notice that was on the page before it loaded; a result is always the outcome of an operation. None of the seven surveyed implementations writes a live role of any kind.
|
|
82
|
-
- Status is never carried by
|
|
80
|
+
- Status is never carried by color alone, because the family paints no color for it: what happened is in the title and the description, which forced colors leave legible. The illustrations keep the theme’s system-color mapping under forced colors, so a stack is still three layers and not three outlines laid over one another.
|
|
83
81
|
- The media box is hidden from assistive technology, with the glyph, the drawing made around it and any artwork the page supplies. The title and the description already say what the picture says; an illustration that adds information is not decorative, and what it adds belongs in the description.
|
|
84
82
|
- The root carries tabindex="-1" and is not in the tab sequence. An application that has just emptied a table can send the reader to the message through the ref; the family never does it, because moving focus unprompted is a change of context nobody asked for.
|
|
85
83
|
- The family holds no mutable value, so it emits nothing and has no event table. Which status a region is in is a fact about the consumer’s own data — a region that decided it would be deciding whether the fetch failed.
|
|
@@ -93,7 +91,7 @@ Excerpt — not a complete module
|
|
|
93
91
|
|
|
94
92
|
### What the region is reporting
|
|
95
93
|
|
|
96
|
-
Seven semantics, seven silhouettes. Read in
|
|
94
|
+
Seven semantics, seven silhouettes. Read in grayscale, or under forced colors where every ground becomes one system color, the shape is the only thing left telling an absent collection from a failed request.
|
|
97
95
|
|
|
98
96
|
Excerpt — not a complete module
|
|
99
97
|
|
|
@@ -117,11 +115,11 @@ Excerpt — not a complete module
|
|
|
117
115
|
```tsx
|
|
118
116
|
<ResultState reach="inline" status="no-results">
|
|
119
117
|
<ResultStateContent>
|
|
120
|
-
<ResultStateTitle>
|
|
118
|
+
<ResultStateTitle>No rows match the filter</ResultStateTitle>
|
|
121
119
|
</ResultStateContent>
|
|
122
120
|
<ResultStateActions>
|
|
123
121
|
<Button size="sm" variant="ghost">
|
|
124
|
-
|
|
122
|
+
Clear filters
|
|
125
123
|
</Button>
|
|
126
124
|
</ResultStateActions>
|
|
127
125
|
</ResultState>;
|
|
@@ -129,9 +127,9 @@ Excerpt — not a complete module
|
|
|
129
127
|
<ResultState reach="page" status="not-found" />;
|
|
130
128
|
```
|
|
131
129
|
|
|
132
|
-
###
|
|
130
|
+
### Centerd, or from the inline edge
|
|
133
131
|
|
|
134
|
-
Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations
|
|
132
|
+
Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations center unconditionally. Both readings are real, and align is one axis rather than a second family.
|
|
135
133
|
|
|
136
134
|
Excerpt — not a complete module
|
|
137
135
|
|
|
@@ -139,7 +137,7 @@ Excerpt — not a complete module
|
|
|
139
137
|
// The default, for a panel or a route.
|
|
140
138
|
<ResultState align="center" />;
|
|
141
139
|
|
|
142
|
-
// For a data-dense screen, where a
|
|
140
|
+
// For a data-dense screen, where a centerd column reads as an interruption.
|
|
143
141
|
<ResultState align="start" reach="inline" />;
|
|
144
142
|
```
|
|
145
143
|
|
|
@@ -178,7 +176,7 @@ const glyph = (
|
|
|
178
176
|
|
|
179
177
|
<ResultState illustration="stack" media={glyph}>
|
|
180
178
|
<ResultStateContent>
|
|
181
|
-
<ResultStateTitle>
|
|
179
|
+
<ResultStateTitle>No alerts configured</ResultStateTitle>
|
|
182
180
|
</ResultStateContent>
|
|
183
181
|
</ResultState>;
|
|
184
182
|
|
|
@@ -199,16 +197,16 @@ Excerpt — not a complete module
|
|
|
199
197
|
```tsx
|
|
200
198
|
<ResultState status="error">
|
|
201
199
|
<ResultStateContent>
|
|
202
|
-
<ResultStateTitle>
|
|
200
|
+
<ResultStateTitle>The run failed</ResultStateTitle>
|
|
203
201
|
</ResultStateContent>
|
|
204
202
|
<ResultStateActions>
|
|
205
203
|
<Button loading={retrying} tone="danger">
|
|
206
|
-
|
|
204
|
+
Try again
|
|
207
205
|
</Button>
|
|
208
|
-
<Button variant="outline">
|
|
206
|
+
<Button variant="outline">Open log</Button>
|
|
209
207
|
</ResultStateActions>
|
|
210
208
|
<ResultStateFooter>
|
|
211
|
-
<Link href="/docs/retries">
|
|
209
|
+
<Link href="/docs/retries">How retries are counted</Link>
|
|
212
210
|
</ResultStateFooter>
|
|
213
211
|
</ResultState>;
|
|
214
212
|
```
|
|
@@ -241,7 +239,7 @@ Excerpt — not a complete module
|
|
|
241
239
|
<ResultState status="error">
|
|
242
240
|
<ResultStateContent>
|
|
243
241
|
<ResultStateTitle>{longTranslatedTitle}</ResultStateTitle>
|
|
244
|
-
<ResultStateDescription>
|
|
242
|
+
<ResultStateDescription>The run {digest} failed.</ResultStateDescription>
|
|
245
243
|
</ResultStateContent>
|
|
246
244
|
</ResultState>;
|
|
247
245
|
```
|
|
@@ -265,7 +263,7 @@ Excerpt — not a complete module
|
|
|
265
263
|
<App />
|
|
266
264
|
</ResultStateDefaultsProvider>;
|
|
267
265
|
|
|
268
|
-
<ResultStateTitle render={(props) => <h2 {...props} />}>
|
|
266
|
+
<ResultStateTitle render={(props) => <h2 {...props} />}>This page does not exist</ResultStateTitle>;
|
|
269
267
|
```
|
|
270
268
|
|
|
271
269
|
### The landmark, the region and the keyboard
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"part": "modified",
|
|
68
68
|
"element": "span",
|
|
69
69
|
"required": false,
|
|
70
|
-
"purpose": "Inside the trigger while the grid differs from the view in use: a dot in the accent solid and the word Modified, so the state is never
|
|
70
|
+
"purpose": "Inside the trigger while the grid differs from the view in use: a dot in the accent solid and the word Modified, so the state is never color alone and the trigger’s name says it."
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"part": "revert",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"type": "'auto' | 'stable' | 'both-edges'",
|
|
81
81
|
"defaultValue": "stable",
|
|
82
82
|
"appliesTo": "ScrollArea",
|
|
83
|
-
"description": "scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column
|
|
83
|
+
"description": "scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centerd"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "fade",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"There is no APG pattern for a scroll container; what governs is WCAG 2.1.1, tested by the scrollable-region-focusable rule, and 4.1.2, which is what a tab stop then owes. The viewport is role=\"region\" with tabindex=\"0\" and a name, written only while the content overflows — a tab stop on content that fits is a tab stop that does nothing.",
|
|
214
214
|
"The name resolves in one order: labelledBy, then messages.label, then the catalog of the language in force, so a product with fifty areas names them once. Base UI and Zag write role=\"presentation\" beside their tab stop, which answers the rule that is tested and breaks the one that is not.",
|
|
215
215
|
"Nine keys are the platform’s on a focused scrollport — the arrows, PageUp and PageDown, Home, End and Space — and the family binds none of them. The one key it owns is Tab, and tabbable={false} gives that back when a consumer knows the content is reachable another way.",
|
|
216
|
-
"The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay
|
|
216
|
+
"The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay behavior and the bar before hydration all survive; a drawn thumb loses every one of them.",
|
|
217
217
|
"The veil is a mask and is removed under forced-colors, where the system owns the palette and a veil over system text loses legibility for nothing. The scrollbar goes back to the system’s own there too."
|
|
218
218
|
]
|
|
219
219
|
}
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"title": "A bounded region, and the platform’s own bar",
|
|
240
240
|
"note": "Scroll the notes. The bar is the browser’s, themed; the veil at the bottom says there is more and lifts when the end is reached. Tab reaches the region, and the arrows and page keys are the platform’s.",
|
|
241
241
|
"language": "tsx",
|
|
242
|
-
"source": "<ScrollArea className=\"notes\" messages={{ label: '
|
|
242
|
+
"source": "<ScrollArea className=\"notes\" messages={{ label: 'Release notes' }}>\n <ScrollArea.Content>{notes}</ScrollArea.Content>\n</ScrollArea>;\n",
|
|
243
243
|
"verdict": "excerpt"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
{
|
|
270
270
|
"id": "gutter",
|
|
271
271
|
"title": "Room for a bar that is not there yet",
|
|
272
|
-
"note": "The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a
|
|
272
|
+
"note": "The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a centerd column stays centerd.",
|
|
273
273
|
"language": "tsx",
|
|
274
274
|
"source": "<ScrollArea gutter=\"both-edges\">…</ScrollArea>;\n",
|
|
275
275
|
"verdict": "excerpt"
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"title": "What a screen reader is told",
|
|
328
328
|
"note": "The first area overflows and is a named region with a tab stop; the second fits and is nothing at all. The third is named by the heading above it rather than by a string, and a provider sets the fallback name once for the page.",
|
|
329
329
|
"language": "tsx",
|
|
330
|
-
"source": "<SlottedProvider locale=\"pt-BR\" catalogs={{ 'pt-BR': PT_BR }}>\n <h3 id=\"
|
|
330
|
+
"source": "<SlottedProvider locale=\"pt-BR\" catalogs={{ 'pt-BR': PT_BR }}>\n <h3 id=\"notes\">Release notes</h3>\n <ScrollArea labelledBy=\"notes\">…</ScrollArea>\n</SlottedProvider>;\n",
|
|
331
331
|
"verdict": "excerpt"
|
|
332
332
|
}
|
|
333
333
|
]
|
package/dist/docs/scroll-area.md
CHANGED
|
@@ -14,7 +14,7 @@ import { ScrollArea, ScrollAreaDefaultsProvider } from '@slotted/react/scroll-ar
|
|
|
14
14
|
Excerpt — not a complete module
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
<ScrollArea className="notes" messages={{ label: '
|
|
17
|
+
<ScrollArea className="notes" messages={{ label: 'Release notes' }}>
|
|
18
18
|
<ScrollArea.Content>{notes}</ScrollArea.Content>
|
|
19
19
|
</ScrollArea>;
|
|
20
20
|
```
|
|
@@ -33,7 +33,7 @@ Excerpt — not a complete module
|
|
|
33
33
|
| --- | --- | --- | --- | --- |
|
|
34
34
|
| `axis` | `'block' \| 'inline' \| 'both'` | block | ScrollArea | Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary |
|
|
35
35
|
| `scrollbars` | `'auto' \| 'always' \| 'hover' \| 'none'` | auto | ScrollArea | What the bar does: shown when needed, always reserved, painted only under a hand or the keyboard, or removed with the scrolling kept |
|
|
36
|
-
| `gutter` | `'auto' \| 'stable' \| 'both-edges'` | stable | ScrollArea | scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column
|
|
36
|
+
| `gutter` | `'auto' \| 'stable' \| 'both-edges'` | stable | ScrollArea | scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centerd |
|
|
37
37
|
| `fade` | `'both' \| 'end' \| 'none'` | both | ScrollArea | Where the veil is drawn: over what the reader has passed as well as what is ahead, only what is ahead, or nowhere |
|
|
38
38
|
| `overscroll` | `'contain' \| 'auto' \| 'none'` | contain | ScrollArea | overscroll-behavior. contain keeps the last inch of scroll from moving the page behind the area |
|
|
39
39
|
| `maxBlockSize` | `string` | — | ScrollArea | Scroll only past this size, as any CSS length. Mantine’s Autosize as one prop |
|
|
@@ -63,7 +63,7 @@ Excerpt — not a complete module
|
|
|
63
63
|
- There is no APG pattern for a scroll container; what governs is WCAG 2.1.1, tested by the scrollable-region-focusable rule, and 4.1.2, which is what a tab stop then owes. The viewport is role="region" with tabindex="0" and a name, written only while the content overflows — a tab stop on content that fits is a tab stop that does nothing.
|
|
64
64
|
- The name resolves in one order: labelledBy, then messages.label, then the catalog of the language in force, so a product with fifty areas names them once. Base UI and Zag write role="presentation" beside their tab stop, which answers the rule that is tested and breaks the one that is not.
|
|
65
65
|
- Nine keys are the platform’s on a focused scrollport — the arrows, PageUp and PageDown, Home, End and Space — and the family binds none of them. The one key it owns is Tab, and tabbable={false} gives that back when a consumer knows the content is reachable another way.
|
|
66
|
-
- The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay
|
|
66
|
+
- The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay behavior and the bar before hydration all survive; a drawn thumb loses every one of them.
|
|
67
67
|
- The veil is a mask and is removed under forced-colors, where the system owns the palette and a veil over system text loses legibility for nothing. The scrollbar goes back to the system’s own there too.
|
|
68
68
|
|
|
69
69
|
## Tokens
|
|
@@ -105,7 +105,7 @@ Excerpt — not a complete module
|
|
|
105
105
|
|
|
106
106
|
### Room for a bar that is not there yet
|
|
107
107
|
|
|
108
|
-
The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a
|
|
108
|
+
The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a centerd column stays centerd.
|
|
109
109
|
|
|
110
110
|
Excerpt — not a complete module
|
|
111
111
|
|
|
@@ -200,7 +200,7 @@ Excerpt — not a complete module
|
|
|
200
200
|
|
|
201
201
|
```tsx
|
|
202
202
|
<SlottedProvider locale="pt-BR" catalogs={{ 'pt-BR': PT_BR }}>
|
|
203
|
-
<h3 id="
|
|
204
|
-
<ScrollArea labelledBy="
|
|
203
|
+
<h3 id="notes">Release notes</h3>
|
|
204
|
+
<ScrollArea labelledBy="notes">…</ScrollArea>
|
|
205
205
|
</SlottedProvider>;
|
|
206
206
|
```
|
package/dist/docs/section.json
CHANGED
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"title": "Playground",
|
|
278
278
|
"note": "One section of a purchase order with every axis on it, driven by the controls below the canvas. It sits inside a page, so its rank is h2 and its sticky header stops under the page chrome.",
|
|
279
279
|
"language": "tsx",
|
|
280
|
-
"source": "<Section>\n <SectionHeader>\n <SectionTitle>\n <SectionHeading>
|
|
280
|
+
"source": "<Section>\n <SectionHeader>\n <SectionTitle>\n <SectionHeading>Order items</SectionHeading>\n </SectionTitle>\n </SectionHeader>\n <SectionBody>…</SectionBody>\n</Section>;\n",
|
|
281
281
|
"verdict": "excerpt"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
"title": "Every part, written out",
|
|
286
286
|
"note": "The eyebrow with the count, the heading with a status tag beside it, the description under it, an action at the end of the heading’s row, and the body with the table. The section is a region named by its heading.",
|
|
287
287
|
"language": "tsx",
|
|
288
|
-
"source": "<Section divider id=\"itens\">\n <SectionHeader>\n <SectionTitle>\n <SectionEyebrow>36
|
|
288
|
+
"source": "<Section divider id=\"itens\">\n <SectionHeader>\n <SectionTitle>\n <SectionEyebrow>36 items</SectionEyebrow>\n <SectionHeading>Order items</SectionHeading>\n <SectionTags>\n <Badge size=\"sm\" tone=\"warning\">\n Pending\n </Badge>\n </SectionTags>\n <SectionDescription>Quantities per the accepted quote.</SectionDescription>\n </SectionTitle>\n <SectionActions>\n <Button size=\"sm\" variant=\"outline\">\n Exportar\n </Button>\n </SectionActions>\n </SectionHeader>\n <SectionBody>\n <Table>…</Table>\n </SectionBody>\n</Section>;\n",
|
|
289
289
|
"verdict": "excerpt"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"title": "The rank is the outline’s",
|
|
294
294
|
"note": "Three sections nested: h2 directly in the page, h3 inside it, h4 inside that — none of them told. level=\"5\" on the last one overrides the outline and typography warns in development about a skip.",
|
|
295
295
|
"language": "tsx",
|
|
296
|
-
"source": "<Section>\n <SectionHeading>Frota</SectionHeading>\n <SectionBody>\n <Section>\n <SectionHeading>
|
|
296
|
+
"source": "<Section>\n <SectionHeading>Frota</SectionHeading>\n <SectionBody>\n <Section>\n <SectionHeading>Heavy vehicles</SectionHeading>\n </Section>\n </SectionBody>\n</Section>;\n",
|
|
297
297
|
"verdict": "excerpt"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"title": "A section inside a section",
|
|
326
326
|
"note": "The fleet, its heavy vehicles, the tractors: three depths, three ranks. The outer heading is a label in small capitals; the inner ones are mixed case in the muted tone, the level read in case, size and tone. Every other rule reaches its part with a child combinator, so the outer header styles nothing else of the inner one.",
|
|
327
327
|
"language": "tsx",
|
|
328
|
-
"source": "<Section size=\"lg\">\n <SectionHeading>Frota</SectionHeading>\n <SectionBody>\n <Section>\n <SectionHeading>
|
|
328
|
+
"source": "<Section size=\"lg\">\n <SectionHeading>Frota</SectionHeading>\n <SectionBody>\n <Section>\n <SectionHeading>Heavy vehicles</SectionHeading>\n <SectionBody>\n <Section size=\"sm\">\n <SectionHeading>Tractor units</SectionHeading>\n </Section>\n </SectionBody>\n </Section>\n </SectionBody>\n</Section>;\n",
|
|
329
329
|
"verdict": "excerpt"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"title": "Content the family did not choose",
|
|
334
334
|
"note": "A nine-word heading wraps, a long eyebrow wraps in small capitals, a translated description keeps its measure, and a header with no actions leaves no vacancy at the end of the row.",
|
|
335
335
|
"language": "tsx",
|
|
336
|
-
"source": "<SectionHeading>\n
|
|
336
|
+
"source": "<SectionHeading>\n Approval, warranty, retreading, and environmentally appropriate disposal requirements for the\n tires supplied\n</SectionHeading>;\n",
|
|
337
337
|
"verdict": "excerpt"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"title": "What a reader hears",
|
|
358
358
|
"note": "A section with a heading is a region in the landmark list, named by the heading; one without a heading is a plain section, absent from it. Jump to a section by hash and it lands under the page chrome, not behind it.",
|
|
359
359
|
"language": "tsx",
|
|
360
|
-
"source": "<a href=\"#
|
|
360
|
+
"source": "<a href=\"#history\">Go to history</a>;\n",
|
|
361
361
|
"verdict": "excerpt"
|
|
362
362
|
}
|
|
363
363
|
]
|
package/dist/docs/section.md
CHANGED
|
@@ -17,7 +17,7 @@ Excerpt — not a complete module
|
|
|
17
17
|
<Section>
|
|
18
18
|
<SectionHeader>
|
|
19
19
|
<SectionTitle>
|
|
20
|
-
<SectionHeading>
|
|
20
|
+
<SectionHeading>Order items</SectionHeading>
|
|
21
21
|
</SectionTitle>
|
|
22
22
|
</SectionHeader>
|
|
23
23
|
<SectionBody>…</SectionBody>
|
|
@@ -89,14 +89,14 @@ Excerpt — not a complete module
|
|
|
89
89
|
<Section divider id="itens">
|
|
90
90
|
<SectionHeader>
|
|
91
91
|
<SectionTitle>
|
|
92
|
-
<SectionEyebrow>36
|
|
93
|
-
<SectionHeading>
|
|
92
|
+
<SectionEyebrow>36 items</SectionEyebrow>
|
|
93
|
+
<SectionHeading>Order items</SectionHeading>
|
|
94
94
|
<SectionTags>
|
|
95
95
|
<Badge size="sm" tone="warning">
|
|
96
|
-
|
|
96
|
+
Pending
|
|
97
97
|
</Badge>
|
|
98
98
|
</SectionTags>
|
|
99
|
-
<SectionDescription>
|
|
99
|
+
<SectionDescription>Quantities per the accepted quote.</SectionDescription>
|
|
100
100
|
</SectionTitle>
|
|
101
101
|
<SectionActions>
|
|
102
102
|
<Button size="sm" variant="outline">
|
|
@@ -121,7 +121,7 @@ Excerpt — not a complete module
|
|
|
121
121
|
<SectionHeading>Frota</SectionHeading>
|
|
122
122
|
<SectionBody>
|
|
123
123
|
<Section>
|
|
124
|
-
<SectionHeading>
|
|
124
|
+
<SectionHeading>Heavy vehicles</SectionHeading>
|
|
125
125
|
</Section>
|
|
126
126
|
</SectionBody>
|
|
127
127
|
</Section>;
|
|
@@ -170,10 +170,10 @@ Excerpt — not a complete module
|
|
|
170
170
|
<SectionHeading>Frota</SectionHeading>
|
|
171
171
|
<SectionBody>
|
|
172
172
|
<Section>
|
|
173
|
-
<SectionHeading>
|
|
173
|
+
<SectionHeading>Heavy vehicles</SectionHeading>
|
|
174
174
|
<SectionBody>
|
|
175
175
|
<Section size="sm">
|
|
176
|
-
<SectionHeading>
|
|
176
|
+
<SectionHeading>Tractor units</SectionHeading>
|
|
177
177
|
</Section>
|
|
178
178
|
</SectionBody>
|
|
179
179
|
</Section>
|
|
@@ -189,8 +189,8 @@ Excerpt — not a complete module
|
|
|
189
189
|
|
|
190
190
|
```tsx
|
|
191
191
|
<SectionHeading>
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
Approval, warranty, retreading, and environmentally appropriate disposal requirements for the
|
|
193
|
+
tires supplied
|
|
194
194
|
</SectionHeading>;
|
|
195
195
|
```
|
|
196
196
|
|
|
@@ -227,5 +227,5 @@ A section with a heading is a region in the landmark list, named by the heading;
|
|
|
227
227
|
Excerpt — not a complete module
|
|
228
228
|
|
|
229
229
|
```tsx
|
|
230
|
-
<a href="#
|
|
230
|
+
<a href="#history">Go to history</a>;
|
|
231
231
|
```
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"type": "boolean",
|
|
182
182
|
"defaultValue": "—",
|
|
183
183
|
"appliesTo": "SegmentedControl",
|
|
184
|
-
"description": "Enforced by the family, because a radio ignores readonly: the change is refused on the click a pointer and Space share, and the control keeps its
|
|
184
|
+
"description": "Enforced by the family, because a radio ignores readonly: the change is refused on the click a pointer and Space share, and the control keeps its colors and its tab stops"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"name": "invalid",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"The pattern is the WAI-ARIA APG’s Radio Group (w3.org/WAI/ARIA/apg/patterns/radio/), and its entire keyboard table is the platform’s: Tab lands on the checked segment or on the first when none is checked, Space checks the focused one, both pairs of arrows move focus and the choice together, the set wraps, and disabled segments are skipped — including the arrow directions of a right-to-left document.",
|
|
273
273
|
"A segment is a real input type=\"radio\" and not a button. Primer builds the row of buttons and pays one tab stop per segment where the pattern gives one for the set; Angular Material writes radiogroup around children carrying aria-pressed, which is a group whose role and children disagree. The family whose items are buttons is toggle-group, and the difference a reader feels is the arrows.",
|
|
274
274
|
"That is why the segments share a name, and why one is generated when none is written: grouping is by name within the form owner, so an unnamed set is not a set. The value reaches FormData with no wiring, which is what makes this the family for a choice a form submits.",
|
|
275
|
-
"The ring is drawn on the segment and put out on the radio that holds the focus, so the family never paints two rings in two
|
|
275
|
+
"The ring is drawn on the segment and put out on the radio that holds the focus, so the family never paints two rings in two colors. It sits on the segment’s own edge rather than off it, because the segments are flush inside the track and an offset ring would be drawn across the neighbour beside it.",
|
|
276
276
|
"Read-only has no platform answer for a radio, so it is enforced: the change is refused on the click a pointer and Space share, aria-readonly announces it, and the control keeps its tab stops and its full contrast — it must not be mistaken for an unavailable one.",
|
|
277
277
|
"The thumb is shorter than the control it lives in, so the radio reaches the track’s own edge and the target is the control’s height rather than the thumb’s. With the segment never narrower than 24 CSS pixels, WCAG 2.2 SC 2.5.8 holds at the smallest step and the tightest density.",
|
|
278
278
|
"Condensing hides the words and keeps them: the accessible name of every segment is the same whether the control has room for its labels or not."
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"title": "Playground",
|
|
357
357
|
"note": "One control with every axis on it, driven by the controls below the canvas. Tab into it once, then use the arrows: they move focus and the choice together, because the segments are radios.",
|
|
358
358
|
"language": "tsx",
|
|
359
|
-
"source": "<SegmentedControl aria-label=\"
|
|
359
|
+
"source": "<SegmentedControl aria-label=\"Chart period\" defaultValue=\"week\">\n <Segment value=\"day\">Day</Segment>\n <Segment value=\"week\">Week</Segment>\n <Segment value=\"month\">Month</Segment>\n</SegmentedControl>;\n",
|
|
360
360
|
"verdict": "excerpt"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
"title": "The three control steps",
|
|
365
365
|
"note": "Each step reads the control scale and the track measures its segments back from it, so the whole control is as tall as the text field and the button beside it at every size.",
|
|
366
366
|
"language": "tsx",
|
|
367
|
-
"source": "<SegmentedControl aria-label=\"
|
|
367
|
+
"source": "<SegmentedControl aria-label=\"View\" defaultValue=\"grid\" size=\"sm\">\n <Segment value=\"grid\">Grid</Segment>\n <Segment value=\"list\">List</Segment>\n</SegmentedControl>;\n",
|
|
368
368
|
"verdict": "excerpt"
|
|
369
369
|
},
|
|
370
370
|
{
|
|
@@ -372,13 +372,13 @@
|
|
|
372
372
|
"title": "Along the line, or down the page",
|
|
373
373
|
"note": "The thumb travels on whichever axis the segments do, and the platform moves the choice with both pairs of arrows because the set is radios sharing one name.",
|
|
374
374
|
"language": "tsx",
|
|
375
|
-
"source": "<SegmentedControl aria-label=\"
|
|
375
|
+
"source": "<SegmentedControl aria-label=\"Payment\" defaultValue=\"invoice\" orientation=\"vertical\">\n <Segment value=\"card\">Card</Segment>\n <Segment value=\"transfer\">Wire transfer</Segment>\n <Segment value=\"invoice\">ACH transfer</Segment>\n</SegmentedControl>;\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"id": "states",
|
|
380
380
|
"title": "Every state the contract declares",
|
|
381
|
-
"note": "Hover, focus, one segment unavailable, the whole control unavailable, read-only and invalid. Read-only keeps its
|
|
381
|
+
"note": "Hover, focus, one segment unavailable, the whole control unavailable, read-only and invalid. Read-only keeps its colors and refuses the change; only disabled loses them.",
|
|
382
382
|
"language": "tsx",
|
|
383
383
|
"source": "<SegmentedControl aria-label=\"Plano\" defaultValue=\"starter\">\n <Segment value=\"starter\">Inicial</Segment>\n <Segment value=\"team\">Equipe</Segment>\n <Segment disabled value=\"enterprise\">\n Corporativo\n </Segment>\n</SegmentedControl>;\n",
|
|
384
384
|
"verdict": "excerpt"
|
|
@@ -388,15 +388,15 @@
|
|
|
388
388
|
"title": "Marks without words",
|
|
389
389
|
"note": "A segment with only a mark draws square and takes its accessible name from an aria-label on its radio, which is the one thing the family cannot supply for a consumer’s own artwork.",
|
|
390
390
|
"language": "tsx",
|
|
391
|
-
"source": "<SegmentedControl aria-label=\"
|
|
391
|
+
"source": "<SegmentedControl aria-label=\"Alignment\" defaultValue=\"center\">\n <Segment aria-label=\"Start\" icon={<AlignStartIcon />} value=\"start\" />\n <Segment aria-label=\"Center\" icon={<AlignCenterIcon />} value=\"center\" />\n</SegmentedControl>;\n",
|
|
392
392
|
"verdict": "excerpt"
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
"id": "variants",
|
|
396
396
|
"title": "A track, or the words alone",
|
|
397
|
-
"note": "underline draws the same radio group as words: each as wide as itself, the chosen one in the text
|
|
397
|
+
"note": "underline draws the same radio group as words: each as wide as itself, the chosen one in the text color and underlined, the others muted. One tab stop, the arrows move the value, and inside a field the label names the set.",
|
|
398
398
|
"language": "tsx",
|
|
399
|
-
"source": "<SegmentedControl aria-label=\"
|
|
399
|
+
"source": "<SegmentedControl aria-label=\"Period\" defaultValue=\"month\" variant=\"underline\">\n <Segment value=\"day\">Day</Segment>\n <Segment value=\"week\">Week</Segment>\n <Segment value=\"month\">Month</Segment>\n</SegmentedControl>;\n",
|
|
400
400
|
"verdict": "excerpt"
|
|
401
401
|
},
|
|
402
402
|
{
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
"title": "Narrower than its words",
|
|
405
405
|
"note": "Below the width its labels need, a control told to condense keeps its marks and hides its words — hidden, never removed, so every segment is announced the same at every width.",
|
|
406
406
|
"language": "tsx",
|
|
407
|
-
"source": "<SegmentedControl aria-label=\"
|
|
407
|
+
"source": "<SegmentedControl aria-label=\"Report\" condense=\"icons\" defaultValue=\"table\">\n <Segment icon={<TableIcon />} value=\"table\">\n Table\n </Segment>\n <Segment icon={<ChartIcon />} value=\"chart\">\n Chart\n </Segment>\n</SegmentedControl>;\n",
|
|
408
408
|
"verdict": "excerpt"
|
|
409
409
|
},
|
|
410
410
|
{
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"title": "Content width, or the whole line",
|
|
413
413
|
"note": "Left alone every column is the widest label’s, which is the rule Carbon states; fullWidth spreads the same equal columns across the line it is given.",
|
|
414
414
|
"language": "tsx",
|
|
415
|
-
"source": "<SegmentedControl aria-label=\"
|
|
415
|
+
"source": "<SegmentedControl aria-label=\"Delivery\" defaultValue=\"afternoon\" fullWidth>\n <Segment value=\"morning\">Morning</Segment>\n <Segment value=\"afternoon\">Afternoon</Segment>\n <Segment value=\"evening\">Evening</Segment>\n</SegmentedControl>;\n",
|
|
416
416
|
"verdict": "excerpt"
|
|
417
417
|
},
|
|
418
418
|
{
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
"title": "Inside a field",
|
|
421
421
|
"note": "The control takes its step, its unavailable state and its description from the field around it, and gives the field back a control to name — the label points at the set, not at one segment.",
|
|
422
422
|
"language": "tsx",
|
|
423
|
-
"source": "<Field>\n <FieldLabel>
|
|
423
|
+
"source": "<Field>\n <FieldLabel>Invoice currency</FieldLabel>\n <SegmentedControl defaultValue=\"brl\" name=\"currency\">\n <Segment value=\"brl\">BRL</Segment>\n <Segment value=\"usd\">USD</Segment>\n </SegmentedControl>\n <FieldDescription>The conversion uses the exchange rate of the issue date.</FieldDescription>\n</Field>;\n",
|
|
424
424
|
"verdict": "excerpt"
|
|
425
425
|
},
|
|
426
426
|
{
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
"title": "Content the family did not choose",
|
|
437
437
|
"note": "A label longer than its column, a five-segment set in a narrow frame, and a right-to-left string inside a left-to-right page. Each clips at the ellipsis and keeps its whole text.",
|
|
438
438
|
"language": "tsx",
|
|
439
|
-
"source": "<SegmentedControl aria-label=\"
|
|
439
|
+
"source": "<SegmentedControl aria-label=\"Frequency\" defaultValue=\"now\" fullWidth>\n <Segment value=\"now\">Immediately</Segment>\n <Segment value=\"digest\">Once a day, in the evening digest</Segment>\n</SegmentedControl>;\n",
|
|
440
440
|
"verdict": "excerpt"
|
|
441
441
|
},
|
|
442
442
|
{
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"title": "Substituting a root, and setting the defaults once",
|
|
445
445
|
"note": "render hands the track every attribute it was going to write; the provider states the axes once for a whole application. The radio itself is fixed, and the page says why.",
|
|
446
446
|
"language": "tsx",
|
|
447
|
-
"source": "<SegmentedControlDefaultsProvider fullWidth size=\"sm\">\n <SegmentedControl aria-label=\"
|
|
447
|
+
"source": "<SegmentedControlDefaultsProvider fullWidth size=\"sm\">\n <SegmentedControl aria-label=\"View\" render={(props) => <nav {...props} />}>\n <Segment value=\"grid\">Grid</Segment>\n </SegmentedControl>\n</SegmentedControlDefaultsProvider>;\n",
|
|
448
448
|
"verdict": "excerpt"
|
|
449
449
|
},
|
|
450
450
|
{
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
"title": "The keyboard, key by key",
|
|
453
453
|
"note": "Tab lands on the checked segment; both pairs of arrows move focus and the choice together and wrap at the ends; Space checks the focused one. Every row of it is the platform’s.",
|
|
454
454
|
"language": "tsx",
|
|
455
|
-
"source": "<SegmentedControl aria-label=\"
|
|
455
|
+
"source": "<SegmentedControl aria-label=\"Shipping\">\n <Segment value=\"standard\">Standard</Segment>\n <Segment value=\"express\">Express</Segment>\n</SegmentedControl>;\n",
|
|
456
456
|
"verdict": "excerpt"
|
|
457
457
|
}
|
|
458
458
|
]
|