@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/fullscreen.json
CHANGED
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"title": "Playground",
|
|
301
301
|
"note": "A revenue panel with its control in the header. Press it: the panel takes the screen through the browser, the words become “Exit full screen” and the mark turns inward. Escape, or the control again, gives the page back with the scroll where it was.",
|
|
302
302
|
"language": "html",
|
|
303
|
-
"source": "<section slFullscreen>\n <div slFullscreenContent>\n <figure slChart title=\"
|
|
303
|
+
"source": "<section slFullscreen>\n <div slFullscreenContent>\n <figure slChart title=\"Revenue by month\" [data]=\"monthly\" [series]=\"revenue\">\n <button slFullscreenTrigger slChartActions iconOnly></button>\n </figure>\n </div>\n</section>\n",
|
|
304
304
|
"verdict": "excerpt"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"title": "The height of the screen, not only its width",
|
|
317
317
|
"note": "The browser stretches the region and none of its children. slFullscreenContent takes the height a bar and a caption leave, and the chart’s plot grows into it; a region with a single card gives the card the height instead.",
|
|
318
318
|
"language": "html",
|
|
319
|
-
"source": "<section slFullscreen>\n <div slToolbar><button slFullscreenTrigger></button></div>\n <div slFullscreenContent>\n <figure slChart title=\"
|
|
319
|
+
"source": "<section slFullscreen>\n <div slToolbar><button slFullscreenTrigger></button></div>\n <div slFullscreenContent>\n <figure slChart title=\"Revenue by month\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n </div>\n <p slText>Source: accounting close.</p>\n</section>\n",
|
|
320
320
|
"verdict": "excerpt"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"title": "A menu opened from inside",
|
|
341
341
|
"note": "The select in the panel opens its list inside the region while it is full screen: the portal root follows the element the browser shows. Escape in the layout closes the list first and the region on the second press.",
|
|
342
342
|
"language": "html",
|
|
343
|
-
"source": "<section slFullscreen>\n <sl-select aria-label=\"
|
|
343
|
+
"source": "<section slFullscreen>\n <sl-select aria-label=\"Period\" [value]=\"'6m'\">\n <sl-select-item value=\"3m\">Last 3 months</sl-select-item>\n <sl-select-item value=\"6m\">Last 6 months</sl-select-item>\n </sl-select>\n <button slFullscreenTrigger></button>\n</section>\n",
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"title": "The whole document",
|
|
349
349
|
"note": "slFullscreen on the application’s root element and a control anywhere that takes its instance: presentation mode for the whole application is the directive and one binding.",
|
|
350
350
|
"language": "html",
|
|
351
|
-
"source": "<main slFullscreen #app=\"slFullscreen\">\n <button [slFullscreenTrigger]=\"app\" variant=\"outline\">
|
|
351
|
+
"source": "<main slFullscreen #app=\"slFullscreen\">\n <button [slFullscreenTrigger]=\"app\" variant=\"outline\">Presentation mode</button>\n</main>\n",
|
|
352
352
|
"verdict": "excerpt"
|
|
353
353
|
},
|
|
354
354
|
{
|
package/docs/fullscreen.md
CHANGED
|
@@ -18,7 +18,7 @@ Excerpt — not a complete module
|
|
|
18
18
|
```html
|
|
19
19
|
<section slFullscreen>
|
|
20
20
|
<div slFullscreenContent>
|
|
21
|
-
<figure slChart title="
|
|
21
|
+
<figure slChart title="Revenue by month" [data]="monthly" [series]="revenue">
|
|
22
22
|
<button slFullscreenTrigger slChartActions iconOnly></button>
|
|
23
23
|
</figure>
|
|
24
24
|
</div>
|
|
@@ -108,9 +108,9 @@ Excerpt — not a complete module
|
|
|
108
108
|
<section slFullscreen>
|
|
109
109
|
<div slToolbar><button slFullscreenTrigger></button></div>
|
|
110
110
|
<div slFullscreenContent>
|
|
111
|
-
<figure slChart title="
|
|
111
|
+
<figure slChart title="Revenue by month" [data]="monthly" [series]="revenue"></figure>
|
|
112
112
|
</div>
|
|
113
|
-
<p slText>
|
|
113
|
+
<p slText>Source: accounting close.</p>
|
|
114
114
|
</section>
|
|
115
115
|
```
|
|
116
116
|
|
|
@@ -146,9 +146,9 @@ Excerpt — not a complete module
|
|
|
146
146
|
|
|
147
147
|
```html
|
|
148
148
|
<section slFullscreen>
|
|
149
|
-
<sl-select aria-label="
|
|
150
|
-
<sl-select-item value="3m"
|
|
151
|
-
<sl-select-item value="6m"
|
|
149
|
+
<sl-select aria-label="Period" [value]="'6m'">
|
|
150
|
+
<sl-select-item value="3m">Last 3 months</sl-select-item>
|
|
151
|
+
<sl-select-item value="6m">Last 6 months</sl-select-item>
|
|
152
152
|
</sl-select>
|
|
153
153
|
<button slFullscreenTrigger></button>
|
|
154
154
|
</section>
|
|
@@ -162,7 +162,7 @@ Excerpt — not a complete module
|
|
|
162
162
|
|
|
163
163
|
```html
|
|
164
164
|
<main slFullscreen #app="slFullscreen">
|
|
165
|
-
<button [slFullscreenTrigger]="app" variant="outline">
|
|
165
|
+
<button [slFullscreenTrigger]="app" variant="outline">Presentation mode</button>
|
|
166
166
|
</main>
|
|
167
167
|
```
|
|
168
168
|
|
|
@@ -121,9 +121,9 @@ Check: Press Refresh: the header's bar runs over the closing line, the button sh
|
|
|
121
121
|
### AF-08 · A write refreshes every view it changed
|
|
122
122
|
|
|
123
123
|
Level: MUST
|
|
124
|
-
Applies to: every control that writes — a create, an edit, a delete, a
|
|
124
|
+
Applies to: every control that writes — a create, an edit, a delete, a categorization — and every region on any screen whose figures the write can change
|
|
125
125
|
Rule: A successful write marks stale every query whose answer the write can change, and the regions on screen read again; an application that cannot list them marks every query stale; a region that reads again keeps its rows and dims them (LP-06).
|
|
126
|
-
Why:
|
|
126
|
+
Why: Categorizing a transaction left the category totals and the rules' coverage at their old figures until a reload, and the reader reloaded after every action to trust the screen.
|
|
127
127
|
Do: Beside each write, list the queries its answer changes — the record, the lists it appears in, the totals and counts over them — and invalidate them on success; where the list cannot be stated, invalidate every query after a successful write.
|
|
128
128
|
Don't: Refresh only the region the control stands in, or rely on the next navigation to read the other figures again.
|
|
129
129
|
Check: Perform each write: every figure on screen that the write changes shows the new value without a reload.
|
|
@@ -43,7 +43,7 @@ Applies to: a stored rule — a workflow's trigger, conditions and actions — o
|
|
|
43
43
|
Rule: The record shows the rule as it reads — When, If, Then, Otherwise — every later line of the condition tree led by its join in words and every nested group opened by its own ("any of:", "all of:"); the editor opens from that reading in the section it is read in; a reader without the permission to edit reads the rule and is not shown an editor.
|
|
44
44
|
Why: A rule shown only as a form makes a reader who cannot edit it decode disabled controls, and makes one who can open an editor to learn what the rule does.
|
|
45
45
|
Do: Set the trigger beside "When", the conditions the way a query is set — the join in a column of its own at the start of each later line, a group's children stepped in one step under the line that opens it, a guide down every level — and the actions numbered under "Then". The editor is a query parameter of the record (FM-12) and stands in the same section (FM-07).
|
|
46
|
-
Don't: Draw the editor in a read-only state for a reader, or join the conditions by
|
|
46
|
+
Don't: Draw the editor in a read-only state for a reader, or join the conditions by color, a border or indentation alone.
|
|
47
47
|
Check: Open a stored rule as a reader who may edit it and as one who may not: both read When, If, Then, Otherwise with every later line led by its join in words, and only the first is offered the editor.
|
|
48
48
|
|
|
49
49
|
### BD-02 · A structural limit is said before it is reached
|
|
@@ -65,8 +65,8 @@ Check: For every element of the page's own inside a family's root, the family's
|
|
|
65
65
|
Level: MUST
|
|
66
66
|
Applies to: two or more elements a page writes beside each other with no family between them — a name and a badge, a run of tags, the lines of an address, a figure and its caption
|
|
67
67
|
Rule: Sibling elements of the page's own stand in `inline` (one row) or `stack` (one column) with a gap from the space scale, and text of the page's own takes its size from the typography family; bare inline siblings and bare text are not written.
|
|
68
|
-
Why: Two inline elements with nothing between them touch, and a badge beside a word sits on the text baseline rather than the row's
|
|
69
|
-
Do: Wrap the run in `inline` (
|
|
68
|
+
Why: Two inline elements with nothing between them touch, and a badge beside a word sits on the text baseline rather than the row's center; bare text takes the document's 16-pixel body size inside a region whose families set 13.
|
|
69
|
+
Do: Wrap the run in `inline` (center-aligned by default, a two-step gap for marks beside a word) and each line of a block in `stack`; give every span of the page's own the typography family's `size`. The families' own parts — a list item's label, a cell's value, a description — already carry their size and gap and need none of this.
|
|
70
70
|
Don't: Write a name and a `badge` run together as text in a cell, a `description-list` value holding three tags with nothing between them, or address lines as plain spans.
|
|
71
71
|
Check: Every element of the page's own that has a sibling is a child of `inline` or `stack`; no bare span inside a family's part carries the body size.
|
|
72
72
|
|
|
@@ -97,8 +97,8 @@ Applies to: any CSS a screen writes for an element of its own, under CP-04 or be
|
|
|
97
97
|
Rule: Every value the element paints comes from the theme — space, type, ink, border, radius, elevation and motion — where the theme has a token for it; a literal is written only beside a comment that says what decided it and why no token covers it.
|
|
98
98
|
Why: A literal is what makes a screen look adjacent to the product rather than part of it: it ignores the scheme switch, the three densities and the theme's own retuning, and it is the first thing that drifts when the theme moves.
|
|
99
99
|
Do: Read `--slotted-space-*` for every gap and inset, `--slotted-text-*` and `--slotted-surface-*` for ink and ground, the typography family's `size` for every word, and the published measures of the family the element stands in — `--slotted-app-shell-row-inset` inside the navigation column, the control heights beside a control. Some values have no token and never will: a measure a column is capped at, a container query's step, an optical nudge of a pixel, the geometry of a shape the screen draws. Write those, in rem where the value scales with the type and in pixels where it does not, and put the reason beside them — the check reads that comment and passes. The escape is for a value the theme does not hold, not for a value it does.
|
|
100
|
-
Don't: Write a hex
|
|
101
|
-
Check: Read every stylesheet of the screen, skipping media and container queries, hairlines and any line whose comment gives its reason: no
|
|
100
|
+
Don't: Write a hex color, a font size or a gap the theme already holds a token for, and do not read another family's private custom property. A literal with no reason beside it is the defect this rule is about; a reasoned one is a decision the next reader can weigh.
|
|
101
|
+
Check: Read every stylesheet of the screen, skipping media and container queries, hairlines and any line whose comment gives its reason: no color, type size or gap remains that a theme token covers.
|
|
102
102
|
|
|
103
103
|
### CP-06 · A state the family already draws is not drawn again
|
|
104
104
|
|
|
@@ -45,7 +45,7 @@ Applies to: a clock counted in business hours — a first response, a resolution
|
|
|
45
45
|
Rule: A running clock says the business time left and the hour it falls due in the organization's zone, a passed one by how much and when it was due, a paused one that it is stopped and why; a queue's row says the span alone, and no clock is ever said in raw minutes.
|
|
46
46
|
Why: "1 h 20 min left" read at 19:00 is tomorrow morning: the span alone hides that the time outside business hours does not count, and the hour alone hides how much work time is left.
|
|
47
47
|
Do: Take the remaining minutes from the backend, say them in minutes, hours and business days of the organization's own length, and add the due hour; state the policy once beside the clocks, with the business hours.
|
|
48
|
-
Don't: Recompute a clock in the client, or let a
|
|
48
|
+
Don't: Recompute a clock in the client, or let a color alone say that a clock is at risk or passed.
|
|
49
49
|
Check: Read a running, a passed and a paused clock: the first names its due hour, the second how much it passed by, the third that it is stopped and why; none is a count of minutes above 59.
|
|
50
50
|
|
|
51
51
|
### CV-03 · A queue is a view of the bar, never a second filter
|
package/docs/guidelines/index.md
CHANGED
|
@@ -65,7 +65,7 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
65
65
|
| FM-24 | SHOULD | A format or a consequence of one answer is a one-line `description` under its control; the definition of a term is the field's `help` beside the label; what the whole record will do is the form's `aside`, beside the fields on a wide form and after them on a narrow one. | `forms.md` |
|
|
66
66
|
| FM-25 | SHOULD | A form inside a `dialog` takes the dialog's body as its measure, with fields whose answers are short (an amount, a date, a count, a currency) two to a row in two equal columns in the order the reader answers them, each control filling its column, and a field whose answer is long (a name, free text, a picker of records) on a row of its own. | `forms.md` |
|
|
67
67
|
| LA-01 | SHOULD | A pager under a paged region is aligned to the end of the line. | `layout-alignment.md` |
|
|
68
|
-
| LA-02 | MUST | A consumer's row in the navigation column's pinned parts is inset by `--slotted-app-shell-row-inset` and starts with a mark column `--slotted-app-shell-row-mark` wide, the avatar
|
|
68
|
+
| LA-02 | MUST | A consumer's row in the navigation column's pinned parts is inset by `--slotted-app-shell-row-inset` and starts with a mark column `--slotted-app-shell-row-mark` wide, the avatar centerd in it. | `layout-alignment.md` |
|
|
69
69
|
| LA-03 | SHOULD | Below the header's narrow step the header's actions occupy one row: one action beside a plain title becomes its icon-only form, and two or more stand in a `toolbar` that folds into its menu, each item with its counterpart and the primary one without, so it stays. Beside a plain title that row is the title's line; under a rich title (visual, marks, subheading) `page-header` gives the toolbar a full row of its own. | `layout-alignment.md` |
|
|
70
70
|
| LA-04 | SHOULD | Tabs that change the page's content stand in `page-header`'s `tabs` slot, not in the body. | `layout-alignment.md` |
|
|
71
71
|
| LA-05 | MUST | Fields on one line are aligned to the start of the block axis, so every control of the line starts at the same height and has the same height whatever stands under it. A button on the line stands on the controls' row, not on the labels' or the help's. | `layout-alignment.md` |
|
|
@@ -98,7 +98,7 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
98
98
|
| OV-07 | SHOULD | The overview is one `dashboard-grid` whose blocks are each one of its widgets, and each headline figure is a widget of its own whose title is the figure's label. | `overviews.md` |
|
|
99
99
|
| OV-08 | SHOULD | A `stat-card` inside a framed region takes the `plain` `fill` and a `chart` takes the `plain` `variant`; a frame inside a frame is a finding. | `overviews.md` |
|
|
100
100
|
| OE-01 | MUST | An element of the application's own reads only tokens of the groups `../tokens.md` lists for the application. | `own-elements.md` |
|
|
101
|
-
| OE-02 | MUST | Where two states hold at once, the element paints the ground, the edge and the text
|
|
101
|
+
| OE-02 | MUST | Where two states hold at once, the element paints the ground, the edge and the text color of the stronger, in the order `disabled`, `loading`, `readonly`, `invalid`, `checked`, `selected`, `pressed`, `current`, `complete`, `active`, `hover`; the focus ring of OE-03 is drawn over every state. | `own-elements.md` |
|
|
102
102
|
| OE-03 | MUST | In its `focus-visible` state the element draws an outline of `--slotted-focus-ring-width` in `--slotted-focus-ring-color`, offset by `--slotted-focus-ring-offset`. | `own-elements.md` |
|
|
103
103
|
| OE-04 | MUST | The element's hit area measures at least `--slotted-target-min` in both axes, and at least `--slotted-target-comfortable` under `pointer: coarse`. | `own-elements.md` |
|
|
104
104
|
| OE-05 | SHOULD | The element takes its height, inline padding, font size and gap from `--slotted-control-*` tokens of one size step, the step of the controls beside it. | `own-elements.md` |
|
|
@@ -48,9 +48,9 @@ Check: Under a paged list, the pager's last control ends on the region's end edg
|
|
|
48
48
|
|
|
49
49
|
Level: MUST
|
|
50
50
|
Applies to: what a consumer places in `app-shell`'s `nav-header` and `nav-footer` — a workspace row, an account row, a status row
|
|
51
|
-
Rule: A consumer's row in the navigation column's pinned parts is inset by `--slotted-app-shell-row-inset` and starts with a mark column `--slotted-app-shell-row-mark` wide, the avatar
|
|
51
|
+
Rule: A consumer's row in the navigation column's pinned parts is inset by `--slotted-app-shell-row-inset` and starts with a mark column `--slotted-app-shell-row-mark` wide, the avatar centerd in it.
|
|
52
52
|
Why: The destinations under it are `side-navigation` rows on the same measures; a header row without them stands on the region's edge and its avatar off the icon column.
|
|
53
|
-
Do: Read the two published measures on the row. In the rail the words are hidden and the mark stays
|
|
53
|
+
Do: Read the two published measures on the row. In the rail the words are hidden and the mark stays centerd; in the overlay card the frame adds its own inset and the row's inset stacks on it, as the destinations' does.
|
|
54
54
|
Don't: Write a bare avatar and text into the header, or pad the header by a number.
|
|
55
55
|
Check: The header's avatar and the first destination's icon share a left edge, in the column, in the rail and in the overlay.
|
|
56
56
|
|
|
@@ -79,9 +79,9 @@ Check: Scroll a long list under the header: the tab strip stays visible under th
|
|
|
79
79
|
Level: MUST
|
|
80
80
|
Applies to: fields on one line — a table row of editable cells, an inline group of fields, a grid of fields with an action button — where some carry a line of help or an error and others do not
|
|
81
81
|
Rule: Fields on one line are aligned to the start of the block axis, so every control of the line starts at the same height and has the same height whatever stands under it. A button on the line stands on the controls' row, not on the labels' or the help's.
|
|
82
|
-
Why:
|
|
83
|
-
Do: Set the `cellAlign` axis to `start` on a `table` whose cells hold fields, and the `align` axis to `start` on an `inline` of fields. In a grid of fields with a button, give the grid three rows — label, control, help — each field spanning them with `grid-template-rows: subgrid`, and place the button in the control row; a value read beside the controls is
|
|
84
|
-
Don't: Keep the table's
|
|
82
|
+
Why: Centerd or aligned to the end, a field with a line of help under it stands its control higher than its neighbour without one, and the line of controls the eye follows across the row breaks by the help's height.
|
|
83
|
+
Do: Set the `cellAlign` axis to `start` on a `table` whose cells hold fields, and the `align` axis to `start` on an `inline` of fields. In a grid of fields with a button, give the grid three rows — label, control, help — each field spanning them with `grid-template-rows: subgrid`, and place the button in the control row; a value read beside the controls is centerd on the controls' height.
|
|
84
|
+
Don't: Keep the table's centerd cells for a row of fields, where a quantity with help stood 21 pixels above the cost beside it. Align a grid of fields with `align-items: end` to bring a button level with the controls: the field with help lifts its control by the help's height.
|
|
85
85
|
Check: On a line where one field carries help and another does not, every control and the button share one top and one height, measured by bounding box.
|
|
86
86
|
|
|
87
87
|
### LA-06 · A sticky element of the screen's own stops under the page's chrome
|
|
@@ -8,7 +8,7 @@ families: [stat-card, chart, list, list-item, table, section, grid, dashboard-gr
|
|
|
8
8
|
|
|
9
9
|
# Overviews
|
|
10
10
|
|
|
11
|
-
How a screen that
|
|
11
|
+
How a screen that summarizes a module is composed: what its figures lead to,
|
|
12
12
|
what a phone keeps first, and when a chart earns its place. The library gives
|
|
13
13
|
`stat-card` a figure and an action, `chart` a comparison and its table, and
|
|
14
14
|
`list` rows that are destinations; it does not say that a figure is a door, in
|
|
@@ -21,7 +21,7 @@ Level: SHOULD
|
|
|
21
21
|
Applies to: a `stat-card` on an overview whose number counts records a list page holds
|
|
22
22
|
Rule: The figure leads to the list page of the records it counts, and that list opens with the figure's condition applied as the bar's own pills, which the reader removes like any other.
|
|
23
23
|
Why: A number the reader cannot open is a question with no way to its answer, and a list opened without the condition makes the reader rebuild the filter the figure already stood for.
|
|
24
|
-
Do: Put the door in the card's `action` part at the desk. Keep the list a destination of its own in the navigation, and let the overview
|
|
24
|
+
Do: Put the door in the card's `action` part at the desk. Keep the list a destination of its own in the navigation, and let the overview summarize and lead rather than hold the list in its body. Carry the condition in the address, so the door is a link a colleague can paste.
|
|
25
25
|
Don't: Draw a figure with no way to the records, open the unfiltered list, or narrow the list through a place the bar does not show.
|
|
26
26
|
Check: Press each figure's door: the list's bar shows the figure's pill and its count equals the figure.
|
|
27
27
|
|
|
@@ -50,7 +50,7 @@ Check: Sign in as a reader whose scope holds one category: the overview draws no
|
|
|
50
50
|
Level: SHOULD
|
|
51
51
|
Applies to: a figure of an overview whose reading changes at a share the product states — overdue receivables against all receivables
|
|
52
52
|
Rule: The thresholds are stated once in words beside the figures, and a figure past one says so in its own comparison line, on the line the placeholder reserves; the card takes `attention` at the threshold's level (`warning` or `danger`).
|
|
53
|
-
Why:
|
|
53
|
+
Why: Color is a second channel: `attention` paints the value and the edge of the card, and a reader who does not see the color reads the crossing in the comparison. The card's `tone` is the trend's and paints nothing on a card without one, and a mark added beside the label moves the card's header to a second line.
|
|
54
54
|
Do: Keep the shares in one place of the page's code and one sentence on screen ("a warning from 20 percent of receivables and a danger from 33"), end the crossed figure's comparison with the threshold it passed ("26% of receivables, above 20%"), and set `attention` to `warning` on that card.
|
|
55
55
|
Don't: Set `attention` on a card whose comparison does not name the threshold, set `tone` to flag a crossing, or add a badge to the card's header for the crossing.
|
|
56
56
|
Check: Bring a figure past each stated threshold: the threshold sentence stands beside the figures, the figure's own comparison line says it crossed, on the line its placeholder reserved, and the card carries `attention` at the threshold's level.
|
|
@@ -9,7 +9,7 @@ families: [button, typography]
|
|
|
9
9
|
# Own elements
|
|
10
10
|
|
|
11
11
|
How an element no family draws is built from the theme: which tokens it reads,
|
|
12
|
-
how its states yield, and what it keeps under focus, touch, forced
|
|
12
|
+
how its states yield, and what it keeps under focus, touch, forced colors and
|
|
13
13
|
reduced motion. The families meet each rule below; an element of the
|
|
14
14
|
application's own meets them through the same tokens. Where a family answers
|
|
15
15
|
the problem, the family is used instead (CP-04).
|
|
@@ -28,7 +28,7 @@ Check: Every custom property of the element's own CSS that starts with --slotted
|
|
|
28
28
|
|
|
29
29
|
Level: MUST
|
|
30
30
|
Applies to: an interactive element of the application's own
|
|
31
|
-
Rule: Where two states hold at once, the element paints the ground, the edge and the text
|
|
31
|
+
Rule: Where two states hold at once, the element paints the ground, the edge and the text color of the stronger, in the order `disabled`, `loading`, `readonly`, `invalid`, `checked`, `selected`, `pressed`, `current`, `complete`, `active`, `hover`; the focus ring of OE-03 is drawn over every state.
|
|
32
32
|
Why: A disabled element that lights under the pointer reads as operable and answers nothing.
|
|
33
33
|
Do: The hover rule of a day cell excludes the disabled and the selected cell, so a selected day keeps its ground under the pointer.
|
|
34
34
|
Don't: A hover ground declared after the selected ground repaints the chosen day while the pointer crosses it.
|
|
@@ -39,7 +39,7 @@ Check: Put the pointer over a disabled, a selected and a current instance: each
|
|
|
39
39
|
Level: MUST
|
|
40
40
|
Applies to: every element of the application's own that takes focus
|
|
41
41
|
Rule: In its `focus-visible` state the element draws an outline of `--slotted-focus-ring-width` in `--slotted-focus-ring-color`, offset by `--slotted-focus-ring-offset`.
|
|
42
|
-
Why: The ring is the one focus indicator the families share, and the theme maps its
|
|
42
|
+
Why: The ring is the one focus indicator the families share, and the theme maps its color to the system highlight under forced colors.
|
|
43
43
|
Do: A day cell draws the outline in `focus-visible` and keeps it while selected; in error it points `--slotted-focus-ring-color` at `--slotted-focus-ring-color-invalid`.
|
|
44
44
|
Don't: `outline: none` on the cell, with a change of ground as the only sign of focus.
|
|
45
45
|
Check: Move focus with the keyboard in the light, dark and high-contrast schemes: the ring is drawn at the theme's width and offset in each.
|
|
@@ -64,15 +64,15 @@ Do: A week picker beside a `button` at the medium step reads `--slotted-control-
|
|
|
64
64
|
Don't: A height taken from the space scale that matches the button only at the comfortable density.
|
|
65
65
|
Check: Switch the density among comfortable, compact and dense: the element's height equals the height of the button beside it in each.
|
|
66
66
|
|
|
67
|
-
### OE-06 · Forced
|
|
67
|
+
### OE-06 · Forced colors keep states
|
|
68
68
|
|
|
69
69
|
Level: MUST
|
|
70
70
|
Applies to: an element of the application's own that shows a state
|
|
71
71
|
Rule: Under `forced-colors: active`, each state the element shows differs from rest by a border, an outline or text, not by a ground or a shadow alone.
|
|
72
|
-
Why: The system replaces every ground with its own and removes shadows, so a state carried by
|
|
72
|
+
Why: The system replaces every ground with its own and removes shadows, so a state carried by color alone disappears.
|
|
73
73
|
Do: A selected day adds an edge of `--slotted-border-width-thick` to its tinted ground.
|
|
74
74
|
Don't: A selected day told apart only by `--slotted-tone-accent-surface`.
|
|
75
|
-
Check: Emulate forced
|
|
75
|
+
Check: Emulate forced colors and step through every state: each reads differently from rest.
|
|
76
76
|
|
|
77
77
|
### OE-07 · Motion follows the scale
|
|
78
78
|
|
|
@@ -109,7 +109,7 @@ Check: At a fixed viewport, resize the element's container across its threshold
|
|
|
109
109
|
Level: SHOULD
|
|
110
110
|
Applies to: an element of the application's own that stands above another surface
|
|
111
111
|
Rule: A surface above another takes `--slotted-surface-raised` with one step of the `shadow` group, and a layer that floats over the page takes its stacking order from the `z-index` group.
|
|
112
|
-
Why: The theme pairs each elevation with a ground per scheme and drops shadows under forced
|
|
112
|
+
Why: The theme pairs each elevation with a ground per scheme and drops shadows under forced colors; a shadow or a stacking order written by hand stays outside both.
|
|
113
113
|
Do: A day's detail card floats with `--slotted-surface-raised`, `--slotted-shadow-md` and `--slotted-z-index-popover`.
|
|
114
114
|
Don't: A shadow written as a literal and a stacking order of 9999.
|
|
115
115
|
Check: Every shadow and every stacking order of the element's own CSS reads a token of these two groups.
|
|
@@ -103,7 +103,7 @@ Level: SHOULD
|
|
|
103
103
|
Applies to: a record that moves through states other people watch — an order, a quote, a shipment, a ticket
|
|
104
104
|
Rule: The page answers "where is this" above the record's contents: the steps it has passed, the step it is on, what that step is waiting on, and one sentence naming what happens next.
|
|
105
105
|
Why: A reader opening an order is asking what is holding it up, not what is on line seven; a status word alone says where it is and not what it is waiting for, and the lines say neither.
|
|
106
|
-
Do: Draw the steps as the record's own element (CP-04) with the state each one is in, and give the stopped record its own tone — a hold and a cancellation are not the same
|
|
106
|
+
Do: Draw the steps as the record's own element (CP-04) with the state each one is in, and give the stopped record its own tone — a hold and a cancellation are not the same color as progress. The figures stay above it (RP-02) and the related records below (RP-03).
|
|
107
107
|
Don't: Leave the lifecycle to a status `tag` in the header, or bury it under the lines.
|
|
108
108
|
Check: Open a record waiting on a step: the page says the step, who it waits on and what happens next, above its contents.
|
|
109
109
|
|
package/docs/highlight.json
CHANGED
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
"The text a reader hears is the text: every run is a slice of the string handed in, nothing is parsed and nothing is hidden. A label holding <b> reads <b>.",
|
|
166
166
|
"Most screen readers do not announce mark by default (MDN, Accessibility). The family injects no hidden “highlight start” before each match: a five-match option would become ten announcements. An application that needs the announcement writes the ::before rule in its own scope, over [data-ui=\"highlight\"] [data-part=\"match\"].",
|
|
167
167
|
"The mark changes no metric of the word — weight, spacing and padding are the label’s own — so a filter that marks a different span on every keystroke never reflows the label under the reader’s eyes.",
|
|
168
|
-
"The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced
|
|
169
|
-
"A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest
|
|
168
|
+
"The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced colors the Highlight and HighlightText pair the user agent draws its own find match in.",
|
|
169
|
+
"A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest color on the surface is not on it."
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
},
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"title": "A query, compared the way the reader’s locale compares",
|
|
201
201
|
"note": "The comparison is Intl.Collator at base sensitivity: aca finds Açaí, resume finds Résumé and strasse finds Straße. Nothing is a regular expression — C++ and a.b are text.",
|
|
202
202
|
"language": "html",
|
|
203
|
-
"source": "<span slHighlight text=\"Açaí do Vale Ltda.\" query=\"aca\"></span>\n<span slHighlight text=\"Résumé
|
|
203
|
+
"source": "<span slHighlight text=\"Açaí do Vale Ltda.\" query=\"aca\"></span>\n<span slHighlight text=\"Résumé Services\" query=\"RESUME\"></span>\n<span slHighlight text=\"Straße 12\" query=\"strasse\"></span>\n<span slHighlight text=\"C++ Consulting a.b\" query=\"c++\"></span>\n",
|
|
204
204
|
"verdict": "excerpt"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"title": "Several queries at once",
|
|
209
209
|
"note": "An array marks every query, and two that overlap or touch become one run: an and na over banana is one mark, never a mark inside a mark.",
|
|
210
210
|
"language": "html",
|
|
211
|
-
"source": "<span slHighlight text=\"Banana
|
|
211
|
+
"source": "<span slHighlight text=\"Banana Brazil Foods\" [query]=\"['an', 'na']\"></span>\n<span slHighlight text=\"Invoice no. 2026-0441\" [query]=\"['invoice', '0441']\"></span>\n",
|
|
212
212
|
"verdict": "excerpt"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"title": "Spans a server already found",
|
|
225
225
|
"note": "ranges wins over query: the marks are the indexes the search engine returned, in the text’s own code units. A span past the end is clipped, an inverted one is turned round, and one inside an emoji is widened to the whole character.",
|
|
226
226
|
"language": "html",
|
|
227
|
-
"source": "<span slHighlight text=\"
|
|
227
|
+
"source": "<span slHighlight text=\"Supplier certified in 2024\" [ranges]=\"[[9, 18]]\"></span>\n<span\n slHighlight\n text=\"🇧🇷 Brazil Cables\"\n [ranges]=\"[\n [1, 2],\n [12, 40],\n ]\"\n></span>\n",
|
|
228
228
|
"verdict": "excerpt"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"title": "A matcher of the consumer’s own",
|
|
233
233
|
"note": "matcher replaces the collator scan and receives the queries already trimmed of empties. Here it marks whole words only — the one capability Chakra ships as exactMatch, written in three lines over what the family exports.",
|
|
234
234
|
"language": "ts",
|
|
235
|
-
"source": "import { matchRanges } from '@slotted/core/highlight';\n\nfunction boundary(text: string, at: number) {\n const around = text.slice(Math.max(0, at - 1), at + 1);\n return at === 0 || at === text.length || /\\W/.test(around);\n}\nexport function wholeWords(text: string, queries: readonly string[]) {\n const inside = ([start, end]: readonly [number, number]) =>\n boundary(text, start) && boundary(text, end);\n return matchRanges(text, queries).filter(inside);\n}\n\n// <span slHighlight text=\"
|
|
235
|
+
"source": "import { matchRanges } from '@slotted/core/highlight';\n\nfunction boundary(text: string, at: number) {\n const around = text.slice(Math.max(0, at - 1), at + 1);\n return at === 0 || at === text.length || /\\W/.test(around);\n}\nexport function wholeWords(text: string, queries: readonly string[]) {\n const inside = ([start, end]: readonly [number, number]) =>\n boundary(text, start) && boundary(text, end);\n return matchRanges(text, queries).filter(inside);\n}\n\n// <span slHighlight text=\"Steel cable and network cables\" query=\"cable\" [matcher]=\"wholeWords\"></span>\n",
|
|
236
236
|
"verdict": "excerpt"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"title": "The match a find bar is standing on",
|
|
241
241
|
"note": "current names one match by index, counting matches only, and that mark takes the accent’s solid ground and ink. The family never moves it: the arrows belong to the find bar, and scrolling to it is the consumer’s, through the element.",
|
|
242
242
|
"language": "html",
|
|
243
|
-
"source": "<span slHighlight [text]=\"clause\" query=\"
|
|
243
|
+
"source": "<span slHighlight [text]=\"clause\" query=\"supplier\" [current]=\"current()\"></span>\n",
|
|
244
244
|
"verdict": "excerpt"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"title": "Disabled, from the root or from the row above it",
|
|
249
249
|
"note": "A disabled mark gives up the tone and keeps the rule, so the reader still sees which span matched on an option they cannot take. The state is read from data-disabled on the root or on any ancestor, so a host’s option says it once.",
|
|
250
250
|
"language": "html",
|
|
251
|
-
"source": "<span slHighlight text=\"Cloudberry
|
|
251
|
+
"source": "<span slHighlight text=\"Cloudberry Logistics\" query=\"berr\" disabled></span>\n\n<div data-disabled>\n <span slHighlight text=\"Gooseberry Transport\" query=\"berr\"></span>\n</div>\n",
|
|
252
252
|
"verdict": "excerpt"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"title": "Content the family did not choose",
|
|
265
265
|
"note": "A run that wraps is two boxes and both carry the band; a mark inside Arabic sits where the logical indexes put it in either direction; a query inside a flag or a decomposed accent widens to the whole character; a thousand-character label with a one-letter query answers under a millisecond.",
|
|
266
266
|
"language": "html",
|
|
267
|
-
"source": "<span slHighlight text=\"
|
|
267
|
+
"source": "<span slHighlight text=\"Consolidated annual sales report\" query=\"consolidated annual\"></span>\n<span slHighlight text=\"شركة النور للتجارة\" query=\"النور\"></span>\n<span slHighlight text=\"🇧🇷 Brazil · Crème\" [query]=\"['bra', 'e']\"></span>\n",
|
|
268
268
|
"verdict": "excerpt"
|
|
269
269
|
},
|
|
270
270
|
{
|
package/docs/highlight.md
CHANGED
|
@@ -57,8 +57,8 @@ Excerpt — not a complete module
|
|
|
57
57
|
- The text a reader hears is the text: every run is a slice of the string handed in, nothing is parsed and nothing is hidden. A label holding <b> reads <b>.
|
|
58
58
|
- Most screen readers do not announce mark by default (MDN, Accessibility). The family injects no hidden “highlight start” before each match: a five-match option would become ten announcements. An application that needs the announcement writes the ::before rule in its own scope, over [data-ui="highlight"] [data-part="match"].
|
|
59
59
|
- The mark changes no metric of the word — weight, spacing and padding are the label’s own — so a filter that marks a different span on every keystroke never reflows the label under the reader’s eyes.
|
|
60
|
-
- The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced
|
|
61
|
-
- A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest
|
|
60
|
+
- The current match is not a stronger band: 0.075 is the share the 7:1 promise caps in high-contrast, and doubling it leaves 6.5:1. It takes the accent’s solid ground and the ink the theme pairs with it, and under forced colors the Highlight and HighlightText pair the user agent draws its own find match in.
|
|
61
|
+
- A disabled row’s mark gives up the tone and keeps the rule, so the reader still sees which span matched on the one option they cannot take, and the loudest color on the surface is not on it.
|
|
62
62
|
|
|
63
63
|
## Tokens
|
|
64
64
|
|
|
@@ -74,9 +74,9 @@ Excerpt — not a complete module
|
|
|
74
74
|
|
|
75
75
|
```html
|
|
76
76
|
<span slHighlight text="Açaí do Vale Ltda." query="aca"></span>
|
|
77
|
-
<span slHighlight text="Résumé
|
|
77
|
+
<span slHighlight text="Résumé Services" query="RESUME"></span>
|
|
78
78
|
<span slHighlight text="Straße 12" query="strasse"></span>
|
|
79
|
-
<span slHighlight text="C++
|
|
79
|
+
<span slHighlight text="C++ Consulting a.b" query="c++"></span>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### Several queries at once
|
|
@@ -86,8 +86,8 @@ An array marks every query, and two that overlap or touch become one run: an and
|
|
|
86
86
|
Excerpt — not a complete module
|
|
87
87
|
|
|
88
88
|
```html
|
|
89
|
-
<span slHighlight text="Banana
|
|
90
|
-
<span slHighlight text="
|
|
89
|
+
<span slHighlight text="Banana Brazil Foods" [query]="['an', 'na']"></span>
|
|
90
|
+
<span slHighlight text="Invoice no. 2026-0441" [query]="['invoice', '0441']"></span>
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
### Every occurrence, or the first
|
|
@@ -108,10 +108,10 @@ ranges wins over query: the marks are the indexes the search engine returned, in
|
|
|
108
108
|
Excerpt — not a complete module
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
|
-
<span slHighlight text="
|
|
111
|
+
<span slHighlight text="Supplier certified in 2024" [ranges]="[[9, 18]]"></span>
|
|
112
112
|
<span
|
|
113
113
|
slHighlight
|
|
114
|
-
text="🇧🇷
|
|
114
|
+
text="🇧🇷 Brazil Cables"
|
|
115
115
|
[ranges]="[
|
|
116
116
|
[1, 2],
|
|
117
117
|
[12, 40],
|
|
@@ -138,7 +138,7 @@ export function wholeWords(text: string, queries: readonly string[]) {
|
|
|
138
138
|
return matchRanges(text, queries).filter(inside);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
// <span slHighlight text="
|
|
141
|
+
// <span slHighlight text="Steel cable and network cables" query="cable" [matcher]="wholeWords"></span>
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
### The match a find bar is standing on
|
|
@@ -148,7 +148,7 @@ current names one match by index, counting matches only, and that mark takes the
|
|
|
148
148
|
Excerpt — not a complete module
|
|
149
149
|
|
|
150
150
|
```html
|
|
151
|
-
<span slHighlight [text]="clause" query="
|
|
151
|
+
<span slHighlight [text]="clause" query="supplier" [current]="current()"></span>
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
### Disabled, from the root or from the row above it
|
|
@@ -158,10 +158,10 @@ A disabled mark gives up the tone and keeps the rule, so the reader still sees w
|
|
|
158
158
|
Excerpt — not a complete module
|
|
159
159
|
|
|
160
160
|
```html
|
|
161
|
-
<span slHighlight text="Cloudberry
|
|
161
|
+
<span slHighlight text="Cloudberry Logistics" query="berr" disabled></span>
|
|
162
162
|
|
|
163
163
|
<div data-disabled>
|
|
164
|
-
<span slHighlight text="Gooseberry
|
|
164
|
+
<span slHighlight text="Gooseberry Transport" query="berr"></span>
|
|
165
165
|
</div>
|
|
166
166
|
```
|
|
167
167
|
|
|
@@ -189,9 +189,9 @@ A run that wraps is two boxes and both carry the band; a mark inside Arabic sits
|
|
|
189
189
|
Excerpt — not a complete module
|
|
190
190
|
|
|
191
191
|
```html
|
|
192
|
-
<span slHighlight text="
|
|
192
|
+
<span slHighlight text="Consolidated annual sales report" query="consolidated annual"></span>
|
|
193
193
|
<span slHighlight text="شركة النور للتجارة" query="النور"></span>
|
|
194
|
-
<span slHighlight text="🇧🇷
|
|
194
|
+
<span slHighlight text="🇧🇷 Brazil · Crème" [query]="['bra', 'e']"></span>
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
### What a reader hears
|
package/docs/icon.json
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"type": "'inherit' | 'default' | 'muted' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'inverse'",
|
|
63
63
|
"defaultValue": "inherit",
|
|
64
64
|
"appliesTo": "slIcon",
|
|
65
|
-
"description": "
|
|
65
|
+
"description": "Color; inherit takes the color of the text beside it"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "directional",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"WAI-ARIA requires a label on role=\"img\" (§5.2.8 lists img among the roles for which a name is required), which is why the role appears only once a name exists.",
|
|
102
102
|
"An aria-label or aria-labelledby written on the element is read as a name, so the icon a consumer labelled directly keeps its label and stays in the tree.",
|
|
103
103
|
"The name says what the icon means, not what it draws: “Payment failed”, not “red triangle”. An icon that repeats adjacent text is decorative and stays out of the tree.",
|
|
104
|
-
"
|
|
104
|
+
"Color is inherited, so an icon works in forced colors without a rule of its own. Color alone never carries the state: the icon accompanies text, or it carries a name.",
|
|
105
105
|
"size=\"text\" is 1em, so it follows the type it sits in under page zoom and under a text-only resize alike. The sm, md and lg steps read the theme’s control geometry, which page zoom scales and a text-only resize does not; an application that needs the icon to follow text alone uses text, or retunes the density scale in rem.",
|
|
106
106
|
"The optical shift is computed from the cap height of the surrounding font and the size of the box, so an icon stays on the text’s optical line at every combination of the two rather than at the one ratio a constant would fit."
|
|
107
107
|
]
|
package/docs/icon.md
CHANGED
|
@@ -18,7 +18,7 @@ Excerpt — not a complete module
|
|
|
18
18
|
| Name | Type | Default | Applies to | Description |
|
|
19
19
|
| --- | --- | --- | --- | --- |
|
|
20
20
|
| `size` | `'text' \| 'sm' \| 'md' \| 'lg'` | md | slIcon | Box size; sm, md and lg read the control icon scale, text follows the type |
|
|
21
|
-
| `tone` | `'inherit' \| 'default' \| 'muted' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'inverse'` | inherit | slIcon |
|
|
21
|
+
| `tone` | `'inherit' \| 'default' \| 'muted' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'inverse'` | inherit | slIcon | Color; inherit takes the color of the text beside it |
|
|
22
22
|
| `directional` | `boolean` | false | slIcon | The artwork points somewhere, so it mirrors in a right-to-left document |
|
|
23
23
|
| `label` | `string` | — | slIcon | The name the icon carries; absent, the icon leaves the accessibility tree |
|
|
24
24
|
| `content` | `projected` | — | slIcon | The glyph — an ng-icon, an svg, any artwork the consumer projects |
|
|
@@ -38,7 +38,7 @@ Excerpt — not a complete module
|
|
|
38
38
|
- WAI-ARIA requires a label on role="img" (§5.2.8 lists img among the roles for which a name is required), which is why the role appears only once a name exists.
|
|
39
39
|
- An aria-label or aria-labelledby written on the element is read as a name, so the icon a consumer labelled directly keeps its label and stays in the tree.
|
|
40
40
|
- The name says what the icon means, not what it draws: “Payment failed”, not “red triangle”. An icon that repeats adjacent text is decorative and stays out of the tree.
|
|
41
|
-
-
|
|
41
|
+
- Color is inherited, so an icon works in forced colors without a rule of its own. Color alone never carries the state: the icon accompanies text, or it carries a name.
|
|
42
42
|
- size="text" is 1em, so it follows the type it sits in under page zoom and under a text-only resize alike. The sm, md and lg steps read the theme’s control geometry, which page zoom scales and a text-only resize does not; an application that needs the icon to follow text alone uses text, or retunes the density scale in rem.
|
|
43
43
|
- The optical shift is computed from the cap height of the surrounding font and the size of the box, so an icon stays on the text’s optical line at every combination of the two rather than at the one ratio a constant would fit.
|
|
44
44
|
|
package/docs/image.json
CHANGED
|
@@ -334,8 +334,8 @@
|
|
|
334
334
|
"There is no image pattern in the WAI-ARIA Authoring Practices; the applicable guidance is the W3C WAI alt decision tree, and the family follows it by writing the alt on its own img and leaving a projected img’s alone: an informative picture says what it shows, a decorative one says \"\" and is skipped, a functional one (a link, a button) says what it does.",
|
|
335
335
|
"The img is never taken out of the DOM. While the picture loads it is transparent over the ground; after it fails it takes no box and the fallback takes its place — but its alt is still the name a reader hears, so a broken thumbnail is announced as what it was meant to show.",
|
|
336
336
|
"The placeholder is aria-hidden and the blurred preview inside it has an empty alt: neither is content. The fallback is not hidden, because a consumer may put a retry button in it, and it is out of the flow until the picture fails so that button is neither focusable nor announced before then.",
|
|
337
|
-
"A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover —
|
|
338
|
-
"The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced
|
|
337
|
+
"A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover — color and geometry, not the photograph — and holds the hover back on a disabled button.",
|
|
338
|
+
"The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced colors the ground becomes Canvas, the edge ButtonBorder, and the glyph keeps currentColor; the photograph is left alone by the user agent’s own rule.",
|
|
339
339
|
"A caption belongs in a figcaption after the frame, and is not repeated in the alt; zoom and preview belong to Dialog, opened from a host that is a button."
|
|
340
340
|
]
|
|
341
341
|
}
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
{
|
|
404
404
|
"id": "position",
|
|
405
405
|
"title": "The focal point a crop keeps",
|
|
406
|
-
"note": "A wide picture in a square frame keeps its start, its
|
|
406
|
+
"note": "A wide picture in a square frame keeps its start, its center or its end; a portrait in a 16:9 frame keeps its top or its bottom; a CMS focal point is any object-position value. Switch the toolbar to rtl and start and end swap sides, which object-position alone does not do.",
|
|
407
407
|
"language": "html",
|
|
408
408
|
"source": "<div slImage alt=\"…\" position=\"start\" ratio=\"square\" [src]=\"site.wide\"></div>\n<div slImage alt=\"…\" position=\"top\" ratio=\"video\" [src]=\"site.portrait\"></div>\n<div slImage alt=\"…\" position=\"30% 20%\" ratio=\"video\" [src]=\"site.portrait\"></div>\n",
|
|
409
409
|
"verdict": "excerpt"
|
package/docs/image.md
CHANGED
|
@@ -85,8 +85,8 @@ Excerpt — not a complete module
|
|
|
85
85
|
- There is no image pattern in the WAI-ARIA Authoring Practices; the applicable guidance is the W3C WAI alt decision tree, and the family follows it by writing the alt on its own img and leaving a projected img’s alone: an informative picture says what it shows, a decorative one says "" and is skipped, a functional one (a link, a button) says what it does.
|
|
86
86
|
- The img is never taken out of the DOM. While the picture loads it is transparent over the ground; after it fails it takes no box and the fallback takes its place — but its alt is still the name a reader hears, so a broken thumbnail is announced as what it was meant to show.
|
|
87
87
|
- The placeholder is aria-hidden and the blurred preview inside it has an empty alt: neither is content. The fallback is not hidden, because a consumer may put a retry button in it, and it is out of the flow until the picture fails so that button is neither focusable nor announced before then.
|
|
88
|
-
- A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover —
|
|
89
|
-
- The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced
|
|
88
|
+
- A picture is not a control and paints nothing at rest. The component attaches to an a or a button, and for exactly that case the family paints the focus ring outside the box and a 2px strong edge on hover — color and geometry, not the photograph — and holds the hover back on a disabled button.
|
|
89
|
+
- The picture crosses over the ground on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme; nothing loops. Under forced colors the ground becomes Canvas, the edge ButtonBorder, and the glyph keeps currentColor; the photograph is left alone by the user agent’s own rule.
|
|
90
90
|
- A caption belongs in a figcaption after the frame, and is not repeated in the alt; zoom and preview belong to Dialog, opened from a host that is a button.
|
|
91
91
|
|
|
92
92
|
## Tokens
|
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
### The focal point a crop keeps
|
|
133
133
|
|
|
134
|
-
A wide picture in a square frame keeps its start, its
|
|
134
|
+
A wide picture in a square frame keeps its start, its center or its end; a portrait in a 16:9 frame keeps its top or its bottom; a CMS focal point is any object-position value. Switch the toolbar to rtl and start and end swap sides, which object-position alone does not do.
|
|
135
135
|
|
|
136
136
|
Excerpt — not a complete module
|
|
137
137
|
|