@slotted/angular 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/docs/AGENTS.snippet.md +1 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +20 -20
- package/docs/action-bar.md +28 -28
- package/docs/action-sheet.json +4 -4
- package/docs/action-sheet.md +12 -12
- package/docs/alert.json +10 -10
- package/docs/alert.md +16 -16
- package/docs/app-shell.examples.md +7 -7
- package/docs/app-shell.json +13 -13
- package/docs/app-shell.md +3 -3
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +10 -10
- package/docs/avatar.md +9 -9
- package/docs/badge.json +3 -3
- package/docs/badge.md +3 -3
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +1 -1
- package/docs/button-group.md +1 -1
- package/docs/button.json +11 -11
- package/docs/button.md +7 -7
- package/docs/calendar.json +4 -4
- package/docs/calendar.md +3 -3
- package/docs/card.json +2 -2
- package/docs/card.md +2 -2
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/chart.examples.md +32 -32
- package/docs/chart.json +33 -33
- package/docs/chart.md +4 -4
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +1 -1
- package/docs/code-block.md +1 -1
- package/docs/collapsible.json +11 -11
- package/docs/collapsible.md +19 -19
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +2 -2
- package/docs/combobox.md +2 -2
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +6 -6
- package/docs/currency-field.md +4 -4
- package/docs/dashboard-grid.json +1 -1
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +2 -2
- package/docs/data-grid.props.md +1 -1
- package/docs/date-field.json +3 -3
- package/docs/date-field.md +5 -5
- package/docs/date-picker.json +1 -1
- package/docs/date-range-picker.json +1 -1
- package/docs/datetime-field.json +4 -4
- package/docs/datetime-field.md +9 -9
- package/docs/datetime-picker.json +1 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +4 -4
- package/docs/datetime-range-picker.md +2 -2
- package/docs/description-list.json +5 -5
- package/docs/description-list.md +4 -4
- package/docs/detail-panel.json +10 -10
- package/docs/detail-panel.md +12 -12
- package/docs/dialog.examples.md +5 -5
- package/docs/dialog.json +10 -10
- package/docs/dialog.md +2 -2
- package/docs/dialog.props.md +2 -2
- package/docs/drawer.examples.md +13 -13
- package/docs/drawer.json +6 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +2 -2
- package/docs/field-group.json +6 -6
- package/docs/field-group.md +11 -11
- package/docs/field.examples.md +3 -3
- package/docs/field.json +4 -4
- package/docs/field.md +1 -1
- package/docs/form.json +8 -8
- package/docs/form.md +12 -12
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/async-feedback.md +2 -2
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +4 -4
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/index.md +2 -2
- package/docs/guidelines/layout-alignment.md +5 -5
- package/docs/guidelines/overviews.md +3 -3
- package/docs/guidelines/own-elements.md +7 -7
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +2 -2
- package/docs/icon.md +2 -2
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +23 -23
- package/docs/import-export-center.md +17 -17
- package/docs/inline-message.json +15 -15
- package/docs/inline-message.md +22 -22
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +2 -2
- package/docs/kbd.md +2 -2
- package/docs/link.json +6 -6
- package/docs/link.md +6 -6
- package/docs/list-item.json +1 -1
- package/docs/list-item.md +1 -1
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/message-scroller.json +1 -1
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +11 -11
- package/docs/message.md +17 -17
- package/docs/multi-select.json +1 -1
- package/docs/notification-center.json +16 -16
- package/docs/notification-center.md +18 -22
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +3 -3
- package/docs/otp-input.json +10 -10
- package/docs/otp-input.md +13 -13
- package/docs/page-header.json +9 -9
- package/docs/page-header.md +20 -22
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +3 -3
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +4 -4
- package/docs/progress-indicator.md +4 -4
- package/docs/prompt-composer.json +4 -4
- package/docs/prompt-composer.md +5 -5
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +23 -23
- package/docs/rating.md +25 -34
- package/docs/result-state.json +12 -12
- package/docs/result-state.md +17 -17
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +5 -5
- package/docs/scroll-area.md +6 -6
- package/docs/section.json +6 -6
- package/docs/section.md +12 -12
- package/docs/segmented-control.json +14 -14
- package/docs/segmented-control.md +32 -32
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +3 -3
- package/docs/skills/compose-screen/SKILL.md +2 -2
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +3 -3
- package/docs/skills/theme-app/SKILL.md +9 -9
- package/docs/skills/waiting-states/SKILL.md +1 -1
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +8 -8
- package/docs/sparkline.md +6 -6
- package/docs/split-button.json +11 -11
- package/docs/split-button.md +25 -27
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +3 -3
- package/docs/stat-card.md +2 -2
- package/docs/status-indicator.json +8 -8
- package/docs/status-indicator.md +5 -5
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +11 -11
- package/docs/table-of-contents.md +12 -12
- package/docs/table.examples.md +1 -1
- package/docs/table.json +1 -1
- package/docs/tabs.json +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tag.json +17 -17
- package/docs/tag.md +14 -14
- package/docs/tags-input.json +1 -1
- package/docs/tags-input.md +1 -1
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +4 -4
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +3 -3
- package/docs/time-field.json +3 -3
- package/docs/time-field.md +6 -6
- package/docs/time-picker.json +5 -5
- package/docs/time-picker.md +6 -6
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +5 -5
- package/docs/time-range-picker.md +1 -1
- package/docs/toast.json +6 -6
- package/docs/toast.md +6 -6
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +15 -15
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +3 -3
- package/docs/tooltip.md +3 -3
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +9 -9
- package/docs/tour.md +6 -6
- package/docs/typography.json +2 -2
- package/docs/typography.md +2 -2
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-alert.mjs +2 -2
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +10 -10
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +3 -3
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +1 -1
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +1 -1
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +2 -2
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +1 -1
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +1 -1
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +6 -6
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +3 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +3 -3
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +3 -3
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +1 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +2 -2
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +6 -6
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +2 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +1 -1
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +3 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +4 -4
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +3 -3
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +1 -1
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +2 -2
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +3 -3
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +1 -1
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +2 -2
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +5 -5
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +3 -3
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +2 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +2 -2
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +1 -1
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +2 -2
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +3 -3
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +1 -1
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +6 -6
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +15 -3
- package/types/slotted-angular-alert.d.ts +3 -3
- package/types/slotted-angular-app-shell.d.ts +4 -4
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar.d.ts +6 -6
- package/types/slotted-angular-badge.d.ts +3 -3
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +2 -2
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-chart.d.ts +2 -2
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +1 -1
- package/types/slotted-angular-data-grid.d.ts +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
- package/types/slotted-angular-description-list.d.ts +1 -1
- package/types/slotted-angular-field.d.ts +2 -2
- package/types/slotted-angular-form.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts +2 -2
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-inline-message.d.ts +3 -3
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-menu.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts +4 -4
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-rating.d.ts +2 -2
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-status-indicator.d.ts +2 -2
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-table.d.ts +1 -1
- package/types/slotted-angular-tabs.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts +3 -3
- package/types/slotted-angular-tags-input.d.ts +1 -1
- package/types/slotted-angular-theme.d.ts +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +1 -1
- package/types/slotted-angular-toast.d.ts +4 -4
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-wizard.d.ts +1 -1
package/docs/scroll-area.json
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"type": "'auto' | 'stable' | 'both-edges'",
|
|
83
83
|
"defaultValue": "stable",
|
|
84
84
|
"appliesTo": "[slScrollArea]",
|
|
85
|
-
"description": "scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column
|
|
85
|
+
"description": "scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centerd"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"name": "fade",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"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.",
|
|
202
202
|
"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.",
|
|
203
203
|
"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.",
|
|
204
|
-
"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
|
|
204
|
+
"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.",
|
|
205
205
|
"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."
|
|
206
206
|
]
|
|
207
207
|
}
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"title": "A bounded region, and the platform’s own bar",
|
|
228
228
|
"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.",
|
|
229
229
|
"language": "html",
|
|
230
|
-
"source": "<div slScrollArea class=\"notes\" [messages]=\"{ label: '
|
|
230
|
+
"source": "<div slScrollArea class=\"notes\" [messages]=\"{ label: 'Release notes' }\">\n <div slScrollAreaContent>…</div>\n</div>\n",
|
|
231
231
|
"verdict": "excerpt"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
{
|
|
258
258
|
"id": "gutter",
|
|
259
259
|
"title": "Room for a bar that is not there yet",
|
|
260
|
-
"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
|
|
260
|
+
"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.",
|
|
261
261
|
"language": "html",
|
|
262
262
|
"source": "<div slScrollArea gutter=\"both-edges\">…</div>\n",
|
|
263
263
|
"verdict": "excerpt"
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
"title": "What a screen reader is told",
|
|
316
316
|
"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.",
|
|
317
317
|
"language": "html",
|
|
318
|
-
"source": "<h3 id=\"
|
|
318
|
+
"source": "<h3 id=\"notes\">Release notes</h3>\n<div slScrollArea labelledBy=\"notes\">…</div>\n",
|
|
319
319
|
"verdict": "excerpt"
|
|
320
320
|
}
|
|
321
321
|
]
|
package/docs/scroll-area.md
CHANGED
|
@@ -16,7 +16,7 @@ Selector: `[slScrollArea]` · exportAs: `slScrollArea`
|
|
|
16
16
|
Excerpt — not a complete module
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
|
-
<div slScrollArea class="notes" [messages]="{ label: '
|
|
19
|
+
<div slScrollArea class="notes" [messages]="{ label: 'Release notes' }">
|
|
20
20
|
<div slScrollAreaContent>…</div>
|
|
21
21
|
</div>
|
|
22
22
|
```
|
|
@@ -35,7 +35,7 @@ Excerpt — not a complete module
|
|
|
35
35
|
| --- | --- | --- | --- | --- |
|
|
36
36
|
| `axis` | `'block' \| 'inline' \| 'both'` | block | [slScrollArea] | Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary |
|
|
37
37
|
| `scrollbars` | `'auto' \| 'always' \| 'hover' \| 'none'` | auto | [slScrollArea] | What the bar does: shown when needed, always reserved, painted only under a hand or the keyboard, or removed with the scrolling kept |
|
|
38
|
-
| `gutter` | `'auto' \| 'stable' \| 'both-edges'` | stable | [slScrollArea] | scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column
|
|
38
|
+
| `gutter` | `'auto' \| 'stable' \| 'both-edges'` | stable | [slScrollArea] | scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centerd |
|
|
39
39
|
| `fade` | `'both' \| 'end' \| 'none'` | both | [slScrollArea] | Where the veil is drawn: over what the reader has passed as well as what is ahead, only what is ahead, or nowhere |
|
|
40
40
|
| `overscroll` | `'contain' \| 'auto' \| 'none'` | contain | [slScrollArea] | overscroll-behavior. contain keeps the last inch of scroll from moving the page behind the area |
|
|
41
41
|
| `maxBlockSize` | `string` | — | [slScrollArea] | 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
|
|
|
@@ -191,6 +191,6 @@ The first area overflows and is a named region with a tab stop; the second fits
|
|
|
191
191
|
Excerpt — not a complete module
|
|
192
192
|
|
|
193
193
|
```html
|
|
194
|
-
<h3 id="
|
|
195
|
-
<div slScrollArea labelledBy="
|
|
194
|
+
<h3 id="notes">Release notes</h3>
|
|
195
|
+
<div slScrollArea labelledBy="notes">…</div>
|
|
196
196
|
```
|
package/docs/section.json
CHANGED
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"title": "Playground",
|
|
280
280
|
"note": "One section of a purchase order with every input 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.",
|
|
281
281
|
"language": "html",
|
|
282
|
-
"source": "<section slSection>\n <div slSectionHeader>\n <div slSectionTitle><h2 slSectionHeading>
|
|
282
|
+
"source": "<section slSection>\n <div slSectionHeader>\n <div slSectionTitle><h2 slSectionHeading>Order items</h2></div>\n </div>\n <div slSectionBody>…</div>\n</section>\n",
|
|
283
283
|
"verdict": "excerpt"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"title": "Every part, written out",
|
|
288
288
|
"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.",
|
|
289
289
|
"language": "html",
|
|
290
|
-
"source": "<section slSection divider id=\"itens\">\n <div slSectionHeader>\n <div slSectionTitle>\n <span slSectionEyebrow>36 itens</span>\n <h2 slSectionHeading>
|
|
290
|
+
"source": "<section slSection divider id=\"itens\">\n <div slSectionHeader>\n <div slSectionTitle>\n <span slSectionEyebrow>36 itens</span>\n <h2 slSectionHeading>Order items</h2>\n <div slSectionTags><span slBadge size=\"sm\" tone=\"warning\">Pending</span></div>\n <p slSectionDescription>Quantities per the accepted quote.</p>\n </div>\n <div slSectionActions><button slButton size=\"sm\" variant=\"outline\">Export</button></div>\n </div>\n <div slSectionBody><div slTable>…</div></div>\n</section>\n",
|
|
291
291
|
"verdict": "excerpt"
|
|
292
292
|
},
|
|
293
293
|
{
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
"title": "The rank is the outline’s",
|
|
296
296
|
"note": "Three sections nested with div headings: role=\"heading\" at level 2 directly in the page, 3 inside it, 4 inside that — none of them told. level=\"5\" on the last one overrides the outline.",
|
|
297
297
|
"language": "html",
|
|
298
|
-
"source": "<section slSection>\n <div slSectionHeading>
|
|
298
|
+
"source": "<section slSection>\n <div slSectionHeading>Fleet</div>\n <div slSectionBody>\n <section slSection><div slSectionHeading>Heavy vehicles</div></section>\n </div>\n</section>\n",
|
|
299
299
|
"verdict": "excerpt"
|
|
300
300
|
},
|
|
301
301
|
{
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"title": "A section inside a section",
|
|
328
328
|
"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.",
|
|
329
329
|
"language": "html",
|
|
330
|
-
"source": "<section slSection size=\"lg\">\n <div slSectionHeading>Frota</div>\n <div slSectionBody>\n <section slSection>\n <div slSectionHeading>
|
|
330
|
+
"source": "<section slSection size=\"lg\">\n <div slSectionHeading>Frota</div>\n <div slSectionBody>\n <section slSection>\n <div slSectionHeading>Heavy vehicles</div>\n <div slSectionBody>\n <section slSection size=\"sm\"><div slSectionHeading>Tractor units</div></section>\n </div>\n </section>\n </div>\n</section>\n",
|
|
331
331
|
"verdict": "excerpt"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"title": "Content the family did not choose",
|
|
336
336
|
"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.",
|
|
337
337
|
"language": "html",
|
|
338
|
-
"source": "<h2 slSectionHeading>\n
|
|
338
|
+
"source": "<h2 slSectionHeading>\n Approval, warranty, retreading and environmentally appropriate disposal requirements for the\n supplied tires\n</h2>\n",
|
|
339
339
|
"verdict": "excerpt"
|
|
340
340
|
},
|
|
341
341
|
{
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"title": "What a reader hears",
|
|
360
360
|
"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.",
|
|
361
361
|
"language": "html",
|
|
362
|
-
"source": "<a slLink href=\"#
|
|
362
|
+
"source": "<a slLink href=\"#history\">Go to history</a>\n",
|
|
363
363
|
"verdict": "excerpt"
|
|
364
364
|
}
|
|
365
365
|
]
|
package/docs/section.md
CHANGED
|
@@ -18,7 +18,7 @@ Excerpt — not a complete module
|
|
|
18
18
|
```html
|
|
19
19
|
<section slSection>
|
|
20
20
|
<div slSectionHeader>
|
|
21
|
-
<div slSectionTitle><h2 slSectionHeading>
|
|
21
|
+
<div slSectionTitle><h2 slSectionHeading>Order items</h2></div>
|
|
22
22
|
</div>
|
|
23
23
|
<div slSectionBody>…</div>
|
|
24
24
|
</section>
|
|
@@ -90,11 +90,11 @@ Excerpt — not a complete module
|
|
|
90
90
|
<div slSectionHeader>
|
|
91
91
|
<div slSectionTitle>
|
|
92
92
|
<span slSectionEyebrow>36 itens</span>
|
|
93
|
-
<h2 slSectionHeading>
|
|
94
|
-
<div slSectionTags><span slBadge size="sm" tone="warning">
|
|
95
|
-
<p slSectionDescription>
|
|
93
|
+
<h2 slSectionHeading>Order items</h2>
|
|
94
|
+
<div slSectionTags><span slBadge size="sm" tone="warning">Pending</span></div>
|
|
95
|
+
<p slSectionDescription>Quantities per the accepted quote.</p>
|
|
96
96
|
</div>
|
|
97
|
-
<div slSectionActions><button slButton size="sm" variant="outline">
|
|
97
|
+
<div slSectionActions><button slButton size="sm" variant="outline">Export</button></div>
|
|
98
98
|
</div>
|
|
99
99
|
<div slSectionBody><div slTable>…</div></div>
|
|
100
100
|
</section>
|
|
@@ -108,9 +108,9 @@ Excerpt — not a complete module
|
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
110
|
<section slSection>
|
|
111
|
-
<div slSectionHeading>
|
|
111
|
+
<div slSectionHeading>Fleet</div>
|
|
112
112
|
<div slSectionBody>
|
|
113
|
-
<section slSection><div slSectionHeading>
|
|
113
|
+
<section slSection><div slSectionHeading>Heavy vehicles</div></section>
|
|
114
114
|
</div>
|
|
115
115
|
</section>
|
|
116
116
|
```
|
|
@@ -156,9 +156,9 @@ Excerpt — not a complete module
|
|
|
156
156
|
<div slSectionHeading>Frota</div>
|
|
157
157
|
<div slSectionBody>
|
|
158
158
|
<section slSection>
|
|
159
|
-
<div slSectionHeading>
|
|
159
|
+
<div slSectionHeading>Heavy vehicles</div>
|
|
160
160
|
<div slSectionBody>
|
|
161
|
-
<section slSection size="sm"><div slSectionHeading>
|
|
161
|
+
<section slSection size="sm"><div slSectionHeading>Tractor units</div></section>
|
|
162
162
|
</div>
|
|
163
163
|
</section>
|
|
164
164
|
</div>
|
|
@@ -173,8 +173,8 @@ Excerpt — not a complete module
|
|
|
173
173
|
|
|
174
174
|
```html
|
|
175
175
|
<h2 slSectionHeading>
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
Approval, warranty, retreading and environmentally appropriate disposal requirements for the
|
|
177
|
+
supplied tires
|
|
178
178
|
</h2>
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -207,5 +207,5 @@ A section with a heading is a region in the landmark list, named by the heading;
|
|
|
207
207
|
Excerpt — not a complete module
|
|
208
208
|
|
|
209
209
|
```html
|
|
210
|
-
<a slLink href="#
|
|
210
|
+
<a slLink href="#history">Go to history</a>
|
|
211
211
|
```
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"type": "boolean",
|
|
184
184
|
"defaultValue": "—",
|
|
185
185
|
"appliesTo": "slSegmentedControl",
|
|
186
|
-
"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
|
|
186
|
+
"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"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"name": "invalid",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"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.",
|
|
268
268
|
"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.",
|
|
269
269
|
"The role is withdrawn inside a field group, whose fieldset and legend already name the set, and a role the consumer wrote on the host survives both — it is read with HostAttributeToken before the host bindings write.",
|
|
270
|
-
"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
|
|
270
|
+
"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, because the segments are flush inside the track and an offset ring would be drawn across the neighbour beside it.",
|
|
271
271
|
"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. A refused change also puts the neighbour back, because the platform restores only the element that was clicked.",
|
|
272
272
|
"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."
|
|
273
273
|
]
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"title": "Playground",
|
|
351
351
|
"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.",
|
|
352
352
|
"language": "html",
|
|
353
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
353
|
+
"source": "<div slSegmentedControl aria-label=\"Chart period\" defaultValue=\"week\">\n <label slSegment value=\"day\">Day</label>\n <label slSegment value=\"week\">Week</label>\n <label slSegment value=\"month\">Month</label>\n</div>\n",
|
|
354
354
|
"verdict": "excerpt"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"title": "The three control steps",
|
|
359
359
|
"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.",
|
|
360
360
|
"language": "html",
|
|
361
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
361
|
+
"source": "<div slSegmentedControl aria-label=\"View\" size=\"sm\" defaultValue=\"grid\">\n <label slSegment value=\"grid\">Grid</label>\n <label slSegment value=\"list\">List</label>\n</div>\n",
|
|
362
362
|
"verdict": "excerpt"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
@@ -366,13 +366,13 @@
|
|
|
366
366
|
"title": "Along the line, or down the page",
|
|
367
367
|
"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.",
|
|
368
368
|
"language": "html",
|
|
369
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
369
|
+
"source": "<div slSegmentedControl aria-label=\"Payment\" orientation=\"vertical\" defaultValue=\"invoice\">\n <label slSegment value=\"card\">Card</label>\n <label slSegment value=\"invoice\">ACH transfer</label>\n</div>\n",
|
|
370
370
|
"verdict": "excerpt"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
"id": "states",
|
|
374
374
|
"title": "Every state the contract declares",
|
|
375
|
-
"note": "Hover, focus, one segment unavailable, the whole control unavailable, read-only and invalid. Read-only keeps its
|
|
375
|
+
"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.",
|
|
376
376
|
"language": "html",
|
|
377
377
|
"source": "<div slSegmentedControl aria-label=\"Plano\" defaultValue=\"starter\">\n <label slSegment value=\"starter\">Inicial</label>\n <label slSegment value=\"enterprise\" disabled>Corporativo</label>\n</div>\n",
|
|
378
378
|
"verdict": "excerpt"
|
|
@@ -382,15 +382,15 @@
|
|
|
382
382
|
"title": "Marks without words",
|
|
383
383
|
"note": "A segment with only a mark draws square and takes its accessible name from an aria-label, which the family reads from the host and writes onto the radio that holds the focus.",
|
|
384
384
|
"language": "html",
|
|
385
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
385
|
+
"source": "<div slSegmentedControl aria-label=\"Alignment\" defaultValue=\"center\">\n <label slSegment value=\"start\" aria-label=\"Start\">\n <ng-icon slSegmentIcon name=\"lucideAlignLeft\" />\n </label>\n</div>\n",
|
|
386
386
|
"verdict": "excerpt"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"id": "variants",
|
|
390
390
|
"title": "A track, or the words alone",
|
|
391
|
-
"note": "underline draws the same radio group as words: each as wide as itself, the chosen one in the text
|
|
391
|
+
"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.",
|
|
392
392
|
"language": "html",
|
|
393
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
393
|
+
"source": "<div slSegmentedControl aria-label=\"Period\" defaultValue=\"month\" variant=\"underline\">\n <label slSegment value=\"day\">Day</label>\n <label slSegment value=\"week\">Week</label>\n <label slSegment value=\"month\">Month</label>\n</div>\n",
|
|
394
394
|
"verdict": "excerpt"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
"title": "Narrower than its words",
|
|
399
399
|
"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.",
|
|
400
400
|
"language": "html",
|
|
401
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
401
|
+
"source": "<div slSegmentedControl aria-label=\"Report\" condense=\"icons\" defaultValue=\"table\">\n <label slSegment value=\"table\">\n <ng-icon slSegmentIcon name=\"lucideTable\" />\n Tabela\n </label>\n</div>\n",
|
|
402
402
|
"verdict": "excerpt"
|
|
403
403
|
},
|
|
404
404
|
{
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
"title": "Content width, or the whole line",
|
|
407
407
|
"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.",
|
|
408
408
|
"language": "html",
|
|
409
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
409
|
+
"source": "<div slSegmentedControl aria-label=\"Delivery\" fullWidth defaultValue=\"afternoon\">\n <label slSegment value=\"morning\">Morning</label>\n <label slSegment value=\"afternoon\">Afternoon</label>\n</div>\n",
|
|
410
410
|
"verdict": "excerpt"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"title": "Inside a field",
|
|
415
415
|
"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.",
|
|
416
416
|
"language": "html",
|
|
417
|
-
"source": "<div slField>\n <label slFieldLabel>
|
|
417
|
+
"source": "<div slField>\n <label slFieldLabel>Invoice currency</label>\n <div slSegmentedControl name=\"currency\" defaultValue=\"brl\">\n <label slSegment value=\"brl\">BRL</label>\n <label slSegment value=\"usd\">USD</label>\n </div>\n <p slFieldDescription>The conversion uses the exchange rate on the issue date.</p>\n</div>\n",
|
|
418
418
|
"verdict": "excerpt"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
"title": "Content the family did not choose",
|
|
431
431
|
"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.",
|
|
432
432
|
"language": "html",
|
|
433
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
433
|
+
"source": "<div slSegmentedControl aria-label=\"Frequency\" fullWidth defaultValue=\"now\">\n <label slSegment value=\"now\">Immediately</label>\n <label slSegment value=\"digest\">Once a day, in the evening digest</label>\n</div>\n",
|
|
434
434
|
"verdict": "excerpt"
|
|
435
435
|
},
|
|
436
436
|
{
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"title": "The keyboard, key by key",
|
|
447
447
|
"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.",
|
|
448
448
|
"language": "html",
|
|
449
|
-
"source": "<div slSegmentedControl aria-label=\"
|
|
449
|
+
"source": "<div slSegmentedControl aria-label=\"Shipping\">\n <label slSegment value=\"standard\">Standard</label>\n <label slSegment value=\"express\">Express</label>\n</div>\n",
|
|
450
450
|
"verdict": "excerpt"
|
|
451
451
|
}
|
|
452
452
|
]
|
|
@@ -21,10 +21,10 @@ Selector: `[slSegmentedControl]` · exportAs: `slSegmentedControl`
|
|
|
21
21
|
Excerpt — not a complete module
|
|
22
22
|
|
|
23
23
|
```html
|
|
24
|
-
<div slSegmentedControl aria-label="
|
|
25
|
-
<label slSegment value="day">
|
|
26
|
-
<label slSegment value="week">
|
|
27
|
-
<label slSegment value="month">
|
|
24
|
+
<div slSegmentedControl aria-label="Chart period" defaultValue="week">
|
|
25
|
+
<label slSegment value="day">Day</label>
|
|
26
|
+
<label slSegment value="week">Week</label>
|
|
27
|
+
<label slSegment value="month">Month</label>
|
|
28
28
|
</div>
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -52,7 +52,7 @@ Excerpt — not a complete module
|
|
|
52
52
|
| `condense` | `'none' \| 'icons'` | none | slSegmentedControl | What the control does when it is narrower than its labels need. icons keeps the marks and hides the words, and makes the control take its parent’s width so there is a width to ask a question about |
|
|
53
53
|
| `fullWidth` | `boolean` | false | slSegmentedControl | Whether the equal columns spread across the whole line. Left alone every column is the widest label’s |
|
|
54
54
|
| `disabled` | `boolean` | false | slSegmentedControl | Unstated rather than false, so the control defers to the field around it and to a form that disables it. Stated, it reaches every radio as the native attribute |
|
|
55
|
-
| `readOnly` | `boolean` | — | slSegmentedControl | 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
|
|
55
|
+
| `readOnly` | `boolean` | — | slSegmentedControl | 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 |
|
|
56
56
|
| `invalid` | `boolean` | — | slSegmentedControl | Writes aria-invalid and data-invalid, and points the focus ring at the danger step so the outline and its shadow move together |
|
|
57
57
|
| `required` | `boolean` | — | slSegmentedControl | Writes aria-required on the control, and is what validate() answers for the set: “choose one” is a fact about the group and not about any one segment |
|
|
58
58
|
| `value, on slSegment` | `string` | — | slSegment | What this segment selects, and what the control’s value holds. It is required: a segment with no value is a choice a reader cannot make |
|
|
@@ -84,7 +84,7 @@ Excerpt — not a complete module
|
|
|
84
84
|
- 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.
|
|
85
85
|
- 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.
|
|
86
86
|
- The role is withdrawn inside a field group, whose fieldset and legend already name the set, and a role the consumer wrote on the host survives both — it is read with HostAttributeToken before the host bindings write.
|
|
87
|
-
- 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
|
|
87
|
+
- 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, because the segments are flush inside the track and an offset ring would be drawn across the neighbour beside it.
|
|
88
88
|
- 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. A refused change also puts the neighbour back, because the platform restores only the element that was clicked.
|
|
89
89
|
- 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.
|
|
90
90
|
|
|
@@ -101,9 +101,9 @@ Each step reads the control scale and the track measures its segments back from
|
|
|
101
101
|
Excerpt — not a complete module
|
|
102
102
|
|
|
103
103
|
```html
|
|
104
|
-
<div slSegmentedControl aria-label="
|
|
105
|
-
<label slSegment value="grid">
|
|
106
|
-
<label slSegment value="list">
|
|
104
|
+
<div slSegmentedControl aria-label="View" size="sm" defaultValue="grid">
|
|
105
|
+
<label slSegment value="grid">Grid</label>
|
|
106
|
+
<label slSegment value="list">List</label>
|
|
107
107
|
</div>
|
|
108
108
|
```
|
|
109
109
|
|
|
@@ -114,15 +114,15 @@ The thumb travels on whichever axis the segments do, and the platform moves the
|
|
|
114
114
|
Excerpt — not a complete module
|
|
115
115
|
|
|
116
116
|
```html
|
|
117
|
-
<div slSegmentedControl aria-label="
|
|
118
|
-
<label slSegment value="card">
|
|
119
|
-
<label slSegment value="invoice">
|
|
117
|
+
<div slSegmentedControl aria-label="Payment" orientation="vertical" defaultValue="invoice">
|
|
118
|
+
<label slSegment value="card">Card</label>
|
|
119
|
+
<label slSegment value="invoice">ACH transfer</label>
|
|
120
120
|
</div>
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
### Every state the contract declares
|
|
124
124
|
|
|
125
|
-
Hover, focus, one segment unavailable, the whole control unavailable, read-only and invalid. Read-only keeps its
|
|
125
|
+
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.
|
|
126
126
|
|
|
127
127
|
Excerpt — not a complete module
|
|
128
128
|
|
|
@@ -140,8 +140,8 @@ A segment with only a mark draws square and takes its accessible name from an ar
|
|
|
140
140
|
Excerpt — not a complete module
|
|
141
141
|
|
|
142
142
|
```html
|
|
143
|
-
<div slSegmentedControl aria-label="
|
|
144
|
-
<label slSegment value="start" aria-label="
|
|
143
|
+
<div slSegmentedControl aria-label="Alignment" defaultValue="center">
|
|
144
|
+
<label slSegment value="start" aria-label="Start">
|
|
145
145
|
<ng-icon slSegmentIcon name="lucideAlignLeft" />
|
|
146
146
|
</label>
|
|
147
147
|
</div>
|
|
@@ -149,15 +149,15 @@ Excerpt — not a complete module
|
|
|
149
149
|
|
|
150
150
|
### A track, or the words alone
|
|
151
151
|
|
|
152
|
-
underline draws the same radio group as words: each as wide as itself, the chosen one in the text
|
|
152
|
+
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.
|
|
153
153
|
|
|
154
154
|
Excerpt — not a complete module
|
|
155
155
|
|
|
156
156
|
```html
|
|
157
|
-
<div slSegmentedControl aria-label="
|
|
158
|
-
<label slSegment value="day">
|
|
159
|
-
<label slSegment value="week">
|
|
160
|
-
<label slSegment value="month">
|
|
157
|
+
<div slSegmentedControl aria-label="Period" defaultValue="month" variant="underline">
|
|
158
|
+
<label slSegment value="day">Day</label>
|
|
159
|
+
<label slSegment value="week">Week</label>
|
|
160
|
+
<label slSegment value="month">Month</label>
|
|
161
161
|
</div>
|
|
162
162
|
```
|
|
163
163
|
|
|
@@ -168,7 +168,7 @@ Below the width its labels need, a control told to condense keeps its marks and
|
|
|
168
168
|
Excerpt — not a complete module
|
|
169
169
|
|
|
170
170
|
```html
|
|
171
|
-
<div slSegmentedControl aria-label="
|
|
171
|
+
<div slSegmentedControl aria-label="Report" condense="icons" defaultValue="table">
|
|
172
172
|
<label slSegment value="table">
|
|
173
173
|
<ng-icon slSegmentIcon name="lucideTable" />
|
|
174
174
|
Tabela
|
|
@@ -183,9 +183,9 @@ Left alone every column is the widest label’s, which is the rule Carbon states
|
|
|
183
183
|
Excerpt — not a complete module
|
|
184
184
|
|
|
185
185
|
```html
|
|
186
|
-
<div slSegmentedControl aria-label="
|
|
187
|
-
<label slSegment value="morning">
|
|
188
|
-
<label slSegment value="afternoon">
|
|
186
|
+
<div slSegmentedControl aria-label="Delivery" fullWidth defaultValue="afternoon">
|
|
187
|
+
<label slSegment value="morning">Morning</label>
|
|
188
|
+
<label slSegment value="afternoon">Afternoon</label>
|
|
189
189
|
</div>
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -197,12 +197,12 @@ Excerpt — not a complete module
|
|
|
197
197
|
|
|
198
198
|
```html
|
|
199
199
|
<div slField>
|
|
200
|
-
<label slFieldLabel>
|
|
200
|
+
<label slFieldLabel>Invoice currency</label>
|
|
201
201
|
<div slSegmentedControl name="currency" defaultValue="brl">
|
|
202
202
|
<label slSegment value="brl">BRL</label>
|
|
203
203
|
<label slSegment value="usd">USD</label>
|
|
204
204
|
</div>
|
|
205
|
-
<p slFieldDescription>
|
|
205
|
+
<p slFieldDescription>The conversion uses the exchange rate on the issue date.</p>
|
|
206
206
|
</div>
|
|
207
207
|
```
|
|
208
208
|
|
|
@@ -226,9 +226,9 @@ A label longer than its column, a five-segment set in a narrow frame, and a righ
|
|
|
226
226
|
Excerpt — not a complete module
|
|
227
227
|
|
|
228
228
|
```html
|
|
229
|
-
<div slSegmentedControl aria-label="
|
|
230
|
-
<label slSegment value="now">
|
|
231
|
-
<label slSegment value="digest">
|
|
229
|
+
<div slSegmentedControl aria-label="Frequency" fullWidth defaultValue="now">
|
|
230
|
+
<label slSegment value="now">Immediately</label>
|
|
231
|
+
<label slSegment value="digest">Once a day, in the evening digest</label>
|
|
232
232
|
</div>
|
|
233
233
|
```
|
|
234
234
|
|
|
@@ -249,8 +249,8 @@ Tab lands on the checked segment; both pairs of arrows move focus and the choice
|
|
|
249
249
|
Excerpt — not a complete module
|
|
250
250
|
|
|
251
251
|
```html
|
|
252
|
-
<div slSegmentedControl aria-label="
|
|
253
|
-
<label slSegment value="standard">
|
|
254
|
-
<label slSegment value="express">
|
|
252
|
+
<div slSegmentedControl aria-label="Shipping">
|
|
253
|
+
<label slSegment value="standard">Standard</label>
|
|
254
|
+
<label slSegment value="express">Express</label>
|
|
255
255
|
</div>
|
|
256
256
|
```
|
package/docs/skeleton.json
CHANGED
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"The region carries aria-busy=\"true\" while it waits, which is the platform’s own answer: ARIA 1.2 asks an author to set it on the container before the first change and clear it when the last change is complete. There is no APG pattern for a skeleton — the index holds thirty patterns and none is this one.",
|
|
233
233
|
"One region is one announcement. A visually-hidden role=\"status\" holds the label while waiting and is emptied afterwards, and emptying a live region announces nothing, so twelve placeholders do not become twelve messages. loadedLabel opts into a second.",
|
|
234
234
|
"Under prefers-reduced-motion the loop stops rather than shortening: an infinite animation that hurries is still moving. animation=\"none\", set once through the provider, is the author-side mechanism WCAG 2.2 SC 2.2.2 asks for.",
|
|
235
|
-
"The placeholder is visible in all three
|
|
235
|
+
"The placeholder is visible in all three color schemes. The fill is the unavailable surface carried a little toward the text color, and a hairline rim takes over in high contrast, where that surface is the page’s own white."
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
},
|
package/docs/skeleton.md
CHANGED
|
@@ -74,7 +74,7 @@ Excerpt — not a complete module
|
|
|
74
74
|
- The region carries aria-busy="true" while it waits, which is the platform’s own answer: ARIA 1.2 asks an author to set it on the container before the first change and clear it when the last change is complete. There is no APG pattern for a skeleton — the index holds thirty patterns and none is this one.
|
|
75
75
|
- One region is one announcement. A visually-hidden role="status" holds the label while waiting and is emptied afterwards, and emptying a live region announces nothing, so twelve placeholders do not become twelve messages. loadedLabel opts into a second.
|
|
76
76
|
- Under prefers-reduced-motion the loop stops rather than shortening: an infinite animation that hurries is still moving. animation="none", set once through the provider, is the author-side mechanism WCAG 2.2 SC 2.2.2 asks for.
|
|
77
|
-
- The placeholder is visible in all three
|
|
77
|
+
- The placeholder is visible in all three color schemes. The fill is the unavailable surface carried a little toward the text color, and a hairline rim takes over in high contrast, where that surface is the page’s own white.
|
|
78
78
|
|
|
79
79
|
## Tokens
|
|
80
80
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: build-own-element
|
|
3
|
-
description: Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced
|
|
3
|
+
description: Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced colors and motion the families keep.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Build an element of the application's own
|
|
@@ -37,7 +37,7 @@ Fixed, read from the theme:
|
|
|
37
37
|
- a tone carries the meaning the `tone` group gives it, and a data series takes
|
|
38
38
|
the `data` slots in order;
|
|
39
39
|
- how its states yield, how focus is drawn, how large a target is, what forced
|
|
40
|
-
|
|
40
|
+
colors keep and how it moves (OE-02 to OE-07).
|
|
41
41
|
|
|
42
42
|
A new appearance is a new combination of tokens, never a new value.
|
|
43
43
|
|
|
@@ -85,6 +85,6 @@ why no token covers it (CP-05).
|
|
|
85
85
|
## 5. Done
|
|
86
86
|
|
|
87
87
|
1. Each `Check` of `../../guidelines/own-elements.md` passes.
|
|
88
|
-
2. The element's CSS holds no
|
|
88
|
+
2. The element's CSS holds no color or length literal without its comment.
|
|
89
89
|
3. Every custom property the element reads is listed in
|
|
90
90
|
`../../tokens.md` above "Read by their family only".
|
|
@@ -25,7 +25,7 @@ that fact.
|
|
|
25
25
|
| Lists records, searches, filters, pages | `list-pages.md` |
|
|
26
26
|
| Shows one record, its figures and its related records | `record-pages.md` |
|
|
27
27
|
| Creates or edits a record | `forms.md` |
|
|
28
|
-
|
|
|
28
|
+
| Summarizes a domain in figures and charts | `overviews.md` |
|
|
29
29
|
| Places a list beside a tree of its places | `browsing.md` |
|
|
30
30
|
| Reads records over a chosen period | `reports.md` |
|
|
31
31
|
| Writes or reads a rule the system runs later | `builders.md` |
|
|
@@ -75,7 +75,7 @@ element stands in that slot.
|
|
|
75
75
|
own state at once and renders the region from a deferred value (in React,
|
|
76
76
|
useDeferredValue or startTransition) (CP-09). A list longer than a hundred
|
|
77
77
|
rows is a `data-grid`, which windows its rows where it has a height of its
|
|
78
|
-
own and is served in pages below 600 pixels (LP-12, LP-14). Its columns, its disabled keys and a function row key are module constants or
|
|
78
|
+
own and is served in pages below 600 pixels (LP-12, LP-14). Its columns, its disabled keys and a function row key are module constants or memoized: a new one on a render of the screen renders every mounted row again. Its renderers, its messages and its tree may be written inline.
|
|
79
79
|
- An element of the screen's own made `position: sticky` stops under the
|
|
80
80
|
page's chrome: its offset starts at `--slotted-page-sticky-top`, and its
|
|
81
81
|
height cap subtracts it (LA-06). An offset from the scroller's edge alone
|
package/docs/skills/index.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Each skill, with when it applies. Read a skill before its task.
|
|
4
4
|
|
|
5
|
-
- build-own-element: `./build-own-element/SKILL.md` — Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced
|
|
5
|
+
- build-own-element: `./build-own-element/SKILL.md` — Use when writing a component, widget or visual element that no family of @slotted/angular draws — a timeline strip, a seat map, a heat grid, a bespoke control. Proves first that no family answers, then builds the element from the theme's tokens with the states, focus, target size, forced colors and motion the families keep.
|
|
6
6
|
- compose-screen: `./compose-screen/SKILL.md` — Use when writing or changing a screen of an application built with @slotted/angular — a list of records, the page of one record, a form that writes one, an overview, a report, a tree beside a list, a rule builder, a conversation or a ledger. Applies the Slotted guidelines in order and ends with each Check of the rules read.
|
|
7
7
|
- review-screen: `./review-screen/SKILL.md` — Use when reviewing, auditing or fixing an existing screen of an application built with @slotted/angular, or when asked whether a screen follows the Slotted guidelines. Reads the rules that apply, sweeps the screen's code for the defects found without running it, and reports each finding with its rule, level and place.
|
|
8
|
-
- theme-app: `./theme-app/SKILL.md` — Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand
|
|
8
|
+
- theme-app: `./theme-app/SKILL.md` — Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand color, a light, dark or high-contrast scheme, density, fonts, corners, or the shape of a control. Chooses the narrowest level that reaches the change — a seed, a token, a family token or a theme rule — and where it is declared.
|
|
9
9
|
- waiting-states: `./waiting-states/SKILL.md` — Use when building or reviewing anything a person waits in front of in an application built with @slotted/angular — placeholders, a control's own loading state, a loading overlay, a progress indicator, or the empty and error states beside them. Decides which indicator answers which wait and how placeholders are built from the anatomy they stand in for.
|