@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/split-button.md
CHANGED
|
@@ -24,15 +24,15 @@ Excerpt — not a complete module
|
|
|
24
24
|
|
|
25
25
|
```html
|
|
26
26
|
<div slSplitButton>
|
|
27
|
-
<button slSplitButtonPrimary (click)="save()">
|
|
27
|
+
<button slSplitButtonPrimary (click)="save()">Save</button>
|
|
28
28
|
<button
|
|
29
29
|
slSplitButtonMenuTrigger
|
|
30
30
|
[slMenuTriggerFor]="more"
|
|
31
|
-
aria-label="
|
|
31
|
+
aria-label="More save options"
|
|
32
32
|
></button>
|
|
33
33
|
<sl-menu #more>
|
|
34
|
-
<button slMenuItem (select)="saveDraft()">
|
|
35
|
-
<button slMenuItem (select)="saveAndClose()">
|
|
34
|
+
<button slMenuItem (select)="saveDraft()">Save as draft</button>
|
|
35
|
+
<button slMenuItem (select)="saveAndClose()">Save and close</button>
|
|
36
36
|
</sl-menu>
|
|
37
37
|
</div>
|
|
38
38
|
```
|
|
@@ -109,11 +109,11 @@ Excerpt — not a complete module
|
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
111
|
<div slSplitButton tone="danger" variant="outline">
|
|
112
|
-
<button slSplitButtonPrimary (click)="remove()">
|
|
112
|
+
<button slSplitButtonPrimary (click)="remove()">Delete</button>
|
|
113
113
|
<button
|
|
114
114
|
slSplitButtonMenuTrigger
|
|
115
115
|
[slMenuTriggerFor]="more"
|
|
116
|
-
aria-label="
|
|
116
|
+
aria-label="More delete options"
|
|
117
117
|
></button>
|
|
118
118
|
<sl-menu #more>
|
|
119
119
|
<button slMenuItem (select)="archive()">Arquivar em vez disso</button>
|
|
@@ -129,14 +129,14 @@ Excerpt — not a complete module
|
|
|
129
129
|
|
|
130
130
|
```html
|
|
131
131
|
<div slSplitButton size="sm">
|
|
132
|
-
<button slSplitButtonPrimary (click)="save()">
|
|
132
|
+
<button slSplitButtonPrimary (click)="save()">Save</button>
|
|
133
133
|
<button
|
|
134
134
|
slSplitButtonMenuTrigger
|
|
135
135
|
[slMenuTriggerFor]="more"
|
|
136
|
-
aria-label="
|
|
136
|
+
aria-label="More save options"
|
|
137
137
|
></button>
|
|
138
138
|
<sl-menu #more>
|
|
139
|
-
<button slMenuItem (select)="saveDraft()">
|
|
139
|
+
<button slMenuItem (select)="saveDraft()">Save as draft</button>
|
|
140
140
|
</sl-menu>
|
|
141
141
|
</div>
|
|
142
142
|
```
|
|
@@ -153,7 +153,7 @@ Excerpt — not a complete module
|
|
|
153
153
|
<button
|
|
154
154
|
slSplitButtonMenuTrigger
|
|
155
155
|
[slMenuTriggerFor]="more"
|
|
156
|
-
aria-label="
|
|
156
|
+
aria-label="More merge strategies"
|
|
157
157
|
></button>
|
|
158
158
|
<sl-menu #more>
|
|
159
159
|
<sl-menu-radio-group slSplitButtonChoices>
|
|
@@ -167,20 +167,20 @@ Excerpt — not a complete module
|
|
|
167
167
|
|
|
168
168
|
### The action in flight
|
|
169
169
|
|
|
170
|
-
Press
|
|
170
|
+
Press Save: the primary shows button’s indicator with its width and name held, and the menu button waits with it — aria-disabled, still focusable, still painted in the tone, refusing the click and the arrow keys. The bar is one control that is busy.
|
|
171
171
|
|
|
172
172
|
Excerpt — not a complete module
|
|
173
173
|
|
|
174
174
|
```html
|
|
175
175
|
<div slSplitButton [loading]="saving()">
|
|
176
|
-
<button slSplitButtonPrimary (click)="save()">
|
|
176
|
+
<button slSplitButtonPrimary (click)="save()">Save</button>
|
|
177
177
|
<button
|
|
178
178
|
slSplitButtonMenuTrigger
|
|
179
179
|
[slMenuTriggerFor]="more"
|
|
180
|
-
aria-label="
|
|
180
|
+
aria-label="More save options"
|
|
181
181
|
></button>
|
|
182
182
|
<sl-menu #more>
|
|
183
|
-
<button slMenuItem (select)="saveDraft()">
|
|
183
|
+
<button slMenuItem (select)="saveDraft()">Save as draft</button>
|
|
184
184
|
</sl-menu>
|
|
185
185
|
</div>
|
|
186
186
|
```
|
|
@@ -197,10 +197,10 @@ Excerpt — not a complete module
|
|
|
197
197
|
<button
|
|
198
198
|
slSplitButtonMenuTrigger
|
|
199
199
|
[slMenuTriggerFor]="more"
|
|
200
|
-
aria-label="
|
|
200
|
+
aria-label="More merge options"
|
|
201
201
|
></button>
|
|
202
202
|
<sl-menu #more>
|
|
203
|
-
<button slMenuItem (select)="closeRequest()">
|
|
203
|
+
<button slMenuItem (select)="closeRequest()">Close without merging</button>
|
|
204
204
|
</sl-menu>
|
|
205
205
|
</div>
|
|
206
206
|
```
|
|
@@ -213,14 +213,14 @@ Excerpt — not a complete module
|
|
|
213
213
|
|
|
214
214
|
```html
|
|
215
215
|
<div slSplitButton fullWidth>
|
|
216
|
-
<button slSplitButtonPrimary (click)="order()">
|
|
216
|
+
<button slSplitButtonPrimary (click)="order()">Place order</button>
|
|
217
217
|
<button
|
|
218
218
|
slSplitButtonMenuTrigger
|
|
219
219
|
[slMenuTriggerFor]="more"
|
|
220
|
-
aria-label="
|
|
220
|
+
aria-label="More order options"
|
|
221
221
|
></button>
|
|
222
222
|
<sl-menu #more>
|
|
223
|
-
<button slMenuItem (select)="schedule()">
|
|
223
|
+
<button slMenuItem (select)="schedule()">Schedule delivery</button>
|
|
224
224
|
</sl-menu>
|
|
225
225
|
</div>
|
|
226
226
|
```
|
|
@@ -234,7 +234,7 @@ Excerpt — not a complete module
|
|
|
234
234
|
```html
|
|
235
235
|
<button slSplitButtonPrimary (click)="save()">
|
|
236
236
|
<ng-icon slButtonStart name="lucideSave" />
|
|
237
|
-
|
|
237
|
+
Save
|
|
238
238
|
</button>
|
|
239
239
|
```
|
|
240
240
|
|
|
@@ -247,19 +247,17 @@ Excerpt — not a complete module
|
|
|
247
247
|
```html
|
|
248
248
|
<!-- providers: [provideSplitButtonDefaults({ size: 'sm', variant: 'outline' })] -->
|
|
249
249
|
<section slSplitButton>
|
|
250
|
-
<button slSplitButtonPrimary data-track="save" (click)="save()">
|
|
250
|
+
<button slSplitButtonPrimary data-track="save" (click)="save()">Save</button>
|
|
251
251
|
<button
|
|
252
252
|
slSplitButtonMenuTrigger
|
|
253
253
|
[slMenuTriggerFor]="more"
|
|
254
|
-
aria-label="
|
|
254
|
+
aria-label="More save options"
|
|
255
255
|
></button>
|
|
256
256
|
<sl-menu #more="slMenu">
|
|
257
|
-
<button slMenuItem (select)="saveDraft()">
|
|
257
|
+
<button slMenuItem (select)="saveDraft()">Save as draft</button>
|
|
258
258
|
</sl-menu>
|
|
259
259
|
</section>
|
|
260
|
-
<button slButton variant="ghost" (click)="more.toggle(true, 'programmatic')">
|
|
261
|
-
Abrir pelo handle
|
|
262
|
-
</button>
|
|
260
|
+
<button slButton variant="ghost" (click)="more.toggle(true, 'programmatic')">Open by handle</button>
|
|
263
261
|
```
|
|
264
262
|
|
|
265
263
|
### The keyboard, key by key
|
|
@@ -270,6 +268,6 @@ Excerpt — not a complete module
|
|
|
270
268
|
|
|
271
269
|
```html
|
|
272
270
|
<sl-menu #more (openChangeRequest)="log($event.reason)">
|
|
273
|
-
<button slMenuItem (select)="saveDraft()">
|
|
271
|
+
<button slMenuItem (select)="saveDraft()">Save as draft</button>
|
|
274
272
|
</sl-menu>
|
|
275
273
|
```
|
package/docs/stack.json
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"title": "The outer stack separates sections, the inner separates lines",
|
|
121
121
|
"note": null,
|
|
122
122
|
"language": "html",
|
|
123
|
-
"source": "<div slStack [gap]=\"8\">\n <div slStack [gap]=\"2\">\n <span slText weight=\"semibold\">Payment method</span>\n <span slText tone=\"muted\">Visa ending 4242</span>\n </div>\n <div slStack [gap]=\"2\">\n <span slText weight=\"semibold\">Billing address</span>\n <span slText tone=\"muted\">
|
|
123
|
+
"source": "<div slStack [gap]=\"8\">\n <div slStack [gap]=\"2\">\n <span slText weight=\"semibold\">Payment method</span>\n <span slText tone=\"muted\">Visa ending 4242</span>\n </div>\n <div slStack [gap]=\"2\">\n <span slText weight=\"semibold\">Billing address</span>\n <span slText tone=\"muted\">200 Maple Street</span>\n </div>\n</div>\n",
|
|
124
124
|
"verdict": "excerpt"
|
|
125
125
|
},
|
|
126
126
|
{
|
package/docs/stack.md
CHANGED
|
@@ -56,7 +56,7 @@ Excerpt — not a complete module
|
|
|
56
56
|
</div>
|
|
57
57
|
<div slStack [gap]="2">
|
|
58
58
|
<span slText weight="semibold">Billing address</span>
|
|
59
|
-
<span slText tone="muted">
|
|
59
|
+
<span slText tone="muted">200 Maple Street</span>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
62
|
```
|
package/docs/stat-card.json
CHANGED
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"part": "indicator",
|
|
165
165
|
"element": "span",
|
|
166
166
|
"required": false,
|
|
167
|
-
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced
|
|
167
|
+
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced colors."
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"part": "comparison",
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"accessibility": [
|
|
354
354
|
"The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.",
|
|
355
355
|
"The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.",
|
|
356
|
-
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
356
|
+
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.",
|
|
357
357
|
"While loading the root carries aria-busy=\"true\" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is an slSkeletonRegion around it, which is the platform’s own answer rather than one per card.",
|
|
358
358
|
"A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.",
|
|
359
359
|
"The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis."
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
{
|
|
502
502
|
"id": "fill",
|
|
503
503
|
"title": "Four frames",
|
|
504
|
-
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
504
|
+
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.",
|
|
505
505
|
"language": "html",
|
|
506
506
|
"source": "<div slStatCard fill=\"outline\">…</div>\n<div slStatCard fill=\"elevated\">…</div>\n<div slStatCard fill=\"subtle\">…</div>\n<div slStatCard fill=\"plain\">…</div>\n",
|
|
507
507
|
"verdict": "excerpt"
|
package/docs/stat-card.md
CHANGED
|
@@ -106,7 +106,7 @@ Excerpt — not a complete module
|
|
|
106
106
|
|
|
107
107
|
- The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.
|
|
108
108
|
- The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.
|
|
109
|
-
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
109
|
+
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.
|
|
110
110
|
- While loading the root carries aria-busy="true" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is an slSkeletonRegion around it, which is the platform’s own answer rather than one per card.
|
|
111
111
|
- A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.
|
|
112
112
|
- The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis.
|
|
@@ -173,7 +173,7 @@ Excerpt — not a complete module
|
|
|
173
173
|
|
|
174
174
|
### Four frames
|
|
175
175
|
|
|
176
|
-
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
176
|
+
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.
|
|
177
177
|
|
|
178
178
|
Excerpt — not a complete module
|
|
179
179
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"part": "mark",
|
|
78
78
|
"element": "span",
|
|
79
79
|
"required": true,
|
|
80
|
-
"purpose": "The disc or the glyph, inside the first line and
|
|
80
|
+
"purpose": "The disc or the glyph, inside the first line and centerd on its capitals, so the mark stays on that line however far the label wraps. Hidden from assistive technology: it says nothing the label does not."
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"part": "label",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"part": "detail",
|
|
90
90
|
"element": "the consumer’s element with slStatusIndicatorDetail",
|
|
91
91
|
"required": false,
|
|
92
|
-
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text
|
|
92
|
+
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text color and hanging under the first word. Projected inside the label, so it is read with the words."
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"part": "announcement",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"type": "'dot' | 'icon'",
|
|
112
112
|
"defaultValue": "dot",
|
|
113
113
|
"appliesTo": "SlStatusIndicator",
|
|
114
|
-
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
114
|
+
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"name": "size",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"type": "boolean",
|
|
133
133
|
"defaultValue": "false",
|
|
134
134
|
"appliesTo": "SlStatusIndicator",
|
|
135
|
-
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
135
|
+
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"name": "label",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"accessibility": [
|
|
198
198
|
"There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.",
|
|
199
199
|
"The name is always real text in the document — the projected content, or the status’s own word clipped by visually-hidden. role=\"img\" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.",
|
|
200
|
-
"
|
|
200
|
+
"Color is never the only carrier. Every indicator has words, and mark=\"icon\" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.",
|
|
201
201
|
"Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.",
|
|
202
202
|
"live=\"polite\" writes role=\"status\", which the platform gives an implicit aria-live=\"polite\" and aria-atomic=\"true\", so the mark and its word are announced as one thing rather than as two events. live=\"assertive\" writes role=\"alert\" and interrupts, which the APG reserves for a message needing immediate attention. A role written on the host element is read once through HostAttributeToken and kept.",
|
|
203
203
|
"The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
{
|
|
245
245
|
"id": "playground",
|
|
246
246
|
"title": "Playground",
|
|
247
|
-
"note": "One indicator with every input on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the
|
|
247
|
+
"note": "One indicator with every input on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the color switched off.",
|
|
248
248
|
"language": "html",
|
|
249
249
|
"source": "<span slStatusIndicator status=\"success\">Healthy</span>\n\n<!-- With nothing projected, the status names itself. -->\n<span slStatusIndicator status=\"success\"></span>\n",
|
|
250
250
|
"verdict": "excerpt"
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
"id": "marks",
|
|
262
|
-
"title": "The dot, and the mark that does not need
|
|
262
|
+
"title": "The dot, and the mark that does not need color",
|
|
263
263
|
"note": "A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.",
|
|
264
264
|
"language": "html",
|
|
265
265
|
"source": "<span slStatusIndicator status=\"warning\">Degraded</span>\n<span slStatusIndicator status=\"warning\" mark=\"icon\">Degraded</span>\n",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
{
|
|
293
293
|
"id": "context",
|
|
294
294
|
"title": "Where a status actually lives",
|
|
295
|
-
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
295
|
+
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.",
|
|
296
296
|
"language": "html",
|
|
297
297
|
"source": "<tr>\n <td>checkout-api</td>\n <td slStatusIndicator status=\"success\" size=\"sm\">Healthy</td>\n</tr>\n",
|
|
298
298
|
"verdict": "excerpt"
|
package/docs/status-indicator.md
CHANGED
|
@@ -40,10 +40,10 @@ Excerpt — not a complete module
|
|
|
40
40
|
| Name | Type | Default | Applies to | Description |
|
|
41
41
|
| --- | --- | --- | --- | --- |
|
|
42
42
|
| `status` | `'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'unknown'` | neutral | SlStatusIndicator | The operational state. Each value owns a tone and a glyph; the vocabulary is closed, so a domain status maps onto one of the six and projects its own words |
|
|
43
|
-
| `mark` | `'dot' \| 'icon'` | dot | SlStatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
43
|
+
| `mark` | `'dot' \| 'icon'` | dot | SlStatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color |
|
|
44
44
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SlStatusIndicator | Reads the control type and glyph scales, so all three steps answer density |
|
|
45
45
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | SlStatusIndicator | Whether a change is announced. polite writes role="status"; assertive writes role="alert" and interrupts. A role written on the host is read first and never replaced |
|
|
46
|
-
| `pulse` | `boolean` | false | SlStatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
46
|
+
| `pulse` | `boolean` | false | SlStatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier |
|
|
47
47
|
| `label` | `string` | — | SlStatusIndicator | What a reader hears when nothing is projected. Ignored when something is. Falls back to the status’s word in the catalog |
|
|
48
48
|
| `messages` | `Partial<StatusIndicatorMessages>` | — | SlStatusIndicator | Words laid over the language in force, key by key: the word each status is heard as when nothing is projected (neutral, info, success, warning, danger, unknown) |
|
|
49
49
|
| `ng-content` | `projected content` | — | SlStatusIndicator | The visible words, which are also the accessible name. Its fallback content is the clipped word, so the template itself decides which of the two a reader gets |
|
|
@@ -66,7 +66,7 @@ Excerpt — not a complete module
|
|
|
66
66
|
|
|
67
67
|
- There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.
|
|
68
68
|
- The name is always real text in the document — the projected content, or the status’s own word clipped by visually-hidden. role="img" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.
|
|
69
|
-
-
|
|
69
|
+
- Color is never the only carrier. Every indicator has words, and mark="icon" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.
|
|
70
70
|
- Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.
|
|
71
71
|
- live="polite" writes role="status", which the platform gives an implicit aria-live="polite" and aria-atomic="true", so the mark and its word are announced as one thing rather than as two events. live="assertive" writes role="alert" and interrupts, which the APG reserves for a message needing immediate attention. A role written on the host element is read once through HostAttributeToken and kept.
|
|
72
72
|
- The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.
|
|
@@ -93,7 +93,7 @@ Excerpt — not a complete module
|
|
|
93
93
|
<span slStatusIndicator status="unknown">No data</span>
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
### The dot, and the mark that does not need
|
|
96
|
+
### The dot, and the mark that does not need color
|
|
97
97
|
|
|
98
98
|
A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.
|
|
99
99
|
|
|
@@ -144,7 +144,7 @@ Excerpt — not a complete module
|
|
|
144
144
|
|
|
145
145
|
### Where a status actually lives
|
|
146
146
|
|
|
147
|
-
A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
147
|
+
A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.
|
|
148
148
|
|
|
149
149
|
Excerpt — not a complete module
|
|
150
150
|
|
package/docs/stepper.json
CHANGED
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"Every header carries a visually hidden status, so what a reader hears is \"Cart, Step 2 of 4, current\" rather than \"2\". The marker itself is aria-hidden, because it would otherwise announce the number twice, and the status is prefixed with a comma because nothing separates two elements’ text when a name is computed.",
|
|
283
283
|
"A panel is a group labelled by its own trigger and given tabindex=\"-1\", so a consumer who moves focus after a step change has somewhere to put it. It is not a tabpanel, for the same reason the root is not a tablist.",
|
|
284
284
|
"The arrows reach every header, exactly where Tab reaches — they were added on top of the tab sequence rather than replacing it with a roving tab stop, and they follow the reading direction, so ArrowRight moves to the previous step in a right-to-left document. Home and End go to the ends, and the block arrows answer only a vertical flow.",
|
|
285
|
-
"No status depends on
|
|
285
|
+
"No status depends on color alone: a complete step fills its disc and shows a check, a failed one fills and shows a cross, the current one is a ring and a pending one an outline. Section 7 of the feature guide asks for exactly that."
|
|
286
286
|
]
|
|
287
287
|
}
|
|
288
288
|
},
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
{
|
|
371
371
|
"id": "orientation",
|
|
372
372
|
"title": "Which way the flow runs",
|
|
373
|
-
"note": "Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own
|
|
373
|
+
"note": "Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own center line.",
|
|
374
374
|
"language": "html",
|
|
375
375
|
"source": "<div slStepper orientation=\"horizontal\">\n <ol slStepperList>\n …\n </ol>\n</div>\n\n<div slStepper orientation=\"vertical\">\n <ol slStepperList>\n …\n </ol>\n</div>\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
{
|
|
379
379
|
"id": "statuses",
|
|
380
380
|
"title": "The four statuses, and the fifth that is not one",
|
|
381
|
-
"note": "Each is a fill and an edge rather than a
|
|
381
|
+
"note": "Each is a fill and an edge rather than a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a filled disc with a cross for a failure.",
|
|
382
382
|
"language": "html",
|
|
383
383
|
"source": "<li slStepperStep label=\"Complete\" [complete]=\"true\"></li>\n<li slStepperStep label=\"Failed\" invalid></li>\n<li slStepperStep label=\"Current\"></li>\n<li slStepperStep label=\"Pending\"></li>\n<li slStepperStep label=\"Closed\" [disabled]=\"true\"></li>\n",
|
|
384
384
|
"verdict": "excerpt"
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
{
|
|
403
403
|
"id": "placement",
|
|
404
404
|
"title": "Where the label sits",
|
|
405
|
-
"note": "end puts the name beside the marker and gives the connector whatever the label leaves; bottom
|
|
405
|
+
"note": "end puts the name beside the marker and gives the connector whatever the label leaves; bottom centers the marker over its own label, which is what a row of five names needs.",
|
|
406
406
|
"language": "html",
|
|
407
407
|
"source": "<div slStepper labelPlacement=\"end\">…</div>\n<div slStepper labelPlacement=\"bottom\">…</div>\n",
|
|
408
408
|
"verdict": "excerpt"
|
package/docs/stepper.md
CHANGED
|
@@ -94,7 +94,7 @@ Excerpt — not a complete module
|
|
|
94
94
|
- Every header carries a visually hidden status, so what a reader hears is "Cart, Step 2 of 4, current" rather than "2". The marker itself is aria-hidden, because it would otherwise announce the number twice, and the status is prefixed with a comma because nothing separates two elements’ text when a name is computed.
|
|
95
95
|
- A panel is a group labelled by its own trigger and given tabindex="-1", so a consumer who moves focus after a step change has somewhere to put it. It is not a tabpanel, for the same reason the root is not a tablist.
|
|
96
96
|
- The arrows reach every header, exactly where Tab reaches — they were added on top of the tab sequence rather than replacing it with a roving tab stop, and they follow the reading direction, so ArrowRight moves to the previous step in a right-to-left document. Home and End go to the ends, and the block arrows answer only a vertical flow.
|
|
97
|
-
- No status depends on
|
|
97
|
+
- No status depends on color alone: a complete step fills its disc and shows a check, a failed one fills and shows a cross, the current one is a ring and a pending one an outline. Section 7 of the feature guide asks for exactly that.
|
|
98
98
|
|
|
99
99
|
## Tokens
|
|
100
100
|
|
|
@@ -104,7 +104,7 @@ Excerpt — not a complete module
|
|
|
104
104
|
|
|
105
105
|
### Which way the flow runs
|
|
106
106
|
|
|
107
|
-
Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own
|
|
107
|
+
Horizontal divides the width into equal columns so five markers line up however long their labels are; vertical runs the connector down the marker’s own center line.
|
|
108
108
|
|
|
109
109
|
Excerpt — not a complete module
|
|
110
110
|
|
|
@@ -124,7 +124,7 @@ Excerpt — not a complete module
|
|
|
124
124
|
|
|
125
125
|
### The four statuses, and the fifth that is not one
|
|
126
126
|
|
|
127
|
-
Each is a fill and an edge rather than a
|
|
127
|
+
Each is a fill and an edge rather than a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a filled disc with a cross for a failure.
|
|
128
128
|
|
|
129
129
|
Excerpt — not a complete module
|
|
130
130
|
|
|
@@ -168,7 +168,7 @@ Excerpt — not a complete module
|
|
|
168
168
|
|
|
169
169
|
### Where the label sits
|
|
170
170
|
|
|
171
|
-
end puts the name beside the marker and gives the connector whatever the label leaves; bottom
|
|
171
|
+
end puts the name beside the marker and gives the connector whatever the label leaves; bottom centers the marker over its own label, which is what a row of five names needs.
|
|
172
172
|
|
|
173
173
|
Excerpt — not a complete module
|
|
174
174
|
|
package/docs/switch.json
CHANGED
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"title": "Playground",
|
|
341
341
|
"note": "One switch with every axis on it, driven by the controls below the canvas. Click the label as well as the pill: the label names the control and doubles its target.",
|
|
342
342
|
"language": "html",
|
|
343
|
-
"source": "<span slSwitch defaultChecked name=\"autopay\">\n
|
|
343
|
+
"source": "<span slSwitch defaultChecked name=\"autopay\">\n Automatic billing\n <p slSwitchDescription>The invoice is charged on the 5th of each month.</p>\n</span>\n",
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
{
|
|
355
355
|
"id": "indicator",
|
|
356
356
|
"title": "The mark inside the thumb",
|
|
357
|
-
"note": "On draws a check and off draws nothing, so the state is readable without
|
|
357
|
+
"note": "On draws a check and off draws nothing, so the state is readable without color and without comparing the thumb’s position to a switch you cannot see.",
|
|
358
358
|
"language": "ts",
|
|
359
359
|
"source": "import { Component, signal } from '@angular/core';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlSwitch, SlSwitchDescription } from '@slotted/angular/switch';\n\n@Component({\n selector: 'app-switch-indicator',\n imports: [SlStack, SlSwitch, SlSwitchDescription],\n template: `\n <div slStack [gap]=\"5\">\n <span slSwitch defaultChecked>Accept backorders</span>\n <span slSwitch [checked]=\"open()\" indicator=\"none\" (checkedChange)=\"open.set($event.value)\">\n Storefront\n <p slSwitchDescription>\n {{\n open()\n ? 'Open: customers can place orders.'\n : 'Closed: customers see a maintenance page.'\n }}\n </p>\n </span>\n </div>\n `,\n})\nexport class SwitchIndicator {\n protected readonly open = signal(true);\n}\n",
|
|
360
360
|
"verdict": "example"
|
|
@@ -372,13 +372,13 @@
|
|
|
372
372
|
"title": "Help text under the label",
|
|
373
373
|
"note": "It is projected outside the label, so it describes the switch rather than naming it — and so a paragraph of help text does not change a setting when it is clicked.",
|
|
374
374
|
"language": "html",
|
|
375
|
-
"source": "<span slSwitch defaultChecked>\n
|
|
375
|
+
"source": "<span slSwitch defaultChecked>\n Automatic billing\n <p slSwitchDescription>The invoice is charged on the 5th of each month.</p>\n</span>\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"id": "states",
|
|
380
380
|
"title": "The states the pill paints",
|
|
381
|
-
"note": "Read-only goes hollow and keeps its
|
|
381
|
+
"note": "Read-only goes hollow and keeps its color, because the value is real and still submitted; disabled goes grey and its knob goes with it, so a locked setting still says which way it is set.",
|
|
382
382
|
"language": "ts",
|
|
383
383
|
"source": "import { Component } from '@angular/core';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlSwitch, SlSwitchDescription } from '@slotted/angular/switch';\n\n@Component({\n selector: 'app-switch-states',\n imports: [SlStack, SlSwitch, SlSwitchDescription],\n template: `\n <div slStack [gap]=\"5\">\n <span slSwitch defaultChecked readOnly>\n Two-step sign-in\n <p slSwitchDescription>Your organization's security policy sets this.</p>\n </span>\n <span slSwitch defaultChecked disabled>\n Audit log\n <p slSwitchDescription>Included in the Business plan.</p>\n </span>\n <span slSwitch disabled>\n Single sign-on\n <p slSwitchDescription>Available on the Enterprise plan.</p>\n </span>\n </div>\n `,\n})\nexport class SwitchStates {}\n",
|
|
384
384
|
"verdict": "example"
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
"title": "The keyboard",
|
|
421
421
|
"note": "Tab reaches the control and Space toggles it, both from the platform. Enter is deliberately not bound: inside a form it submits, and a switch that stole it would break the form.",
|
|
422
422
|
"language": "html",
|
|
423
|
-
"source": "<span slSwitch (checkedChange)=\"onRequest($event)\">
|
|
423
|
+
"source": "<span slSwitch (checkedChange)=\"onRequest($event)\">Receive the invoice</span>\n\n<!-- $event.reason is \"pointer\", \"keyboard\" or \"programmatic\",\n and $event.cancel() refuses the move before it commits. -->\n",
|
|
424
424
|
"verdict": "excerpt"
|
|
425
425
|
},
|
|
426
426
|
{
|
package/docs/switch.md
CHANGED
|
@@ -109,8 +109,8 @@ Excerpt — not a complete module
|
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
111
|
<span slSwitch defaultChecked name="autopay">
|
|
112
|
-
|
|
113
|
-
<p slSwitchDescription>
|
|
112
|
+
Automatic billing
|
|
113
|
+
<p slSwitchDescription>The invoice is charged on the 5th of each month.</p>
|
|
114
114
|
</span>
|
|
115
115
|
```
|
|
116
116
|
|
|
@@ -141,7 +141,7 @@ export class SwitchSizes {}
|
|
|
141
141
|
|
|
142
142
|
### The mark inside the thumb
|
|
143
143
|
|
|
144
|
-
On draws a check and off draws nothing, so the state is readable without
|
|
144
|
+
On draws a check and off draws nothing, so the state is readable without color and without comparing the thumb’s position to a switch you cannot see.
|
|
145
145
|
|
|
146
146
|
Example
|
|
147
147
|
|
|
@@ -212,14 +212,14 @@ Excerpt — not a complete module
|
|
|
212
212
|
|
|
213
213
|
```html
|
|
214
214
|
<span slSwitch defaultChecked>
|
|
215
|
-
|
|
216
|
-
<p slSwitchDescription>
|
|
215
|
+
Automatic billing
|
|
216
|
+
<p slSwitchDescription>The invoice is charged on the 5th of each month.</p>
|
|
217
217
|
</span>
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
### The states the pill paints
|
|
221
221
|
|
|
222
|
-
Read-only goes hollow and keeps its
|
|
222
|
+
Read-only goes hollow and keeps its color, because the value is real and still submitted; disabled goes grey and its knob goes with it, so a locked setting still says which way it is set.
|
|
223
223
|
|
|
224
224
|
Example
|
|
225
225
|
|
|
@@ -407,7 +407,7 @@ Tab reaches the control and Space toggles it, both from the platform. Enter is d
|
|
|
407
407
|
Excerpt — not a complete module
|
|
408
408
|
|
|
409
409
|
```html
|
|
410
|
-
<span slSwitch (checkedChange)="onRequest($event)">
|
|
410
|
+
<span slSwitch (checkedChange)="onRequest($event)">Receive the invoice</span>
|
|
411
411
|
|
|
412
412
|
<!-- $event.reason is "pointer", "keyboard" or "programmatic",
|
|
413
413
|
and $event.cancel() refuses the move before it commits. -->
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
"title": "Playground",
|
|
420
420
|
"note": "The customer record beside its list. Scroll the document and watch the marker slide to the section in view; press a link and the section lands under the top edge with focus on it. The controls below drive every axis.",
|
|
421
421
|
"language": "html",
|
|
422
|
-
"source": "<nav slTableOfContents [items]=\"sections\" label=\"
|
|
422
|
+
"source": "<nav slTableOfContents [items]=\"sections\" label=\"On this page\"></nav>\n",
|
|
423
423
|
"verdict": "excerpt"
|
|
424
424
|
},
|
|
425
425
|
{
|
|
@@ -427,13 +427,13 @@
|
|
|
427
427
|
"title": "Every part, named",
|
|
428
428
|
"note": "The label above, the track on the list’s start edge, the marker on the current row, the group indented under its parent. Hover a link: the ink darkens and nothing moves. The current link is said twice, by its ink and by the marker, and never by the marker alone.",
|
|
429
429
|
"language": "html",
|
|
430
|
-
"source": "<nav slTableOfContents [items]=\"sections\" [(value)]=\"section\">\n <ng-template slTableOfContentsLabel>
|
|
430
|
+
"source": "<nav slTableOfContents [items]=\"sections\" [(value)]=\"section\">\n <ng-template slTableOfContentsLabel>On this page</ng-template>\n</nav>\n",
|
|
431
431
|
"verdict": "excerpt"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
"id": "source",
|
|
435
435
|
"title": "Read from the document’s own headings",
|
|
436
|
-
"note": "The returns policy is prose; nobody wrote a list for it. source points at the article, the family reads its h2 and h3 after the view is built, writes an id on each heading that has none — “
|
|
436
|
+
"note": "The returns policy is prose; nobody wrote a list for it. source points at the article, the family reads its h2 and h3 after the view is built, writes an id on each heading that has none — “Return periods” becomes #return-periods — and rebuilds the list when the article changes.",
|
|
437
437
|
"language": "html",
|
|
438
438
|
"source": "<nav slTableOfContents label=\"Neste artigo\" [levels]=\"[2, 3]\" [source]=\"article\"></nav>\n<div #article slProse>…</div>\n",
|
|
439
439
|
"verdict": "excerpt"
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
"title": "A column that stays while the document scrolls",
|
|
452
452
|
"note": "sticky pins the list under the page’s chrome and gives it the rest of the viewport; with more links than fit, the panel scrolls and keeps the current link in view without moving the page. Scroll the document past the tenth section and watch the column follow.",
|
|
453
453
|
"language": "html",
|
|
454
|
-
"source": "<nav slTableOfContents [items]=\"sections\" label=\"
|
|
454
|
+
"source": "<nav slTableOfContents [items]=\"sections\" label=\"On this page\" sticky></nav>\n",
|
|
455
455
|
"verdict": "excerpt"
|
|
456
456
|
},
|
|
457
457
|
{
|
|
@@ -467,15 +467,15 @@
|
|
|
467
467
|
"title": "A phone’s bar",
|
|
468
468
|
"note": "One row: the title, the current section, a chevron. Press it and the list opens in a layer under it; choose a link and it closes, Escape closes it back onto the button, a press outside closes it. The layout is chosen by the consumer’s breakpoint, not by width — the sidebar column is narrower than this bar.",
|
|
469
469
|
"language": "html",
|
|
470
|
-
"source": "<nav\n slTableOfContents\n [items]=\"sections\"\n label=\"
|
|
470
|
+
"source": "<nav\n slTableOfContents\n [items]=\"sections\"\n label=\"On this page\"\n [layout]=\"phone() ? 'collapsed' : 'vertical'\"\n></nav>\n",
|
|
471
471
|
"verdict": "excerpt"
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
"id": "numbered",
|
|
475
475
|
"title": "Clauses, numbered",
|
|
476
|
-
"note": "A supplier contract is read by clause number. numbered draws counters per level — 2., 2.1, 2.2 — in tabular figures, so a column of numbers lines up and a reader on the phone with legal can say “
|
|
476
|
+
"note": "A supplier contract is read by clause number. numbered draws counters per level — 2., 2.1, 2.2 — in tabular figures, so a column of numbers lines up and a reader on the phone with legal can say “clause 3.2” and mean the same line.",
|
|
477
477
|
"language": "html",
|
|
478
|
-
"source": "<nav slTableOfContents [items]=\"clauses\" label=\"
|
|
478
|
+
"source": "<nav slTableOfContents [items]=\"clauses\" label=\"Clauses\" numbered></nav>\n",
|
|
479
479
|
"verdict": "excerpt"
|
|
480
480
|
},
|
|
481
481
|
{
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"title": "Content the family did not choose",
|
|
500
500
|
"note": "A heading of eleven words wraps to three lines and stays whole; an order reference with no space breaks inside itself rather than widening the column; an Arabic heading reads from the right. The bar cuts nothing either: it scrolls.",
|
|
501
501
|
"language": "ts",
|
|
502
|
-
"source": "const items = [\n { id: '
|
|
502
|
+
"source": "const items = [\n { id: 'scope', label: 'Scope of application and definitions used in this document' },\n { id: 'ref', label: 'REF-2026-09-16-INDUSTRIAL-RETURN-000482915' },\n];\n",
|
|
503
503
|
"verdict": "excerpt"
|
|
504
504
|
},
|
|
505
505
|
{
|
|
@@ -539,15 +539,15 @@
|
|
|
539
539
|
"title": "Every key the contract lists",
|
|
540
540
|
"note": "Tab reaches each link in order. ArrowDown and ArrowUp walk them, Home and End jump to the ends, and in the bar ArrowRight and ArrowLeft do the same along the line. Enter follows the link and lands focus on the section, so the next Tab continues inside it.",
|
|
541
541
|
"language": "html",
|
|
542
|
-
"source": "<nav slTableOfContents #list=\"slTableOfContents\" [items]=\"sections\"></nav>\n<button slButton (click)=\"list.focus()\">
|
|
542
|
+
"source": "<nav slTableOfContents #list=\"slTableOfContents\" [items]=\"sections\"></nav>\n<button slButton (click)=\"list.focus()\">Focus the index</button>\n",
|
|
543
543
|
"verdict": "excerpt"
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
"id": "accessibility",
|
|
547
547
|
"title": "What a screen reader hears",
|
|
548
|
-
"note": "A navigation landmark named “
|
|
548
|
+
"note": "A navigation landmark named “On this page”, a list of six items, and one link announced as “current location”. After Enter the reader hears the section’s heading, because focus moved there. The collapsed trigger announces expanded and collapsed, and Escape returns to it.",
|
|
549
549
|
"language": "html",
|
|
550
|
-
"source": "<nav slTableOfContents [items]=\"sections\" label=\"
|
|
550
|
+
"source": "<nav slTableOfContents [items]=\"sections\" label=\"On this page\"></nav>\n<!-- <nav aria-labelledby=\"…-label\"> … <a aria-current=\"location\"> -->\n",
|
|
551
551
|
"verdict": "excerpt"
|
|
552
552
|
}
|
|
553
553
|
]
|