@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
|
@@ -34,15 +34,15 @@ Each search below finds a defect without running the screen.
|
|
|
34
34
|
|
|
35
35
|
| Search the screen's files for | Defect | Rule |
|
|
36
36
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------------ |
|
|
37
|
-
| A
|
|
38
|
-
| A rule of the application's CSS that sets
|
|
37
|
+
| A color literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS | a value the theme has a token for | CP-05, OE-01 |
|
|
38
|
+
| A rule of the application's CSS that sets color, border, radius, padding or type on a family's `data-ui` or `data-part` | the screen restyles a family instead of setting its axes | OE-08 |
|
|
39
39
|
| A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page | a control that fires twice | AF-03 |
|
|
40
40
|
| A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar | a wait in the wrong place, and no wait shown for the page | AF-07 |
|
|
41
41
|
| An empty state drawn from the initial value of the data, before the first answer | a wait shown as nothing | AF-01 |
|
|
42
42
|
| A spinner standing in a region that has no items yet | placeholders missing | AF-02 |
|
|
43
43
|
| Siblings of the page's own spaced by margins, or text with a font size of its own | layout outside the primitives | CP-02 |
|
|
44
44
|
| A grid or flex track around a family that scrolls, with no zero minimum | the page scrolls, not the family | CP-03 |
|
|
45
|
-
| A badge, a tag or a
|
|
45
|
+
| A badge, a tag or a color beside a family that already draws the same state | a state stated twice | CP-06 |
|
|
46
46
|
| An element of the screen's own that takes focus with no ring in its `focus-visible` state | focus not drawn | OE-03 |
|
|
47
47
|
| A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed` | a grid with no frame on the page's surface | LP-15 |
|
|
48
48
|
| A list page's `page-header` with a heading and no subheading, no figures and no solid primary action | a header that does not say what the list covers | LP-16 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: theme-app
|
|
3
|
-
description: Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand
|
|
3
|
+
description: Use when changing how an application built with @slotted/angular looks, as a whole or in one region — its brand color, a light, dark or high-contrast scheme, density, fonts, corners, or the shape of a control. Chooses the narrowest level that reaches the change — a seed, a token, a family token or a theme rule — and where it is declared.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Theme an application
|
|
@@ -14,7 +14,7 @@ Take the first row that reaches the change.
|
|
|
14
14
|
|
|
15
15
|
| The change | Level | Declared in |
|
|
16
16
|
| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
17
|
-
| The brand
|
|
17
|
+
| The brand color, or the color of one intent | a seed: `--slotted-seed-accent` or another name of `SEED_NAMES` | the theme's `seeds`, or a scope |
|
|
18
18
|
| Light, dark, high contrast, or the system's preference | the scheme: `light`, `dark`, `high-contrast`, `system` | `data-slotted-scheme`, or the scheme of the `slThemeScope` directive from `@slotted/angular/theme` |
|
|
19
19
|
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `slThemeScope` directive from `@slotted/angular/theme` |
|
|
20
20
|
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `slThemeScope` directive from `@slotted/angular/theme`; the theme's `corners` holds each radius scale |
|
|
@@ -24,8 +24,8 @@ Take the first row that reaches the change.
|
|
|
24
24
|
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
25
25
|
| What no token reaches | a theme rule | the theme's `rules` |
|
|
26
26
|
|
|
27
|
-
Every
|
|
28
|
-
new seed keeps the ratios of every scheme. A
|
|
27
|
+
Every color token derives from the six seeds within contrast bounds, so a
|
|
28
|
+
new seed keeps the ratios of every scheme. A color of the `tone`, `surface`,
|
|
29
29
|
`text` or `border` groups is changed through its seed, or through its
|
|
30
30
|
derivation in the recipe, never declared by hand.
|
|
31
31
|
|
|
@@ -63,16 +63,16 @@ has.
|
|
|
63
63
|
`data-slotted-variant-<axis>` attribute on the subtree's root or on an
|
|
64
64
|
ancestor of the scheme's root.
|
|
65
65
|
2. A seed for a subtree: the seed property on an element that also carries
|
|
66
|
-
`data-slotted-seeds`, or the seeds of the `slThemeScope` directive from `@slotted/angular/theme`. Every
|
|
66
|
+
`data-slotted-seeds`, or the seeds of the `slThemeScope` directive from `@slotted/angular/theme`. Every color under it
|
|
67
67
|
derives again from that seed.
|
|
68
|
-
3. A
|
|
68
|
+
3. A color the reader picks at runtime: write the seed property on the element
|
|
69
69
|
that carries `data-slotted-theme`, with `seedStyle` from
|
|
70
70
|
`@slotted/theme/seeds`, which leaves the token contract out of the bundle.
|
|
71
71
|
4. A bar of the application's own that floats over scrolling content — a phone
|
|
72
72
|
tab bar, a sticky banner — is a material: its background reads
|
|
73
73
|
`--slotted-surface-material` and its backdrop filter reads
|
|
74
74
|
`--slotted-material-backdrop`. The theme makes both opaque under reduced
|
|
75
|
-
transparency and forced
|
|
75
|
+
transparency and forced colors. A page header becomes that material once
|
|
76
76
|
content passes under it with its `material` input, set on the header or on
|
|
77
77
|
its defaults. A theme draws the command palette as one by setting
|
|
78
78
|
`--slotted-command-palette-surface` to the material surface and
|
|
@@ -93,7 +93,7 @@ has.
|
|
|
93
93
|
`--slotted-chart-overlay-backdrop-filter`. A chart's table view takes
|
|
94
94
|
`--slotted-chart-table-surface` and its sticky header
|
|
95
95
|
`--slotted-chart-table-header-surface`; `--slotted-chart-surface` stays
|
|
96
|
-
opaque, because the series
|
|
96
|
+
opaque, because the series colors mix with it.
|
|
97
97
|
|
|
98
98
|
## 4. Restyle a control
|
|
99
99
|
|
|
@@ -120,6 +120,6 @@ has.
|
|
|
120
120
|
## 5. Done
|
|
121
121
|
|
|
122
122
|
1. The application's own CSS declares no token of the `tone`, `surface`,
|
|
123
|
-
`text` or `border` groups, and sets no
|
|
123
|
+
`text` or `border` groups, and sets no color, border, radius, padding or
|
|
124
124
|
type on a family's `data-ui` or `data-part`.
|
|
125
125
|
2. `themeConformance` passes for the theme.
|
|
@@ -45,7 +45,7 @@ family's indicator (AF-03).
|
|
|
45
45
|
|
|
46
46
|
## 2. Placeholders are the anatomy, not rectangles
|
|
47
47
|
|
|
48
|
-
Placeholders are the same layout as the content, drawn in one
|
|
48
|
+
Placeholders are the same layout as the content, drawn in one color. Build
|
|
49
49
|
them from the loaded markup:
|
|
50
50
|
|
|
51
51
|
1. Keep the container, the parts, the grid, the inset and the gap tokens the
|
package/docs/slider.json
CHANGED
|
@@ -340,9 +340,9 @@
|
|
|
340
340
|
"Each thumb’s own min and max follow its neighbour, which is the multi-thumb pattern’s requirement that the announced range of a dependent slider be updated when the value changes. The tab order stays the array’s order however the thumbs move, which is the pattern’s second requirement.",
|
|
341
341
|
"The whole keyboard table is the family’s: arrows by step, Shift and the page keys by largeStep, Home and End to this thumb’s own bounds. The inline arrows follow the reading direction and the block arrows do not — a scale has a direction and bidi is not it — which is what the pattern’s note about reversing the direction means in a mirrored document.",
|
|
342
342
|
"aria-valuetext carries the formatted string, because aria-valuenow alone announces 1480 for a scale showing R$ 1.480,00. A mark that carries a label becomes that string at its own value, which is exactly the case the pattern names for the property.",
|
|
343
|
-
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
343
|
+
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled is native, because that is what the word means; readonly is not, because input[type=range] does not answer it.",
|
|
344
344
|
"The target is the band rather than the thumb: it is floored at 24 CSS pixels in the cross axis, which is WCAG 2.2 SC 2.5.8, and a press anywhere on it moves the nearest thumb and starts a drag.",
|
|
345
|
-
"Nothing is said by
|
|
345
|
+
"Nothing is said by color alone. Invalid is announced by aria-invalid and said in words by the field’s error, and in the high-contrast scheme the rail is a white channel with a black edge so the fill is still visible inside it."
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
},
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
"title": "Playground",
|
|
428
428
|
"note": "One scale with every input on it, driven by the controls below the canvas. Press anywhere on the band: the nearest thumb moves there and keeps following the pointer.",
|
|
429
429
|
"language": "html",
|
|
430
|
-
"source": "<div slField>\n <label slFieldLabel>Volume</label>\n <div slSlider [defaultValue]=\"40\" [max]=\"1\" [step]=\"0.01\" [format]=\"percent\"></div>\n <p slFieldDescription>
|
|
430
|
+
"source": "<div slField>\n <label slFieldLabel>Volume</label>\n <div slSlider [defaultValue]=\"40\" [max]=\"1\" [step]=\"0.01\" [format]=\"percent\"></div>\n <p slFieldDescription>Applies to all alerts in the app.</p>\n</div>\n",
|
|
431
431
|
"verdict": "excerpt"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"title": "Which axis the scale runs along",
|
|
444
444
|
"note": "A vertical scale puts its minimum at the bottom, where the browser’s own vertical range input puts it. The arrows follow: Up increases in both orientations, and only the inline pair mirrors in a right-to-left document.",
|
|
445
445
|
"language": "html",
|
|
446
|
-
"source": "<div slSlider orientation=\"vertical\" aria-label=\"
|
|
446
|
+
"source": "<div slSlider orientation=\"vertical\" aria-label=\"Treble\" [defaultValue]=\"70\"></div>\n<div slSlider orientation=\"vertical\" aria-label=\"Mid\" [defaultValue]=\"35\"></div>\n<div slSlider orientation=\"vertical\" aria-label=\"Bass\" [defaultValue]=\"50\"></div>\n",
|
|
447
447
|
"verdict": "excerpt"
|
|
448
448
|
},
|
|
449
449
|
{
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
"title": "Two thumbs, and the distance between them",
|
|
452
452
|
"note": "An array of values makes a range. Each thumb’s own min and max follow its neighbour, so the two cannot cross and a screen reader is told the range each one actually has — which is what the multi-thumb pattern requires and what clamping in script leaves wrong.",
|
|
453
453
|
"language": "html",
|
|
454
|
-
"source": "<div\n slSlider\n name=\"preco\"\n [defaultValue]=\"[240, 780]\"\n [max]=\"1000\"\n [step]=\"10\"\n [minStepsBetween]=\"2\"\n [thumbLabels]=\"['
|
|
454
|
+
"source": "<div\n slSlider\n name=\"preco\"\n [defaultValue]=\"[240, 780]\"\n [max]=\"1000\"\n [step]=\"10\"\n [minStepsBetween]=\"2\"\n [thumbLabels]=\"['Minimum price', 'Maximum price']\"\n></div>\n",
|
|
455
455
|
"verdict": "excerpt"
|
|
456
456
|
},
|
|
457
457
|
{
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
"title": "Where the number stands",
|
|
484
484
|
"note": "auto shows the bubble while a thumb is dragged or focused, always keeps it there, and none withdraws both the bubble and the read-out. The room the bubble stands in is reserved either way, so nothing moves when a drag begins.",
|
|
485
485
|
"language": "html",
|
|
486
|
-
"source": "<div slSlider valueLabel=\"auto\" [defaultValue]=\"40\"></div>\n<div slSlider valueLabel=\"always\" [defaultValue]=\"40\"></div>\n\n<!-- A value that is a sentence belongs in a label of the consumer's own. -->\n<div slSlider valueLabel=\"none\" [defaultValue]=\"2\" [max]=\"2\" [marks]=\"
|
|
486
|
+
"source": "<div slSlider valueLabel=\"auto\" [defaultValue]=\"40\"></div>\n<div slSlider valueLabel=\"always\" [defaultValue]=\"40\"></div>\n\n<!-- A value that is a sentence belongs in a label of the consumer's own. -->\n<div slSlider valueLabel=\"none\" [defaultValue]=\"2\" [max]=\"2\" [marks]=\"deliveries\"></div>\n",
|
|
487
487
|
"verdict": "excerpt"
|
|
488
488
|
},
|
|
489
489
|
{
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"title": "Content the family did not choose",
|
|
500
500
|
"note": "A five-label scale at 240 pixels, a mark label of four words, a negative range and a value written in a locale that groups with a full stop. Nothing is truncated and nothing is taken out of the DOM.",
|
|
501
501
|
"language": "html",
|
|
502
|
-
"source": "<div\n slSlider\n locale=\"pt-BR\"\n [defaultValue]=\"[-1480, 2960]\"\n [min]=\"-4000\"\n [max]=\"4000\"\n [step]=\"20\"\n [thumbLabels]=\"['
|
|
502
|
+
"source": "<div\n slSlider\n locale=\"pt-BR\"\n [defaultValue]=\"[-1480, 2960]\"\n [min]=\"-4000\"\n [max]=\"4000\"\n [step]=\"20\"\n [thumbLabels]=\"['Minimum balance', 'Maximum balance']\"\n></div>\n",
|
|
503
503
|
"verdict": "excerpt"
|
|
504
504
|
},
|
|
505
505
|
{
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
"title": "In a field, in a reactive form, and beside a number",
|
|
508
508
|
"note": "The label, the description, the error and the identifier arrive from the field with nothing written. formControl puts the value in a reactive form, name submits one value per thumb, and a number field beside the scale is the pairing the guide recommends when precision matters.",
|
|
509
509
|
"language": "html",
|
|
510
|
-
"source": "<div slField [invalid]=\"true\">\n <label slFieldLabel>
|
|
510
|
+
"source": "<div slField [invalid]=\"true\">\n <label slFieldLabel>Share</label>\n <div slSlider name=\"share\" [formControl]=\"share\" #scale=\"slSlider\"></div>\n <p slFieldError>The share cannot exceed ninety percent.</p>\n</div>\n\n<button slButton type=\"button\" (click)=\"scale.focusThumb(0)\">Ir ao valor</button>\n",
|
|
511
511
|
"verdict": "excerpt"
|
|
512
512
|
},
|
|
513
513
|
{
|
package/docs/slider.md
CHANGED
|
@@ -19,7 +19,7 @@ Excerpt — not a complete module
|
|
|
19
19
|
<div slField>
|
|
20
20
|
<label slFieldLabel>Volume</label>
|
|
21
21
|
<div slSlider [defaultValue]="40" [max]="1" [step]="0.01" [format]="percent"></div>
|
|
22
|
-
<p slFieldDescription>
|
|
22
|
+
<p slFieldDescription>Applies to all alerts in the app.</p>
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -90,9 +90,9 @@ Excerpt — not a complete module
|
|
|
90
90
|
- Each thumb’s own min and max follow its neighbour, which is the multi-thumb pattern’s requirement that the announced range of a dependent slider be updated when the value changes. The tab order stays the array’s order however the thumbs move, which is the pattern’s second requirement.
|
|
91
91
|
- The whole keyboard table is the family’s: arrows by step, Shift and the page keys by largeStep, Home and End to this thumb’s own bounds. The inline arrows follow the reading direction and the block arrows do not — a scale has a direction and bidi is not it — which is what the pattern’s note about reversing the direction means in a mirrored document.
|
|
92
92
|
- aria-valuetext carries the formatted string, because aria-valuenow alone announces 1480 for a scale showing R$ 1.480,00. A mark that carries a label becomes that string at its own value, which is exactly the case the pattern names for the property.
|
|
93
|
-
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
93
|
+
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled is native, because that is what the word means; readonly is not, because input[type=range] does not answer it.
|
|
94
94
|
- The target is the band rather than the thumb: it is floored at 24 CSS pixels in the cross axis, which is WCAG 2.2 SC 2.5.8, and a press anywhere on it moves the nearest thumb and starts a drag.
|
|
95
|
-
- Nothing is said by
|
|
95
|
+
- Nothing is said by color alone. Invalid is announced by aria-invalid and said in words by the field’s error, and in the high-contrast scheme the rail is a white channel with a black edge so the fill is still visible inside it.
|
|
96
96
|
|
|
97
97
|
## Tokens
|
|
98
98
|
|
|
@@ -124,9 +124,9 @@ A vertical scale puts its minimum at the bottom, where the browser’s own verti
|
|
|
124
124
|
Excerpt — not a complete module
|
|
125
125
|
|
|
126
126
|
```html
|
|
127
|
-
<div slSlider orientation="vertical" aria-label="
|
|
128
|
-
<div slSlider orientation="vertical" aria-label="
|
|
129
|
-
<div slSlider orientation="vertical" aria-label="
|
|
127
|
+
<div slSlider orientation="vertical" aria-label="Treble" [defaultValue]="70"></div>
|
|
128
|
+
<div slSlider orientation="vertical" aria-label="Mid" [defaultValue]="35"></div>
|
|
129
|
+
<div slSlider orientation="vertical" aria-label="Bass" [defaultValue]="50"></div>
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
### Two thumbs, and the distance between them
|
|
@@ -143,7 +143,7 @@ Excerpt — not a complete module
|
|
|
143
143
|
[max]="1000"
|
|
144
144
|
[step]="10"
|
|
145
145
|
[minStepsBetween]="2"
|
|
146
|
-
[thumbLabels]="['
|
|
146
|
+
[thumbLabels]="['Minimum price', 'Maximum price']"
|
|
147
147
|
></div>
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -198,7 +198,7 @@ Excerpt — not a complete module
|
|
|
198
198
|
<div slSlider valueLabel="always" [defaultValue]="40"></div>
|
|
199
199
|
|
|
200
200
|
<!-- A value that is a sentence belongs in a label of the consumer's own. -->
|
|
201
|
-
<div slSlider valueLabel="none" [defaultValue]="2" [max]="2" [marks]="
|
|
201
|
+
<div slSlider valueLabel="none" [defaultValue]="2" [max]="2" [marks]="deliveries"></div>
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
### Every state the family paints
|
|
@@ -228,7 +228,7 @@ Excerpt — not a complete module
|
|
|
228
228
|
[min]="-4000"
|
|
229
229
|
[max]="4000"
|
|
230
230
|
[step]="20"
|
|
231
|
-
[thumbLabels]="['
|
|
231
|
+
[thumbLabels]="['Minimum balance', 'Maximum balance']"
|
|
232
232
|
></div>
|
|
233
233
|
```
|
|
234
234
|
|
|
@@ -240,9 +240,9 @@ Excerpt — not a complete module
|
|
|
240
240
|
|
|
241
241
|
```html
|
|
242
242
|
<div slField [invalid]="true">
|
|
243
|
-
<label slFieldLabel>
|
|
244
|
-
<div slSlider name="
|
|
245
|
-
<p slFieldError>
|
|
243
|
+
<label slFieldLabel>Share</label>
|
|
244
|
+
<div slSlider name="share" [formControl]="share" #scale="slSlider"></div>
|
|
245
|
+
<p slFieldError>The share cannot exceed ninety percent.</p>
|
|
246
246
|
</div>
|
|
247
247
|
|
|
248
248
|
<button slButton type="button" (click)="scale.focusThumb(0)">Ir ao valor</button>
|
package/docs/sparkline.json
CHANGED
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
"part": "ring",
|
|
120
120
|
"element": "path",
|
|
121
121
|
"required": false,
|
|
122
|
-
"purpose": "The ground-
|
|
122
|
+
"purpose": "The ground-colored ring under the marker, drawn as a round-capped stroke so it stays round on a stretched grid."
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"part": "marker",
|
|
126
126
|
"element": "path",
|
|
127
127
|
"required": false,
|
|
128
|
-
"purpose": "The disc on the last real point, in the series
|
|
128
|
+
"purpose": "The disc on the last real point, in the series color. Present with marker on a line."
|
|
129
129
|
}
|
|
130
130
|
],
|
|
131
131
|
"api": [
|
|
@@ -291,8 +291,8 @@
|
|
|
291
291
|
"The root carries role=\"img\" and an aria-label generated from the data: the last value, the direction and the change since the first — “Fill rate: 96.1%, up 3.2% since 92.9%”. Those are the two numbers a sparkline exists to compare, and they reach a reader who cannot see the shape.",
|
|
292
292
|
"The svg is aria-hidden. A drawing with no interaction is an image, and its content is pixels; there is no APG pattern for a sparkline, and the WAI-ARIA Graphics module reserves graphics-document for a drawing whose parts are navigable, which this one has none of.",
|
|
293
293
|
"Nothing here is focusable and nothing answers a key. Tooltips and per-point highlight belong to chart; a sparkline with them would be a small line chart.",
|
|
294
|
-
"
|
|
295
|
-
"Under forced
|
|
294
|
+
"Color never carries the reading alone: the direction is in the description, the current bar is the last one by position as well as by color, and a tone is a second encoding on top of the shape.",
|
|
295
|
+
"Under forced colors the data scale and the tones map to CanvasText, the wash is withdrawn, earlier bars take GrayText and the current one CanvasText, so a series still reads as one.",
|
|
296
296
|
"The eight slots of the data scale were chosen by measurement: adjacent slots separate by at least ΔE 16.8 under simulated protanopia and deuteranopia in every scheme, and every slot clears 3:1 against every surface."
|
|
297
297
|
]
|
|
298
298
|
}
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
{
|
|
357
357
|
"id": "types",
|
|
358
358
|
"title": "A line for a trend, bars for a count per period",
|
|
359
|
-
"note": "The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full
|
|
359
|
+
"note": "The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full color.",
|
|
360
360
|
"language": "html",
|
|
361
361
|
"source": "<span slSparkline [data]=\"orders\"></span>\n<span slSparkline [data]=\"orders\" area></span>\n<span slSparkline [data]=\"orders\" area curve=\"monotone\"></span>\n<span slSparkline [data]=\"orders\" type=\"bar\"></span>\n",
|
|
362
362
|
"verdict": "excerpt"
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
{
|
|
373
373
|
"id": "tone",
|
|
374
374
|
"title": "How the series is doing",
|
|
375
|
-
"note": "A tone paints the line in the tone’s text
|
|
375
|
+
"note": "A tone paints the line in the tone’s text color: success for an error rate that fell, danger for a lead time that grew, neutral for the comparison series behind a current one. Without a tone the line is the first slot of the data scale, the accent’s own hue.",
|
|
376
376
|
"language": "html",
|
|
377
377
|
"source": "<span slSparkline [data]=\"errorRate\" label=\"Error rate\" tone=\"success\"></span>\n<span slSparkline [data]=\"leadTime\" label=\"Lead time\" tone=\"danger\"></span>\n<span slSparkline [data]=\"lastQuarter\" label=\"Last quarter\" tone=\"neutral\"></span>\n",
|
|
378
378
|
"verdict": "excerpt"
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
{
|
|
381
381
|
"id": "series",
|
|
382
382
|
"title": "Which series this is",
|
|
383
|
-
"note": "Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight
|
|
383
|
+
"note": "Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight colors a reader with deuteranopia still tells apart. A tone wins over a series where both are given.",
|
|
384
384
|
"language": "html",
|
|
385
385
|
"source": "@for (warehouse of warehouses; track warehouse.id; let index = $index) {\n <span\n slSparkline\n [data]=\"warehouse.shipments\"\n [label]=\"warehouse.name\"\n [series]=\"index + 1\"\n ></span>\n}\n",
|
|
386
386
|
"verdict": "excerpt"
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
{
|
|
389
389
|
"id": "reference",
|
|
390
390
|
"title": "A line that is not data",
|
|
391
|
-
"note": "The reference is dashed and neutral so it reads as a target before its
|
|
391
|
+
"note": "The reference is dashed and neutral so it reads as a target before its color does, and it widens the extent when it lies outside the data: a target of 95% above a series that peaks at 91% is drawn above the line, not clipped.",
|
|
392
392
|
"language": "html",
|
|
393
393
|
"source": "<span slSparkline [data]=\"onTime\" label=\"On-time delivery\" area [reference]=\"0.95\"></span>\n\n<!-- A share of a whole is drawn from nought. -->\n<span slSparkline [data]=\"onTime\" type=\"bar\" [min]=\"0\"></span>\n",
|
|
394
394
|
"verdict": "excerpt"
|
package/docs/sparkline.md
CHANGED
|
@@ -74,8 +74,8 @@ Excerpt — not a complete module
|
|
|
74
74
|
- The root carries role="img" and an aria-label generated from the data: the last value, the direction and the change since the first — “Fill rate: 96.1%, up 3.2% since 92.9%”. Those are the two numbers a sparkline exists to compare, and they reach a reader who cannot see the shape.
|
|
75
75
|
- The svg is aria-hidden. A drawing with no interaction is an image, and its content is pixels; there is no APG pattern for a sparkline, and the WAI-ARIA Graphics module reserves graphics-document for a drawing whose parts are navigable, which this one has none of.
|
|
76
76
|
- Nothing here is focusable and nothing answers a key. Tooltips and per-point highlight belong to chart; a sparkline with them would be a small line chart.
|
|
77
|
-
-
|
|
78
|
-
- Under forced
|
|
77
|
+
- Color never carries the reading alone: the direction is in the description, the current bar is the last one by position as well as by color, and a tone is a second encoding on top of the shape.
|
|
78
|
+
- Under forced colors the data scale and the tones map to CanvasText, the wash is withdrawn, earlier bars take GrayText and the current one CanvasText, so a series still reads as one.
|
|
79
79
|
- The eight slots of the data scale were chosen by measurement: adjacent slots separate by at least ΔE 16.8 under simulated protanopia and deuteranopia in every scheme, and every slot clears 3:1 against every surface.
|
|
80
80
|
|
|
81
81
|
## Tokens
|
|
@@ -86,7 +86,7 @@ Excerpt — not a complete module
|
|
|
86
86
|
|
|
87
87
|
### A line for a trend, bars for a count per period
|
|
88
88
|
|
|
89
|
-
The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full
|
|
89
|
+
The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full color.
|
|
90
90
|
|
|
91
91
|
Excerpt — not a complete module
|
|
92
92
|
|
|
@@ -111,7 +111,7 @@ Excerpt — not a complete module
|
|
|
111
111
|
|
|
112
112
|
### How the series is doing
|
|
113
113
|
|
|
114
|
-
A tone paints the line in the tone’s text
|
|
114
|
+
A tone paints the line in the tone’s text color: success for an error rate that fell, danger for a lead time that grew, neutral for the comparison series behind a current one. Without a tone the line is the first slot of the data scale, the accent’s own hue.
|
|
115
115
|
|
|
116
116
|
Excerpt — not a complete module
|
|
117
117
|
|
|
@@ -123,7 +123,7 @@ Excerpt — not a complete module
|
|
|
123
123
|
|
|
124
124
|
### Which series this is
|
|
125
125
|
|
|
126
|
-
Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight
|
|
126
|
+
Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight colors a reader with deuteranopia still tells apart. A tone wins over a series where both are given.
|
|
127
127
|
|
|
128
128
|
Excerpt — not a complete module
|
|
129
129
|
|
|
@@ -140,7 +140,7 @@ Excerpt — not a complete module
|
|
|
140
140
|
|
|
141
141
|
### A line that is not data
|
|
142
142
|
|
|
143
|
-
The reference is dashed and neutral so it reads as a target before its
|
|
143
|
+
The reference is dashed and neutral so it reads as a target before its color does, and it widens the extent when it lies outside the data: a target of 95% above a series that peaks at 91% is drawn above the line, not clipped.
|
|
144
144
|
|
|
145
145
|
Excerpt — not a complete module
|
|
146
146
|
|
package/docs/split-button.json
CHANGED
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
"title": "Playground",
|
|
286
286
|
"note": "One split button with every axis on it, driven by the controls below the canvas. Tab reaches the action, then the menu button: two controls, two stops, one shape.",
|
|
287
287
|
"language": "html",
|
|
288
|
-
"source": "<div slSplitButton>\n <button slSplitButtonPrimary (click)=\"save()\">
|
|
288
|
+
"source": "<div slSplitButton>\n <button slSplitButtonPrimary (click)=\"save()\">Save</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More save options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"saveDraft()\">Save as draft</button>\n <button slMenuItem (select)=\"saveAndClose()\">Save and close</button>\n </sl-menu>\n</div>\n",
|
|
289
289
|
"verdict": "excerpt"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"title": "Five tones, three variants, one seam",
|
|
294
294
|
"note": "Every tone and variant is button’s, handed to both halves at once. Between two solid halves the seam is the tone’s darkest step, painted on the trigger’s leading edge — the one edge the join leaves in the shared column.",
|
|
295
295
|
"language": "html",
|
|
296
|
-
"source": "<div slSplitButton tone=\"danger\" variant=\"outline\">\n <button slSplitButtonPrimary (click)=\"remove()\">
|
|
296
|
+
"source": "<div slSplitButton tone=\"danger\" variant=\"outline\">\n <button slSplitButtonPrimary (click)=\"remove()\">Delete</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More delete options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"archive()\">Arquivar em vez disso</button>\n </sl-menu>\n</div>\n",
|
|
297
297
|
"verdict": "excerpt"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"title": "Three steps, one control tall",
|
|
302
302
|
"note": "Both halves read the control scale, so the bar is exactly as tall as the field beside it and the trigger stays square at every step. Switch the density in the toolbar: the pair moves together.",
|
|
303
303
|
"language": "html",
|
|
304
|
-
"source": "<div slSplitButton size=\"sm\">\n <button slSplitButtonPrimary (click)=\"save()\">
|
|
304
|
+
"source": "<div slSplitButton size=\"sm\">\n <button slSplitButtonPrimary (click)=\"save()\">Save</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More save options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"saveDraft()\">Save as draft</button>\n </sl-menu>\n</div>\n",
|
|
305
305
|
"verdict": "excerpt"
|
|
306
306
|
},
|
|
307
307
|
{
|
|
@@ -309,15 +309,15 @@
|
|
|
309
309
|
"title": "The choice becomes the action",
|
|
310
310
|
"note": "Under remember the alternatives are radio items bound to the family’s value, and the page renders the action’s label from it — the merge button whose strategy a repository remembers. Choose one, then read the primary. Without remember the items are actions.",
|
|
311
311
|
"language": "html",
|
|
312
|
-
"source": "<div slSplitButton remember [value]=\"strategy()\" (valueChange)=\"strategy.set($event.value)\">\n <button slSplitButtonPrimary (click)=\"merge(strategy())\">{{ labels[strategy()] }}</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"
|
|
312
|
+
"source": "<div slSplitButton remember [value]=\"strategy()\" (valueChange)=\"strategy.set($event.value)\">\n <button slSplitButtonPrimary (click)=\"merge(strategy())\">{{ labels[strategy()] }}</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More merge strategies\"\n ></button>\n <sl-menu #more>\n <sl-menu-radio-group slSplitButtonChoices>\n <button slMenuRadioItem value=\"merge\">Criar um commit de merge</button>\n <button slMenuRadioItem value=\"squash\">Squash e merge</button>\n <button slMenuRadioItem value=\"rebase\">Rebase e merge</button>\n </sl-menu-radio-group>\n </sl-menu>\n</div>\n",
|
|
313
313
|
"verdict": "excerpt"
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"id": "loading",
|
|
317
317
|
"title": "The action in flight",
|
|
318
|
-
"note": "Press
|
|
318
|
+
"note": "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.",
|
|
319
319
|
"language": "html",
|
|
320
|
-
"source": "<div slSplitButton [loading]=\"saving()\">\n <button slSplitButtonPrimary (click)=\"save()\">
|
|
320
|
+
"source": "<div slSplitButton [loading]=\"saving()\">\n <button slSplitButtonPrimary (click)=\"save()\">Save</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More save options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"saveDraft()\">Save as draft</button>\n </sl-menu>\n</div>\n",
|
|
321
321
|
"verdict": "excerpt"
|
|
322
322
|
},
|
|
323
323
|
{
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"title": "Every state the contract declares",
|
|
326
326
|
"note": "disabled on the root takes both halves out natively; disabled on one half leaves the other an action. Hover, press and focus are button’s, and only focus is raised above the seam, because a hover repaints a fill and never an edge.",
|
|
327
327
|
"language": "html",
|
|
328
|
-
"source": "<div slSplitButton>\n <button slSplitButtonPrimary disabled>Mesclar</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"
|
|
328
|
+
"source": "<div slSplitButton>\n <button slSplitButtonPrimary disabled>Mesclar</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More merge options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"closeRequest()\">Close without merging</button>\n </sl-menu>\n</div>\n",
|
|
329
329
|
"verdict": "excerpt"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"title": "The line, and a narrow room",
|
|
334
334
|
"note": "fullWidth gives the line to the action alone and the trigger stays square. In a narrow column the label wraps inside its own control, which is button’s rule, and the bar never pushes past the container.",
|
|
335
335
|
"language": "html",
|
|
336
|
-
"source": "<div slSplitButton fullWidth>\n <button slSplitButtonPrimary (click)=\"order()\">
|
|
336
|
+
"source": "<div slSplitButton fullWidth>\n <button slSplitButtonPrimary (click)=\"order()\">Place order</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More order options\"\n ></button>\n <sl-menu #more>\n <button slMenuItem (select)=\"schedule()\">Schedule delivery</button>\n </sl-menu>\n</div>\n",
|
|
337
337
|
"verdict": "excerpt"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
"title": "Content the family did not choose",
|
|
342
342
|
"note": "An icon before the label is SlButton’s slButtonStart slot and reaches the primary unchanged; a long translated action wraps rather than growing the bar; a right-to-left document puts the trigger at the other end of the action. Switch the direction in the toolbar.",
|
|
343
343
|
"language": "html",
|
|
344
|
-
"source": "<button slSplitButtonPrimary (click)=\"save()\">\n <ng-icon slButtonStart name=\"lucideSave\" />\n
|
|
344
|
+
"source": "<button slSplitButtonPrimary (click)=\"save()\">\n <ng-icon slButtonStart name=\"lucideSave\" />\n Save\n</button>\n",
|
|
345
345
|
"verdict": "excerpt"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
"title": "Defaults once, the consumer’s own elements, and the handle",
|
|
350
350
|
"note": "provideSplitButtonDefaults() sets tone, variant and size for every split button under an injector, and provideButtonDefaults() is consulted after it. The root is a section here and the action carries an analytics attribute, because each part is a directive on the consumer’s own element; the second button opens the menu through sl-menu’s own instance, carrying the programmatic reason.",
|
|
351
351
|
"language": "html",
|
|
352
|
-
"source": "<!-- providers: [provideSplitButtonDefaults({ size: 'sm', variant: 'outline' })] -->\n<section slSplitButton>\n <button slSplitButtonPrimary data-track=\"save\" (click)=\"save()\">
|
|
352
|
+
"source": "<!-- providers: [provideSplitButtonDefaults({ size: 'sm', variant: 'outline' })] -->\n<section slSplitButton>\n <button slSplitButtonPrimary data-track=\"save\" (click)=\"save()\">Save</button>\n <button\n slSplitButtonMenuTrigger\n [slMenuTriggerFor]=\"more\"\n aria-label=\"More save options\"\n ></button>\n <sl-menu #more=\"slMenu\">\n <button slMenuItem (select)=\"saveDraft()\">Save as draft</button>\n </sl-menu>\n</section>\n<button slButton variant=\"ghost\" (click)=\"more.toggle(true, 'programmatic')\">Open by handle</button>\n",
|
|
353
353
|
"verdict": "excerpt"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"title": "The keyboard, key by key",
|
|
358
358
|
"note": "Tab reaches the action, then the menu button. Space and Enter run the action from the first and open the menu from the second; ArrowDown opens on the first item, ArrowUp on the last; Escape closes and returns to the trigger. ArrowDown on the action does nothing, and the line below says what the family saw.",
|
|
359
359
|
"language": "html",
|
|
360
|
-
"source": "<sl-menu #more (openChangeRequest)=\"log($event.reason)\">\n <button slMenuItem (select)=\"saveDraft()\">
|
|
360
|
+
"source": "<sl-menu #more (openChangeRequest)=\"log($event.reason)\">\n <button slMenuItem (select)=\"saveDraft()\">Save as draft</button>\n</sl-menu>\n",
|
|
361
361
|
"verdict": "excerpt"
|
|
362
362
|
}
|
|
363
363
|
]
|