@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/alert.json
CHANGED
|
@@ -128,14 +128,14 @@
|
|
|
128
128
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
129
129
|
"defaultValue": "accent",
|
|
130
130
|
"appliesTo": "slAlert",
|
|
131
|
-
"description": "Which of the five semantic
|
|
131
|
+
"description": "Which of the five semantic colors the message speaks in, and which mark it draws: status-info, none for secondary, status-success, status-warning, status-danger"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"name": "variant",
|
|
135
135
|
"type": "'soft' | 'outline' | 'solid'",
|
|
136
136
|
"defaultValue": "soft",
|
|
137
137
|
"appliesTo": "slAlert",
|
|
138
|
-
"description": "How that
|
|
138
|
+
"description": "How that color is painted. soft carries the tone’s surface and its border, outline the border alone, solid the tone’s fill and the ink the theme measures against it"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"name": "reach",
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
"The applicable pattern is the WAI-ARIA APG Alert Pattern (w3.org/WAI/ARIA/apg/patterns/alert/). It declares one role and no keyboard interaction: an alert is not a widget, so it holds no keys. Its two prose requirements — that an alert must not affect keyboard focus, and must not disappear on its own — are what this family declines automatic focus and automatic dismissal for.",
|
|
250
250
|
"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 every alert worth shipping has a dismiss control. The directive belongs on a section, named by its own title through aria-labelledby, and the region that announces is the slAlertContent element, which holds the title and the description alone.",
|
|
251
251
|
"live defaults to off because the APG records that “screen readers do not inform users of alerts that are present on the page before page load completes”. An alert already on the page announces nothing whatever role it carries; polite and assertive are for a message that arrives while the reader is working, and both are written as a role that already implies aria-live and aria-atomic.",
|
|
252
|
-
"Every tone with a severity carries a mark as well as a
|
|
252
|
+
"Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color and the five borders one more, so the mark, and its absence on a note, is the only thing distinguishing an error from a note — WCAG 2.2 1.4.1.",
|
|
253
253
|
"The dismiss control is a real button with a real name and an inner control rather than a Button (R2): its box is the glyph plus a step of air on each side, floored at --slotted-target-min, which is the WCAG 2.2 2.5.8 minimum of 24 CSS pixels; at rest it has no frame and no ground, and hover moves only the ground.",
|
|
254
254
|
"When the message closes with focus inside it, the keyboard goes back to the element it came from. None of the ten surveyed implementations answers this, and the failure it prevents is the one a real product hits first: the dismiss control is destroyed, focus falls to the document body, and the next Tab starts again at the top of the page.",
|
|
255
255
|
"Closing hides rather than removes, so the live region is still in the document if the message comes back and data-open is a state a consumer can style. An application that must not pay for the hidden subtree writes its own @if and never uses defaultOpen.",
|
|
@@ -343,17 +343,17 @@
|
|
|
343
343
|
{
|
|
344
344
|
"id": "playground",
|
|
345
345
|
"title": "Playground",
|
|
346
|
-
"note": "One message with every axis on it, driven by the controls below the canvas. Change the tone and the mark changes with it, which is what makes the five distinguishable in
|
|
346
|
+
"note": "One message with every axis on it, driven by the controls below the canvas. Change the tone and the mark changes with it, which is what makes the five distinguishable in grayscale.",
|
|
347
347
|
"language": "html",
|
|
348
|
-
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>
|
|
348
|
+
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>Your subscription expires in three days</div>\n <p slAlertDescription>Renew to keep access for the team.</p>\n </div>\n</section>\n",
|
|
349
349
|
"verdict": "excerpt"
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
"id": "tones",
|
|
353
353
|
"title": "What the message is about",
|
|
354
|
-
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
354
|
+
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left.",
|
|
355
355
|
"language": "html",
|
|
356
|
-
"source": "<!-- accent is information, secondary a neutral note, success something\n finished, warning something needing attention, danger something failed. -->\n<section slAlert tone=\"danger\">\n <div slAlertContent>\n <div slAlertTitle>
|
|
356
|
+
"source": "<!-- accent is information, secondary a neutral note, success something\n finished, warning something needing attention, danger something failed. -->\n<section slAlert tone=\"danger\">\n <div slAlertContent>\n <div slAlertTitle>Could not save</div>\n </div>\n</section>\n",
|
|
357
357
|
"verdict": "excerpt"
|
|
358
358
|
},
|
|
359
359
|
{
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "How far the message reaches",
|
|
370
370
|
"note": "The guide’s three recipes as one axis: inline beside the thing it is about, section inside a page section, page across an application. A page banner loses its corners because it runs to both edges.",
|
|
371
371
|
"language": "html",
|
|
372
|
-
"source": "<section slAlert reach=\"inline\" tone=\"danger\">\n <div slAlertContent>\n <p slAlertDescription>
|
|
372
|
+
"source": "<section slAlert reach=\"inline\" tone=\"danger\">\n <div slAlertContent>\n <p slAlertDescription>Enter a valid EIN.</p>\n </div>\n</section>\n\n<section slAlert reach=\"page\" tone=\"warning\"></section>\n",
|
|
373
373
|
"verdict": "excerpt"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
"title": "What the message asks for",
|
|
386
386
|
"note": "The controls are the consumer’s own buttons, in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. They stack when the box is narrow. actionsPlacement=\"end\" puts them at the end of the message’s own line once the box is 40rem wide, which a page banner does by default. Each Button in the part takes the alert’s tone and the sm size; a Button that states its own tone or size keeps it. The first action is solid and every other one ghost; outline draws no fill over the alert’s ground and is not used here.",
|
|
387
387
|
"language": "html",
|
|
388
|
-
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>
|
|
388
|
+
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>Your subscription expires in three days</div>\n </div>\n <div slAlertActions>\n <button slButton type=\"button\">Renew</button>\n <button slButton variant=\"ghost\" type=\"button\">View plans</button>\n </div>\n</section>\n\n<section slAlert actionsPlacement=\"end\">\n <div slAlertContent>\n <p slAlertDescription>The suggestion changes three lines of the plan.</p>\n </div>\n <div slAlertActions>\n <button slButton type=\"button\">Apply</button>\n </div>\n</section>\n",
|
|
389
389
|
"verdict": "excerpt"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"title": "The landmark, the region and the keyboard",
|
|
418
418
|
"note": "Tab into the message and out of it: the box is a region a reader can jump to, the text is the only thing that announces, and closing the message puts the keyboard back where it came from.",
|
|
419
419
|
"language": "html",
|
|
420
|
-
"source": "<!-- A region landmark named \"
|
|
420
|
+
"source": "<!-- A region landmark named \"Maintenance\", holding a polite status region. -->\n<section slAlert live=\"polite\">\n <div slAlertContent>\n <div slAlertTitle>Maintenance</div>\n </div>\n</section>\n\n<!-- No title: a plain grouping element, and no landmark to jump to. -->\n<section slAlert>\n <div slAlertContent>Done.</div>\n</section>\n",
|
|
421
421
|
"verdict": "excerpt"
|
|
422
422
|
}
|
|
423
423
|
]
|
package/docs/alert.md
CHANGED
|
@@ -26,8 +26,8 @@ Excerpt — not a complete module
|
|
|
26
26
|
```html
|
|
27
27
|
<section slAlert tone="warning">
|
|
28
28
|
<div slAlertContent>
|
|
29
|
-
<div slAlertTitle>
|
|
30
|
-
<p slAlertDescription>
|
|
29
|
+
<div slAlertTitle>Your subscription expires in three days</div>
|
|
30
|
+
<p slAlertDescription>Renew to keep access for the team.</p>
|
|
31
31
|
</div>
|
|
32
32
|
</section>
|
|
33
33
|
```
|
|
@@ -48,8 +48,8 @@ Excerpt — not a complete module
|
|
|
48
48
|
|
|
49
49
|
| Name | Type | Default | Applies to | Description |
|
|
50
50
|
| --- | --- | --- | --- | --- |
|
|
51
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | slAlert | Which of the five semantic
|
|
52
|
-
| `variant` | `'soft' \| 'outline' \| 'solid'` | soft | slAlert | How that
|
|
51
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | slAlert | Which of the five semantic colors the message speaks in, and which mark it draws: status-info, none for secondary, status-success, status-warning, status-danger |
|
|
52
|
+
| `variant` | `'soft' \| 'outline' \| 'solid'` | soft | slAlert | How that color is painted. soft carries the tone’s surface and its border, outline the border alone, solid the tone’s fill and the ink the theme measures against it |
|
|
53
53
|
| `reach` | `'inline' \| 'section' \| 'page'` | section | slAlert | The scope the message applies to. inline is tightest and sits beside a field group; page loses its corners and its inline edges because it runs to both edges of what holds it |
|
|
54
54
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | slAlert | Whether the text announces itself. polite writes role="status" on the slAlertContent element and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
|
55
55
|
| `actionsPlacement` | `'below' \| 'end'` | end for reach='page', below otherwise | slAlert | Where the actions stand. below puts them on a row under the words; end puts them at the end of the words’ line, before the dismiss control, once the box is 40rem wide, and under the words below that width |
|
|
@@ -86,7 +86,7 @@ Excerpt — not a complete module
|
|
|
86
86
|
- The applicable pattern is the WAI-ARIA APG Alert Pattern (w3.org/WAI/ARIA/apg/patterns/alert/). It declares one role and no keyboard interaction: an alert is not a widget, so it holds no keys. Its two prose requirements — that an alert must not affect keyboard focus, and must not disappear on its own — are what this family declines automatic focus and automatic dismissal for.
|
|
87
87
|
- 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 every alert worth shipping has a dismiss control. The directive belongs on a section, named by its own title through aria-labelledby, and the region that announces is the slAlertContent element, which holds the title and the description alone.
|
|
88
88
|
- live defaults to off because the APG records that “screen readers do not inform users of alerts that are present on the page before page load completes”. An alert already on the page announces nothing whatever role it carries; polite and assertive are for a message that arrives while the reader is working, and both are written as a role that already implies aria-live and aria-atomic.
|
|
89
|
-
- Every tone with a severity carries a mark as well as a
|
|
89
|
+
- Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color and the five borders one more, so the mark, and its absence on a note, is the only thing distinguishing an error from a note — WCAG 2.2 1.4.1.
|
|
90
90
|
- The dismiss control is a real button with a real name and an inner control rather than a Button (R2): its box is the glyph plus a step of air on each side, floored at --slotted-target-min, which is the WCAG 2.2 2.5.8 minimum of 24 CSS pixels; at rest it has no frame and no ground, and hover moves only the ground.
|
|
91
91
|
- When the message closes with focus inside it, the keyboard goes back to the element it came from. None of the ten surveyed implementations answers this, and the failure it prevents is the one a real product hits first: the dismiss control is destroyed, focus falls to the document body, and the next Tab starts again at the top of the page.
|
|
92
92
|
- Closing hides rather than removes, so the live region is still in the document if the message comes back and data-open is a state a consumer can style. An application that must not pay for the hidden subtree writes its own @if and never uses defaultOpen.
|
|
@@ -100,7 +100,7 @@ Excerpt — not a complete module
|
|
|
100
100
|
|
|
101
101
|
### What the message is about
|
|
102
102
|
|
|
103
|
-
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
103
|
+
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left.
|
|
104
104
|
|
|
105
105
|
Excerpt — not a complete module
|
|
106
106
|
|
|
@@ -109,7 +109,7 @@ Excerpt — not a complete module
|
|
|
109
109
|
finished, warning something needing attention, danger something failed. -->
|
|
110
110
|
<section slAlert tone="danger">
|
|
111
111
|
<div slAlertContent>
|
|
112
|
-
<div slAlertTitle>
|
|
112
|
+
<div slAlertTitle>Could not save</div>
|
|
113
113
|
</div>
|
|
114
114
|
</section>
|
|
115
115
|
```
|
|
@@ -140,7 +140,7 @@ Excerpt — not a complete module
|
|
|
140
140
|
```html
|
|
141
141
|
<section slAlert reach="inline" tone="danger">
|
|
142
142
|
<div slAlertContent>
|
|
143
|
-
<p slAlertDescription>
|
|
143
|
+
<p slAlertDescription>Enter a valid EIN.</p>
|
|
144
144
|
</div>
|
|
145
145
|
</section>
|
|
146
146
|
|
|
@@ -170,20 +170,20 @@ Excerpt — not a complete module
|
|
|
170
170
|
```html
|
|
171
171
|
<section slAlert tone="warning">
|
|
172
172
|
<div slAlertContent>
|
|
173
|
-
<div slAlertTitle>
|
|
173
|
+
<div slAlertTitle>Your subscription expires in three days</div>
|
|
174
174
|
</div>
|
|
175
175
|
<div slAlertActions>
|
|
176
|
-
<button slButton type="button">
|
|
177
|
-
<button slButton variant="ghost" type="button">
|
|
176
|
+
<button slButton type="button">Renew</button>
|
|
177
|
+
<button slButton variant="ghost" type="button">View plans</button>
|
|
178
178
|
</div>
|
|
179
179
|
</section>
|
|
180
180
|
|
|
181
181
|
<section slAlert actionsPlacement="end">
|
|
182
182
|
<div slAlertContent>
|
|
183
|
-
<p slAlertDescription>
|
|
183
|
+
<p slAlertDescription>The suggestion changes three lines of the plan.</p>
|
|
184
184
|
</div>
|
|
185
185
|
<div slAlertActions>
|
|
186
|
-
<button slButton type="button">
|
|
186
|
+
<button slButton type="button">Apply</button>
|
|
187
187
|
</div>
|
|
188
188
|
</section>
|
|
189
189
|
```
|
|
@@ -236,15 +236,15 @@ Tab into the message and out of it: the box is a region a reader can jump to, th
|
|
|
236
236
|
Excerpt — not a complete module
|
|
237
237
|
|
|
238
238
|
```html
|
|
239
|
-
<!-- A region landmark named "
|
|
239
|
+
<!-- A region landmark named "Maintenance", holding a polite status region. -->
|
|
240
240
|
<section slAlert live="polite">
|
|
241
241
|
<div slAlertContent>
|
|
242
|
-
<div slAlertTitle>
|
|
242
|
+
<div slAlertTitle>Maintenance</div>
|
|
243
243
|
</div>
|
|
244
244
|
</section>
|
|
245
245
|
|
|
246
246
|
<!-- No title: a plain grouping element, and no landmark to jump to. -->
|
|
247
247
|
<section slAlert>
|
|
248
|
-
<div slAlertContent>
|
|
248
|
+
<div slAlertContent>Done.</div>
|
|
249
249
|
</section>
|
|
250
250
|
```
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
### Playground
|
|
9
9
|
|
|
10
|
-
Aurora
|
|
10
|
+
Aurora Logistics, a freight operator’s back office, whole: the search a coordinator reaches for first, the destinations with their counts, the order table with the consignment that has no price yet, and the detail pane with its own head, body and foot. Every axis is on the controls below — change navSide and the pane moves to the other side with it; close the pane and the content takes the room.
|
|
11
11
|
|
|
12
12
|
Excerpt — not a complete module
|
|
13
13
|
|
|
@@ -33,7 +33,7 @@ Excerpt — not a complete module
|
|
|
33
33
|
<div slAppShellBrand>
|
|
34
34
|
<button slAppShellNavToggle></button>
|
|
35
35
|
</div>
|
|
36
|
-
<div
|
|
36
|
+
<div slAppShellCenter>…</div>
|
|
37
37
|
<div slAppShellActions>…</div>
|
|
38
38
|
</header>
|
|
39
39
|
<nav slAppShellNav>
|
|
@@ -70,7 +70,7 @@ Excerpt — not a complete module
|
|
|
70
70
|
|
|
71
71
|
### Three clusters, and the one that grows
|
|
72
72
|
|
|
73
|
-
brand starts the line,
|
|
73
|
+
brand starts the line, center takes whatever room is left, actions ends it. Aurora puts a search field with its shortcut in the middle; Cadence puts the route’s trail there and the route’s actions at the end; Atrium puts a title. What each holds is the product’s — slTextField, slBreadcrumb, slAvatar — and where it goes is the shell’s. Narrow the frame: the middle gives way first, and a control in actions keeps its width rather than breaking its label one letter per line.
|
|
74
74
|
|
|
75
75
|
Excerpt — not a complete module
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ Excerpt — not a complete module
|
|
|
80
80
|
<button slAppShellNavToggle></button>
|
|
81
81
|
<span>Aurora</span>
|
|
82
82
|
</div>
|
|
83
|
-
<div
|
|
83
|
+
<div slAppShellCenter>
|
|
84
84
|
<div slTextField size="sm" variant="subtle">
|
|
85
85
|
<span slTextFieldStart><ng-icon name="lucideSearch" /></span>
|
|
86
86
|
<input slTextFieldInput type="search" placeholder="Search…" />
|
|
@@ -108,7 +108,7 @@ Excerpt — not a complete module
|
|
|
108
108
|
|
|
109
109
|
### A rule, or a tone
|
|
110
110
|
|
|
111
|
-
Where two regions touch without a gutter — every seam of flush, the seams inside the panel card, the bar over the content under primary="main" — separation decides what is drawn. rule is a line. tone is no line: the chrome regions take a ground 0.036 OKLab L from the surface, and the subtle tones inside them are recomputed from that ground so a hover still answers. Under forced
|
|
111
|
+
Where two regions touch without a gutter — every seam of flush, the seams inside the panel card, the bar over the content under primary="main" — separation decides what is drawn. rule is a line. tone is no line: the chrome regions take a ground 0.036 OKLab L from the surface, and the subtle tones inside them are recomputed from that ground so a hover still answers. Under forced colors a tone separates nothing, and the rule is drawn whatever the input says.
|
|
112
112
|
|
|
113
113
|
Excerpt — not a complete module
|
|
114
114
|
|
|
@@ -221,7 +221,7 @@ Excerpt — not a complete module
|
|
|
221
221
|
|
|
222
222
|
### The layer, and what it does to the rest
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
Atrium overlays its navigation at every width. While the layer is modal, the rest of the shell is inert — the banner and its toggle included, exactly as a dialog’s trigger is — and the ways out are Escape, the veil, a destination, and whatever control the product put in the panel. The pane is a layer of its own under the same policies: escape="none" keeps it open on Escape, outsidePress="none" keeps it open on a press outside, modal={false} draws no veil and inerts nothing.
|
|
225
225
|
|
|
226
226
|
Excerpt — not a complete module
|
|
227
227
|
|
|
@@ -244,7 +244,7 @@ Excerpt — not a complete module
|
|
|
244
244
|
|
|
245
245
|
### Sides, sizes and the mirror
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
Atrium puts the navigation at the end of the line and the pane at the start; the controls turn their marks with them. Switch the direction to right-to-left and the whole frame mirrors, because every distance is logical. navSize and asideSize are steps on the family’s own scale — a theme retunes a step, and nothing retunes a pixel string.
|
|
248
248
|
|
|
249
249
|
Excerpt — not a complete module
|
|
250
250
|
|
package/docs/app-shell.json
CHANGED
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"skip",
|
|
120
120
|
"banner",
|
|
121
121
|
"brand",
|
|
122
|
-
"
|
|
122
|
+
"center",
|
|
123
123
|
"actions",
|
|
124
124
|
"nav-toggle",
|
|
125
125
|
"nav",
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"docs": {
|
|
148
148
|
"appShell": {
|
|
149
149
|
"imports": {
|
|
150
|
-
"source": "import {\n SlAppShell,\n SlAppShellActions,\n SlAppShellAside,\n SlAppShellAsideBody,\n SlAppShellAsideFooter,\n SlAppShellAsideHeader,\n SlAppShellAsideResizer,\n SlAppShellAsideToggle,\n SlAppShellBanner,\n SlAppShellBrand,\n
|
|
151
|
-
"selector": "[slAppShell] on the frame; header[slAppShellBanner], nav[slAppShellNav], main[slAppShellMain], aside[slAppShellAside], footer[slAppShellFooter] on the regions; [slAppShellBrand], [
|
|
152
|
-
"exportAs": "slAppShell, slAppShellBanner, slAppShellBrand,
|
|
150
|
+
"source": "import {\n SlAppShell,\n SlAppShellActions,\n SlAppShellAside,\n SlAppShellAsideBody,\n SlAppShellAsideFooter,\n SlAppShellAsideHeader,\n SlAppShellAsideResizer,\n SlAppShellAsideToggle,\n SlAppShellBanner,\n SlAppShellBrand,\n SlAppShellCenter,\n SlAppShellFooter,\n SlAppShellMain,\n SlAppShellNav,\n SlAppShellNavBody,\n SlAppShellNavFooter,\n SlAppShellNavHeader,\n SlAppShellNavRail,\n SlAppShellNavToggle,\n SlAppShellProgress,\n provideAppShellDefaults,\n} from '@slotted/angular/app-shell';",
|
|
151
|
+
"selector": "[slAppShell] on the frame; header[slAppShellBanner], nav[slAppShellNav], main[slAppShellMain], aside[slAppShellAside], footer[slAppShellFooter] on the regions; [slAppShellBrand], [slAppShellCenter], [slAppShellActions], [slAppShellNavRail], [slAppShellNavHeader], [slAppShellNavBody], [slAppShellNavFooter], [slAppShellAsideHeader], [slAppShellAsideBody], [slAppShellAsideFooter] on their parts; button[slAppShellNavToggle] and button[slAppShellAsideToggle] on the controls; [slAppShellProgress] on any element inside the frame, for the wait",
|
|
152
|
+
"exportAs": "slAppShell, slAppShellBanner, slAppShellBrand, slAppShellCenter, slAppShellActions, slAppShellNav, slAppShellNavRail, slAppShellNavHeader, slAppShellNavBody, slAppShellNavFooter, slAppShellMain, slAppShellAside, slAppShellAsideHeader, slAppShellAsideBody, slAppShellAsideFooter, slAppShellFooter, slAppShellNavToggle, slAppShellAsideToggle, slAppShellProgress"
|
|
153
153
|
},
|
|
154
154
|
"anatomy": [
|
|
155
155
|
{
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"purpose": "The start cluster: the toggle, the mark, the name of the application or of the workspace. Shortened to one line by default, so a name never pushes the frame wider than the space there is."
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
"part": "
|
|
180
|
+
"part": "center",
|
|
181
181
|
"element": "div",
|
|
182
182
|
"required": false,
|
|
183
183
|
"purpose": "The middle of the bar, and the one cluster that grows: a search field, a breadcrumb trail, the route title, tabs. Without it a bar is two clusters and a void — which is what the first version of this page photographed."
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"part": "nav-rail",
|
|
205
205
|
"element": "div, or any element the directive is placed on",
|
|
206
206
|
"required": false,
|
|
207
|
-
"purpose": "A strip of marks before the column: the first level of a two-level navigation, inside the one navigation landmark and under its one open state. With it the region is two columns; closed to rail it keeps the strip and lets the column go.
|
|
207
|
+
"purpose": "A strip of marks before the column: the first level of a two-level navigation, inside the one navigation landmark and under its one open state. With it the region is two columns; closed to rail it keeps the strip and lets the column go. Recognized by :has(), so no attribute is written and a server render has the grid on its first paint."
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"part": "nav-header",
|
|
@@ -675,7 +675,7 @@
|
|
|
675
675
|
{
|
|
676
676
|
"id": "playground",
|
|
677
677
|
"title": "Playground",
|
|
678
|
-
"note": "Aurora
|
|
678
|
+
"note": "Aurora Logistics, a freight operator’s back office, whole: the search a coordinator reaches for first, the destinations with their counts, the order table with the consignment that has no price yet, and the detail pane with its own head, body and foot. Every axis is on the controls below — change navSide and the pane moves to the other side with it; close the pane and the content takes the room.",
|
|
679
679
|
"language": "html",
|
|
680
680
|
"source": "<div slAppShell>\n <header slAppShellBanner>…</header>\n <nav slAppShellNav>…</nav>\n <main slAppShellMain>…</main>\n <aside slAppShellAside>…</aside>\n <footer slAppShellFooter>…</footer>\n</div>\n",
|
|
681
681
|
"verdict": "excerpt"
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
"title": "The frame with nothing in it",
|
|
686
686
|
"note": "Every part the contract declares, drawn as its own name. Everything else on this page is a product standing in these boxes; this is the family on its own — four rows, three columns, one gutter, the card the content stands on, three clusters in the bar, and a pane with a head, a body and a foot.",
|
|
687
687
|
"language": "html",
|
|
688
|
-
"source": "<div slAppShell>\n <header slAppShellBanner>\n <div slAppShellBrand>\n <button slAppShellNavToggle></button>\n </div>\n <div
|
|
688
|
+
"source": "<div slAppShell>\n <header slAppShellBanner>\n <div slAppShellBrand>\n <button slAppShellNavToggle></button>\n </div>\n <div slAppShellCenter>…</div>\n <div slAppShellActions>…</div>\n </header>\n <nav slAppShellNav>\n <div slAppShellNavHeader>…</div>\n <div slAppShellNavBody>…</div>\n <div slAppShellNavFooter>…</div>\n </nav>\n <main slAppShellMain>…</main>\n <aside slAppShellAside>\n <div slAppShellAsideHeader>\n …\n <button slAppShellAsideToggle></button>\n </div>\n <div slAppShellAsideBody>…</div>\n <div slAppShellAsideFooter>…</div>\n </aside>\n <footer slAppShellFooter>…</footer>\n</div>\n",
|
|
689
689
|
"verdict": "excerpt"
|
|
690
690
|
},
|
|
691
691
|
{
|
|
@@ -699,9 +699,9 @@
|
|
|
699
699
|
{
|
|
700
700
|
"id": "banner",
|
|
701
701
|
"title": "Three clusters, and the one that grows",
|
|
702
|
-
"note": "brand starts the line,
|
|
702
|
+
"note": "brand starts the line, center takes whatever room is left, actions ends it. Aurora puts a search field with its shortcut in the middle; Cadence puts the route’s trail there and the route’s actions at the end; Atrium puts a title. What each holds is the product’s — slTextField, slBreadcrumb, slAvatar — and where it goes is the shell’s. Narrow the frame: the middle gives way first, and a control in actions keeps its width rather than breaking its label one letter per line.",
|
|
703
703
|
"language": "html",
|
|
704
|
-
"source": "<header slAppShellBanner>\n <div slAppShellBrand>\n <button slAppShellNavToggle></button>\n <span>Aurora</span>\n </div>\n <div
|
|
704
|
+
"source": "<header slAppShellBanner>\n <div slAppShellBrand>\n <button slAppShellNavToggle></button>\n <span>Aurora</span>\n </div>\n <div slAppShellCenter>\n <div slTextField size=\"sm\" variant=\"subtle\">\n <span slTextFieldStart><ng-icon name=\"lucideSearch\" /></span>\n <input slTextFieldInput type=\"search\" placeholder=\"Search…\" />\n </div>\n </div>\n <div slAppShellActions>\n <button slIconButton aria-label=\"Notifications\">…</button>\n <span slAvatar><span slAvatarFallback>AB</span></span>\n </div>\n</header>\n",
|
|
705
705
|
"verdict": "excerpt"
|
|
706
706
|
},
|
|
707
707
|
{
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
{
|
|
716
716
|
"id": "separation",
|
|
717
717
|
"title": "A rule, or a tone",
|
|
718
|
-
"note": "Where two regions touch without a gutter — every seam of flush, the seams inside the panel card, the bar over the content under primary=\"main\" — separation decides what is drawn. rule is a line. tone is no line: the chrome regions take a ground 0.036 OKLab L from the surface, and the subtle tones inside them are recomputed from that ground so a hover still answers. Under forced
|
|
718
|
+
"note": "Where two regions touch without a gutter — every seam of flush, the seams inside the panel card, the bar over the content under primary=\"main\" — separation decides what is drawn. rule is a line. tone is no line: the chrome regions take a ground 0.036 OKLab L from the surface, and the subtle tones inside them are recomputed from that ground so a hover still answers. Under forced colors a tone separates nothing, and the rule is drawn whatever the input says.",
|
|
719
719
|
"language": "html",
|
|
720
720
|
"source": "<div slAppShell canvas=\"flush\" separation=\"rule\">…</div>\n<div slAppShell canvas=\"flush\" separation=\"tone\">…</div>\n<div slAppShell canvas=\"panel\" primary=\"main\" separation=\"tone\">…</div>\n",
|
|
721
721
|
"verdict": "excerpt"
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
{
|
|
764
764
|
"id": "overlay",
|
|
765
765
|
"title": "The layer, and what it does to the rest",
|
|
766
|
-
"note": "
|
|
766
|
+
"note": "Atrium overlays its navigation at every width. While the layer is modal, the rest of the shell is inert — the banner and its toggle included, exactly as a dialog’s trigger is — and the ways out are Escape, the veil, a destination, and whatever control the product put in the panel. The pane is a layer of its own under the same policies: escape=\"none\" keeps it open on Escape, outsidePress=\"none\" keeps it open on a press outside, modal={false} draws no veil and inerts nothing.",
|
|
767
767
|
"language": "html",
|
|
768
768
|
"source": "<div slAppShell navMode=\"overlay\" escape=\"close\" outsidePress=\"close\" modal>…</div>\n<div slAppShell asideMode=\"overlay\" escape=\"none\" outsidePress=\"none\" [modal]=\"false\">…</div>\n",
|
|
769
769
|
"verdict": "excerpt"
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
{
|
|
780
780
|
"id": "sides",
|
|
781
781
|
"title": "Sides, sizes and the mirror",
|
|
782
|
-
"note": "
|
|
782
|
+
"note": "Atrium puts the navigation at the end of the line and the pane at the start; the controls turn their marks with them. Switch the direction to right-to-left and the whole frame mirrors, because every distance is logical. navSize and asideSize are steps on the family’s own scale — a theme retunes a step, and nothing retunes a pixel string.",
|
|
783
783
|
"language": "html",
|
|
784
784
|
"source": "<div slAppShell navSide=\"end\" navSize=\"sm\" asideSize=\"sm\">…</div>\n",
|
|
785
785
|
"verdict": "excerpt"
|
package/docs/app-shell.md
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
SlAppShellAsideToggle,
|
|
18
18
|
SlAppShellBanner,
|
|
19
19
|
SlAppShellBrand,
|
|
20
|
-
|
|
20
|
+
SlAppShellCenter,
|
|
21
21
|
SlAppShellFooter,
|
|
22
22
|
SlAppShellMain,
|
|
23
23
|
SlAppShellNav,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from '@slotted/angular/app-shell';
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Selector: `[slAppShell] on the frame; header[slAppShellBanner], nav[slAppShellNav], main[slAppShellMain], aside[slAppShellAside], footer[slAppShellFooter] on the regions; [slAppShellBrand], [
|
|
34
|
+
Selector: `[slAppShell] on the frame; header[slAppShellBanner], nav[slAppShellNav], main[slAppShellMain], aside[slAppShellAside], footer[slAppShellFooter] on the regions; [slAppShellBrand], [slAppShellCenter], [slAppShellActions], [slAppShellNavRail], [slAppShellNavHeader], [slAppShellNavBody], [slAppShellNavFooter], [slAppShellAsideHeader], [slAppShellAsideBody], [slAppShellAsideFooter] on their parts; button[slAppShellNavToggle] and button[slAppShellAsideToggle] on the controls; [slAppShellProgress] on any element inside the frame, for the wait` · exportAs: `slAppShell, slAppShellBanner, slAppShellBrand, slAppShellCenter, slAppShellActions, slAppShellNav, slAppShellNavRail, slAppShellNavHeader, slAppShellNavBody, slAppShellNavFooter, slAppShellMain, slAppShellAside, slAppShellAsideHeader, slAppShellAsideBody, slAppShellAsideFooter, slAppShellFooter, slAppShellNavToggle, slAppShellAsideToggle, slAppShellProgress`
|
|
35
35
|
|
|
36
36
|
## Minimal example
|
|
37
37
|
|
|
@@ -107,7 +107,7 @@ export class AppShellBasic {}
|
|
|
107
107
|
| `skip` | div holding one a per region | no |
|
|
108
108
|
| `banner` | header | no |
|
|
109
109
|
| `brand` | div | no |
|
|
110
|
-
| `
|
|
110
|
+
| `center` | div | no |
|
|
111
111
|
| `actions` | div | no |
|
|
112
112
|
| `nav-toggle` | button | no |
|
|
113
113
|
| `nav` | nav | no |
|
package/docs/avatar-group.json
CHANGED
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"id": "avatar-group-angular-ring",
|
|
201
|
-
"title": "A group on a
|
|
201
|
+
"title": "A group on a colored row",
|
|
202
202
|
"note": null,
|
|
203
203
|
"language": "html",
|
|
204
204
|
"source": "<ul\n slAvatarGroup\n aria-label=\"Reviewers\"\n style=\"--slotted-avatar-ring-color: var(--slotted-surface-sunken)\"\n>\n @for (person of reviewers(); track person.id) {\n <li slAvatarGroupItem>\n <span slAvatar [name]=\"person.name\" [src]=\"person.photograph\"></span>\n </li>\n }\n</ul>\n",
|
package/docs/avatar-group.md
CHANGED
package/docs/avatar.json
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"type": "string",
|
|
87
87
|
"defaultValue": "—",
|
|
88
88
|
"appliesTo": "slAvatar",
|
|
89
|
-
"description": "The person or entity. It is the accessible name in every status, the source of the initials, and the seed of the
|
|
89
|
+
"description": "The person or entity. It is the accessible name in every status, the source of the initials, and the seed of the color"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"name": "src",
|
|
@@ -107,21 +107,21 @@
|
|
|
107
107
|
"type": "'auto' | 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
108
108
|
"defaultValue": "auto",
|
|
109
109
|
"appliesTo": "slAvatar",
|
|
110
|
-
"description": "Which of the five semantic
|
|
110
|
+
"description": "Which of the five semantic colors the fallback is painted in. auto derives it from the name"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "idFor",
|
|
114
114
|
"type": "string",
|
|
115
115
|
"defaultValue": "—",
|
|
116
116
|
"appliesTo": "slAvatar",
|
|
117
|
-
"description": "A stable identifier to derive the
|
|
117
|
+
"description": "A stable identifier to derive the color from, when the name is not stable or two people share one"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"name": "variant",
|
|
121
121
|
"type": "'soft' | 'solid'",
|
|
122
122
|
"defaultValue": "soft",
|
|
123
123
|
"appliesTo": "slAvatar",
|
|
124
|
-
"description": "How that
|
|
124
|
+
"description": "How that color is painted: tinted, or filled"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"name": "surface",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"type": "'circle' | 'square'",
|
|
143
143
|
"defaultValue": "circle",
|
|
144
144
|
"appliesTo": "slAvatar",
|
|
145
|
-
"description": "A circle is a person; a square is a team, an
|
|
145
|
+
"description": "A circle is a person; a square is a team, an organization or a bot"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"name": "status",
|
|
@@ -215,10 +215,10 @@
|
|
|
215
215
|
"The name is on the root, as aria-label with role=\"img\", and the picture takes an empty alt. The avatar therefore announces the same thing in all four statuses. An alt the consumer wrote on a projected img is read with HostAttributeToken and kept.",
|
|
216
216
|
"An avatar with no name is aria-hidden, which is the rule Icon already takes. decorative is the third case — a name written beside the avatar, where announcing it would read the person twice.",
|
|
217
217
|
"A role the consumer wrote on the host element is read before the host binding writes one, so an avatar that is also a menu trigger keeps the role its page chose.",
|
|
218
|
-
"The
|
|
219
|
-
"The component is written on the element the page chose, so an a or a button is an avatar with the platform’s own keyboard
|
|
220
|
-
"An interactive avatar smaller than 24 by 24 CSS pixels grows a
|
|
221
|
-
"The fallback glyph is the person slGlyph in an aria-hidden slIcon, not a character. Under forced
|
|
218
|
+
"The color derived from a name is an aid to scanning a list, never the identifier: five tones mean collisions are certain, and color alone is not a signal.",
|
|
219
|
+
"The component is written on the element the page chose, so an a or a button is an avatar with the platform’s own keyboard behavior. The family paints the focus ring and the hover edge only on an element the browser treats as interactive, and holds both back when it is disabled.",
|
|
220
|
+
"An interactive avatar smaller than 24 by 24 CSS pixels grows a centerd overlay to --slotted-target-min, so WCAG 2.2 2.5.8 is met at the two tighter densities without changing any layout.",
|
|
221
|
+
"The fallback glyph is the person slGlyph in an aria-hidden slIcon, not a character. Under forced colors the family draws its edge in currentColor and leaves the photograph alone.",
|
|
222
222
|
"The picture crosses over the initials on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme. Nothing here loops."
|
|
223
223
|
]
|
|
224
224
|
}
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
"id": "avatar-angular-
|
|
347
|
+
"id": "avatar-angular-organization",
|
|
348
348
|
"title": "A square avatar, and a mark of its own",
|
|
349
349
|
"note": null,
|
|
350
350
|
"language": "html",
|
package/docs/avatar.md
CHANGED
|
@@ -15,15 +15,15 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
| Name | Type | Default | Applies to | Description |
|
|
17
17
|
| --- | --- | --- | --- | --- |
|
|
18
|
-
| `name` | `string` | — | slAvatar | The person or entity. It is the accessible name in every status, the source of the initials, and the seed of the
|
|
18
|
+
| `name` | `string` | — | slAvatar | The person or entity. It is the accessible name in every status, the source of the initials, and the seed of the color |
|
|
19
19
|
| `src` | `string` | — | slAvatar | The picture the component renders itself. Project an img slAvatarImage instead when the element must be yours |
|
|
20
20
|
| `initials` | `string` | — | slAvatar | The letters to draw, in place of the ones derived from the name |
|
|
21
|
-
| `tone` | `'auto' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | auto | slAvatar | Which of the five semantic
|
|
22
|
-
| `idFor` | `string` | — | slAvatar | A stable identifier to derive the
|
|
23
|
-
| `variant` | `'soft' \| 'solid'` | soft | slAvatar | How that
|
|
21
|
+
| `tone` | `'auto' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | auto | slAvatar | Which of the five semantic colors the fallback is painted in. auto derives it from the name |
|
|
22
|
+
| `idFor` | `string` | — | slAvatar | A stable identifier to derive the color from, when the name is not stable or two people share one |
|
|
23
|
+
| `variant` | `'soft' \| 'solid'` | soft | slAvatar | How that color is painted: tinted, or filled |
|
|
24
24
|
| `surface` | `'tone' \| 'none' \| 'plate'` | tone | slAvatar | The ground behind the avatar: the tone behind the fallback and nothing behind a loaded picture; nothing at all; or a light plate in every scheme, for a logo made for a white ground (--slotted-avatar-plate-surface) |
|
|
25
25
|
| `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | md | slAvatar | Five steps, each of which answers density. --slotted-avatar-size states a size no step holds |
|
|
26
|
-
| `shape` | `'circle' \| 'square'` | circle | slAvatar | A circle is a person; a square is a team, an
|
|
26
|
+
| `shape` | `'circle' \| 'square'` | circle | slAvatar | A circle is a person; a square is a team, an organization or a bot |
|
|
27
27
|
| `status` | `'idle' \| 'loading' \| 'loaded' \| 'error'` | — | slAvatar | Where the picture is. Supplied, it wins over what the component derives from the element |
|
|
28
28
|
| `statusChange` | `output<AvatarStatus>` | — | slAvatar | Reports the derived status. Never emits for a status passed in |
|
|
29
29
|
| `disabled` | `boolean` | false | slAvatar | A deactivated account, or an avatar inside a control the page has turned off |
|
|
@@ -51,10 +51,10 @@ Excerpt — not a complete module
|
|
|
51
51
|
- The name is on the root, as aria-label with role="img", and the picture takes an empty alt. The avatar therefore announces the same thing in all four statuses. An alt the consumer wrote on a projected img is read with HostAttributeToken and kept.
|
|
52
52
|
- An avatar with no name is aria-hidden, which is the rule Icon already takes. decorative is the third case — a name written beside the avatar, where announcing it would read the person twice.
|
|
53
53
|
- A role the consumer wrote on the host element is read before the host binding writes one, so an avatar that is also a menu trigger keeps the role its page chose.
|
|
54
|
-
- The
|
|
55
|
-
- The component is written on the element the page chose, so an a or a button is an avatar with the platform’s own keyboard
|
|
56
|
-
- An interactive avatar smaller than 24 by 24 CSS pixels grows a
|
|
57
|
-
- The fallback glyph is the person slGlyph in an aria-hidden slIcon, not a character. Under forced
|
|
54
|
+
- The color derived from a name is an aid to scanning a list, never the identifier: five tones mean collisions are certain, and color alone is not a signal.
|
|
55
|
+
- The component is written on the element the page chose, so an a or a button is an avatar with the platform’s own keyboard behavior. The family paints the focus ring and the hover edge only on an element the browser treats as interactive, and holds both back when it is disabled.
|
|
56
|
+
- An interactive avatar smaller than 24 by 24 CSS pixels grows a centerd overlay to --slotted-target-min, so WCAG 2.2 2.5.8 is met at the two tighter densities without changing any layout.
|
|
57
|
+
- The fallback glyph is the person slGlyph in an aria-hidden slIcon, not a character. Under forced colors the family draws its edge in currentColor and leaves the photograph alone.
|
|
58
58
|
- The picture crosses over the initials on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme. Nothing here loops.
|
|
59
59
|
|
|
60
60
|
## Tokens
|
package/docs/badge.json
CHANGED
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
93
93
|
"defaultValue": "secondary",
|
|
94
94
|
"appliesTo": "slBadge",
|
|
95
|
-
"description": "Which of the five semantic
|
|
95
|
+
"description": "Which of the five semantic colors the badge speaks in"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "variant",
|
|
99
99
|
"type": "'solid' | 'soft' | 'outline'",
|
|
100
100
|
"defaultValue": "soft",
|
|
101
101
|
"appliesTo": "slBadge",
|
|
102
|
-
"description": "How that
|
|
102
|
+
"description": "How that color is painted: filled, tinted, or an edge alone. All three draw the same tone edge"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "size",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"There is no badge pattern in the WAI-ARIA Authoring Practices — the pattern index carries no entry — and there is no badge role. The applicable guidance is the status role in WAI-ARIA 1.2, and WCAG 2.2 1.4.1 Use of Color, 1.4.11 Non-text Contrast and 4.1.3 Status Messages.",
|
|
207
207
|
"The directive adds no role. It is written on the element the page chose — a span in a sentence, a dd in a description list, an a that navigates — and what a badge means comes from where it sits.",
|
|
208
208
|
"live is the announcement policy for a badge whose value changes: polite writes role=\"status\", assertive writes role=\"alert\". A role the consumer wrote on the host is read with HostAttributeToken first and never replaced.",
|
|
209
|
-
"A dot says nothing a screen reader can read. Project the words beside it — a span slVisuallyHidden inside the badge — because
|
|
209
|
+
"A dot says nothing a screen reader can read. Project the words beside it — a span slVisuallyHidden inside the badge — because color alone is not a signal. Inside a badge that element is out of flow, so it costs no space.",
|
|
210
210
|
"The dot is the only badge whose whole meaning is a graphic, so its rim is --slotted-border-strong: the one border token the theme holds to 3:1 against the surface.",
|
|
211
211
|
"slBadgeAnchor is written on the element already around the host and does not rewrite the host. The badge is read after it in document order. When the host is interactive and its name must carry the count, wire aria-describedby from the host to the badge’s id, or name the count in the host’s aria-label.",
|
|
212
212
|
"A badge is not focusable and is never a command: it answers no hover and gives no press feedback. Written on an anchor it is focusable, and the family paints the ring for exactly that case.",
|
package/docs/badge.md
CHANGED
|
@@ -15,8 +15,8 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
| Name | Type | Default | Applies to | Description |
|
|
17
17
|
| --- | --- | --- | --- | --- |
|
|
18
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slBadge | Which of the five semantic
|
|
19
|
-
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slBadge | How that
|
|
18
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slBadge | Which of the five semantic colors the badge speaks in |
|
|
19
|
+
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slBadge | How that color is painted: filled, tinted, or an edge alone. All three draw the same tone edge |
|
|
20
20
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slBadge | Type and glyph come from the control scale, so a badge shrinks with density beside the controls it sits with |
|
|
21
21
|
| `shape` | `'pill' \| 'square' \| 'dot'` | pill | slBadge | A dot is the same badge, tone and hidden text, drawn without a value |
|
|
22
22
|
| `count` | `number` | — | slBadge | The number the badge shows, written before any projected content and formatted for the locale |
|
|
@@ -49,7 +49,7 @@ Excerpt — not a complete module
|
|
|
49
49
|
- There is no badge pattern in the WAI-ARIA Authoring Practices — the pattern index carries no entry — and there is no badge role. The applicable guidance is the status role in WAI-ARIA 1.2, and WCAG 2.2 1.4.1 Use of Color, 1.4.11 Non-text Contrast and 4.1.3 Status Messages.
|
|
50
50
|
- The directive adds no role. It is written on the element the page chose — a span in a sentence, a dd in a description list, an a that navigates — and what a badge means comes from where it sits.
|
|
51
51
|
- live is the announcement policy for a badge whose value changes: polite writes role="status", assertive writes role="alert". A role the consumer wrote on the host is read with HostAttributeToken first and never replaced.
|
|
52
|
-
- A dot says nothing a screen reader can read. Project the words beside it — a span slVisuallyHidden inside the badge — because
|
|
52
|
+
- A dot says nothing a screen reader can read. Project the words beside it — a span slVisuallyHidden inside the badge — because color alone is not a signal. Inside a badge that element is out of flow, so it costs no space.
|
|
53
53
|
- The dot is the only badge whose whole meaning is a graphic, so its rim is --slotted-border-strong: the one border token the theme holds to 3:1 against the surface.
|
|
54
54
|
- slBadgeAnchor is written on the element already around the host and does not rewrite the host. The badge is read after it in document order. When the host is interactive and its name must carry the count, wire aria-describedby from the host to the badge’s id, or name the count in the host’s aria-label.
|
|
55
55
|
- A badge is not focusable and is never a command: it answers no hover and gives no press feedback. Written on an anchor it is focusable, and the family paints the ring for exactly that case.
|
package/docs/breadcrumb.json
CHANGED
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
{
|
|
312
312
|
"id": "current",
|
|
313
313
|
"title": "The page you are on",
|
|
314
|
-
"note": "The last crumb carries aria-current=\"page\", which is the value the ARIA specification names for a link inside a set of pages. It gains weight rather than
|
|
314
|
+
"note": "The last crumb carries aria-current=\"page\", which is the value the ARIA specification names for a link inside a set of pages. It gains weight rather than color alone.",
|
|
315
315
|
"language": "html",
|
|
316
316
|
"source": "<li slBreadcrumbItem><span slBreadcrumbPage>INV-2026-08-0041</span></li>\n",
|
|
317
317
|
"verdict": "excerpt"
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
{
|
|
344
344
|
"id": "switcher",
|
|
345
345
|
"title": "Crumbs that switch between siblings",
|
|
346
|
-
"note": "
|
|
346
|
+
"note": "Organization, ledger and period each open a menu of their siblings. The open one keeps its underline and turns its chevron, and the period the reader is on still says it is this page.",
|
|
347
347
|
"language": "html",
|
|
348
348
|
"source": "<li slBreadcrumbItem>\n <button slBreadcrumbTrigger current [slMenuTriggerFor]=\"periods\">August 2026</button>\n <sl-menu #periods>\n <button slMenuItem>July 2026</button>\n <button slMenuItem>August 2026</button>\n </sl-menu>\n</li>\n",
|
|
349
349
|
"verdict": "excerpt"
|