@canonical/design-system 0.44.0 → 0.47.0
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/data/apps/component/file_tree.ttl +1 -1
- package/data/apps/component/inline_panel.ttl +17 -0
- package/data/apps/{subcomponent → component}/log.ttl +1 -1
- package/data/apps/component/navigation.ttl +1 -1
- package/data/apps/component/notification.ttl +1 -1
- package/data/apps/component/side_navigation.ttl +50 -6
- package/data/apps/group/notifications.ttl +1 -1
- package/data/apps/layout/application_layout.ttl +1 -1
- package/data/apps/layout/content_layout.ttl +2 -3
- package/data/apps/layout/empty_layout.ttl +1 -1
- package/data/apps/layout/empty_state.ttl +1 -1
- package/data/apps/layout/login_layout.ttl +12 -0
- package/data/apps/layout/side_panel_form_layout.ttl +13 -0
- package/data/apps/pattern/action_bar.ttl +2 -2
- package/data/apps/pattern/code_diff.ttl +1 -1
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +20 -91
- package/data/apps/pattern/destructive_modal.ttl +1 -1
- package/data/apps/pattern/drawer.ttl +1 -1
- package/data/apps/pattern/notification_center.ttl +2 -2
- package/data/apps/pattern/page_header.ttl +58 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +8 -8
- package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
- package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -11
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
- package/data/apps/subcomponent/data_views-filters.ttl +13 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +13 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +13 -0
- package/data/apps/subcomponent/drawer-content.ttl +1 -1
- package/data/apps/subcomponent/drawer-footer.ttl +1 -1
- package/data/apps/subcomponent/drawer-header.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
- package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
- package/data/apps/subcomponent/side_panel-content.ttl +2 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
- package/data/apps/subcomponent/side_panel-header.ttl +212 -3
- package/data/apps_anbox/component/theme_switcher.ttl +1 -1
- package/data/apps_anbox/pattern/side_menu.ttl +0 -1
- package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
- package/data/apps_landscape/component/checkbox_group.ttl +24 -24
- package/data/apps_landscape/component/code_editor.ttl +35 -35
- package/data/apps_landscape/component/cron_schedule.ttl +4 -4
- package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
- package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
- package/data/apps_landscape/component/form_section.ttl +4 -4
- package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
- package/data/apps_landscape/component/grouped_select.ttl +25 -25
- package/data/apps_landscape/component/loading_state.ttl +8 -8
- package/data/apps_landscape/component/managed_file_input.ttl +18 -18
- package/data/apps_landscape/component/multi_select_field.ttl +50 -50
- package/data/apps_landscape/component/password_constraints.ttl +1 -1
- package/data/apps_landscape/component/progress_bar.ttl +20 -20
- package/data/apps_landscape/component/read_only_field.ttl +15 -15
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +33 -33
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
- package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
- package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
- package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
- package/data/apps_landscape/pattern/information_grid.ttl +14 -14
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +11 -11
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
- package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
- package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
- package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
- package/data/apps_landscape/pattern/table_filter.ttl +57 -57
- package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
- package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
- package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
- package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/drawer.ttl +4 -4
- package/data/apps_launchpad/component/modal.ttl +4 -12
- package/data/apps_launchpad/component/radio_input.ttl +5 -5
- package/data/apps_launchpad/component/select_input.ttl +1 -1
- package/data/apps_launchpad/component/switch.ttl +5 -5
- package/data/apps_launchpad/component/text_input.ttl +8 -8
- package/data/apps_launchpad/component/textarea_input.ttl +10 -10
- package/data/apps_launchpad/component/tooltip.ttl +3 -3
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
- package/data/apps_lxd/component/back_link.ttl +1 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/doc_link.ttl +2 -2
- package/data/apps_lxd/component/meter.ttl +5 -5
- package/data/apps_lxd/component/output_field.ttl +2 -3
- package/data/apps_lxd/component/rename_header.ttl +15 -15
- package/data/apps_lxd/component/tab_links.ttl +4 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
- package/data/apps_lxd/view/network_topology.ttl +3 -4
- package/data/apps_portal/layout/details_view.ttl +0 -1
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +5 -6
- package/data/apps_workplace/component/org_chart.ttl +12 -0
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +4 -4
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
- package/data/apps_workplace/pattern/org_event_card.ttl +12 -0
- package/data/apps_workplace/subcomponent/multi_select_input.ttl +12 -0
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +10 -0
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +2 -3
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +1 -2
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -4
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -2
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +10 -0
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +13 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -1
- package/data/documentation/layout/library_layout.ttl +13 -0
- package/data/documentation/layout/search_page_layout.ttl +13 -0
- package/data/documentation/pattern/library_side_navigation.ttl +4 -4
- package/data/global/component/accordion.ttl +5 -184
- package/data/global/component/announcement.ttl +4 -4
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +7 -9
- package/data/global/component/breadcrumbs.ttl +8 -7
- package/data/global/component/button.ttl +7 -25
- package/data/global/component/button_link.ttl +1 -1
- package/data/global/component/card.ttl +3 -12
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +5 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +1 -2
- package/data/global/component/color_field.ttl +1 -1
- package/data/global/component/combobox_field.ttl +2 -18
- package/data/global/component/contextual_menu.ttl +4 -6
- package/data/global/component/date_field.ttl +1 -1
- package/data/global/component/date_time_field.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +3 -3
- package/data/global/component/dropdown_button.ttl +2 -3
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +3 -3
- package/data/global/component/icon_button.ttl +35 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/{apps → global}/component/key_value_pair.ttl +3 -3
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{pattern/navigation.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/markdown_editor_field.ttl +13 -0
- package/data/global/component/mode_switcher.ttl +2 -2
- package/data/global/component/notification_toast.ttl +1 -1
- package/data/global/component/number_field.ttl +1 -1
- package/data/global/component/pagination.ttl +2 -2
- package/data/global/component/password_field.ttl +1 -1
- package/data/global/component/phone_field.ttl +1 -1
- package/data/global/component/popover.ttl +1 -1
- package/data/global/component/query_builder.ttl +12 -0
- package/data/global/component/range_field.ttl +1 -81
- package/data/global/component/rating_field.ttl +1 -1
- package/data/global/component/relative_timestamp.ttl +2 -1
- package/data/global/component/rich_choices_field.ttl +1 -1
- package/data/global/component/rich_text_editor.ttl +12 -0
- package/data/global/component/rich_text_field.ttl +1 -1
- package/data/global/component/search_field.ttl +1 -1
- package/data/global/{subcomponent/markdown_input.ttl → component/segmented_control.ttl} +3 -3
- package/data/global/component/segmented_control_field.ttl +1 -1
- package/data/global/component/select_field.ttl +1 -1
- package/data/global/component/switch_field.ttl +1 -1
- package/data/global/component/table.ttl +4 -4
- package/data/global/component/tabs.ttl +1 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +1 -1
- package/data/global/component/textarea_field.ttl +1 -1
- package/data/global/component/tile.ttl +2 -5
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +78 -120
- package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
- package/data/global/component/tooltip_wrapper.ttl +71 -15
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +2 -6
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +3 -3
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/{component/markdown_field.ttl → pattern/filter.ttl} +3 -3
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +14 -19
- package/data/global/pattern/top_navigation.ttl +13 -0
- package/data/global/subcomponent/accordion-item.ttl +3 -156
- package/data/global/subcomponent/card-content.ttl +1 -1
- package/data/global/subcomponent/card-footer.ttl +1 -1
- package/data/global/subcomponent/card-header.ttl +1 -1
- package/data/global/subcomponent/card-image.ttl +2 -2
- package/data/global/subcomponent/card-thumbnail.ttl +1 -1
- package/data/global/subcomponent/chart_legend.ttl +1 -1
- package/data/global/subcomponent/chart_legend_item.ttl +1 -1
- package/data/global/subcomponent/checkbox_input.ttl +1 -1
- package/data/global/subcomponent/color_input.ttl +1 -1
- package/data/global/subcomponent/combobox_input.ttl +2 -18
- package/data/global/subcomponent/date_input.ttl +1 -1
- package/data/global/subcomponent/date_time_input.ttl +1 -1
- package/data/global/subcomponent/field-description.ttl +1 -1
- package/data/global/subcomponent/field-label.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +3 -19
- package/data/global/subcomponent/modal-header.ttl +5 -21
- package/data/global/subcomponent/number_input.ttl +1 -1
- package/data/global/subcomponent/password_input.ttl +1 -1
- package/data/global/subcomponent/phone_input.ttl +1 -1
- package/data/global/subcomponent/radio_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +3 -84
- package/data/global/subcomponent/rating_input.ttl +1 -1
- package/data/global/subcomponent/rich_text_input.ttl +1 -1
- package/data/global/subcomponent/search_input.ttl +3 -4
- package/data/global/subcomponent/segmented_control_input.ttl +1 -1
- package/data/global/subcomponent/select_input.ttl +1 -1
- package/data/global/subcomponent/spinner.ttl +2 -2
- package/data/global/subcomponent/switch_input.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → subcomponent/text_editor_input.ttl} +2 -2
- package/data/global/subcomponent/text_input.ttl +1 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -1
- package/data/global/subcomponent/tile-content.ttl +1 -1
- package/data/global/subcomponent/time_input.ttl +1 -1
- package/data/global/subcomponent/timeline-content.ttl +2 -2
- package/data/global/subcomponent/timeline-event.ttl +5 -5
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
- package/data/global/subcomponent/timeline-header.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +87 -6
- package/data/global_dataviews/component/filter_button.ttl +487 -0
- package/data/global_dataviews/component/query_bar.ttl +1639 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +565 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +186 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +241 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1287 -0
- package/data/{tagcategory/documentation-stage.ttl → global_dataviews.ttl} +2 -2
- package/data/sites/component/store_card.ttl +92 -0
- package/data/sites/pattern/hero.ttl +295 -4
- package/data/{stores.ttl → sites_stores.ttl} +2 -2
- package/data/tag/designin-progress.ttl +9 -0
- package/data/tag/devbatch1.ttl +1 -1
- package/data/tag/devbatch2.ttl +1 -1
- package/data/tag/devbatch3.ttl +1 -1
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → devdone.ttl} +3 -2
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/{stylesready.ttl → devin-review.ttl} +3 -3
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{devreactapproved.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{wpeinital-implementation.ttl → devsveltepreapproved.ttl} +3 -3
- package/data/tag/divergent.ttl +1 -1
- package/data/tag/docscomplete.ttl +1 -1
- package/data/tag/global-docs-missing.ttl +1 -1
- package/data/tag/has-no-global-entry.ttl +1 -1
- package/data/tag/implementationcomplete.ttl +9 -0
- package/data/tag/lpto-be-upstreamed.ttl +1 -1
- package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
- package/data/tag/lptriageno-upstream.ttl +1 -1
- package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
- package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
- package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
- package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
- package/data/tag/needsdesign.ttl +9 -0
- package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
- package/data/tag/needsimplementation.ttl +9 -0
- package/data/tag/needstriage.ttl +1 -1
- package/data/tag/specialadoption-docs.ttl +1 -1
- package/data/tag/triagedbacklog.ttl +2 -2
- package/data/tag/triagedrejected.ttl +2 -2
- package/data/tag/upstream-candidate.ttl +1 -1
- package/data/tag/upstream-compliant.ttl +1 -1
- package/data/tag/waiting-for-delta-review.ttl +1 -1
- package/data/tag/workplaceinitial-implementation.ttl +9 -0
- package/data/tag/workplacetriageupstream-and-deprecate.ttl +9 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/implementationnotes.ttl +6 -0
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +48 -7
- package/skills/adoption-a2-components/SKILL.md +125 -5
- package/skills/anatomy-author/SKILL.md +302 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/skills/map-journeys/SKILL.md +395 -0
- package/skills/map-journeys/journey-graph.example.html +298 -0
- package/skills/model-domains/SKILL.md +502 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +0 -13
- package/data/apps_workplaceengineering/pattern/group_card.ttl +0 -13
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +0 -12
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/modifier/editable.ttl +0 -8
- package/data/global/modifier/focused.ttl +0 -8
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/loading.ttl +0 -8
- package/data/global/modifier/muted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.chip a ds:Component;
|
|
6
6
|
ds:name "Chip";
|
|
7
|
-
ds:summary "A chip is a compact, interactive component used to represent an attribute, entity, while facilitating secondary actions. Chips elevate specific information in the visual hierarchy, such as categories or selected tags, allowing users to trigger contextual behaviors like filtering, triggering a [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF), selection, or dismissal. Unlike the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp), chips are always actionable. Chips should complement, rather than replace, the primary page actions
|
|
7
|
+
ds:summary "A chip is a compact, interactive component used to represent an attribute, entity, while facilitating secondary actions. Chips elevate specific information in the visual hierarchy, such as categories or selected tags, allowing users to trigger contextual behaviors like filtering, triggering a [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF), selection, or dismissal. Unlike the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp), chips are always actionable. Chips should complement, rather than replace, the primary page actions.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2877-8032&t=ch8BFFPUe9gCvMdg-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2093-9647&t=ch8BFFPUe9gCvMdg-1\n\n";
|
|
10
10
|
ds:usage "### When to use\n\n- When displaying applied filters in a list, allowing users to see and dismiss active parameters. For example, the [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) displays selected items inside the input as a dismissible Chip.\n- When displaying a tag, category, or other attributes that a user can interact with. For example, use as a shortcut to filtering. There can be multiple instances of the chip, each representing a different attribute. It is common to find chips located inside of other components such as a table cell, a card, or next to the entity they belong to. \n- When displaying an entity (an object with its own parameters) that needs to trigger a popover for more information. For example, a computer name that would be rendered as a chip and display more details inside a popover when interacted with. \n- When users need to interact with tags, categories, or objects that can be added or removed from a collection.\n\n### When not to use\n\n- If the information is purely read-only (e.g., a \"Status\" indicator), use the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp) component instead.\n- Do not use chips for actions on a page, such as \"Submit,\" \"Save,\" or \"Delete All\"; use a [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) for these tasks.\n- Chips should not be used as navigation. They should not replace links, the primary navigation menu nor replace [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd) for structural navigation.\n- If the user needs to input detailed text or data, use a [Field](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-y2LECO9EbF) or [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xiMRYATXwr) component rather than a series of chips.\n- Avoid using too many chips in a single view if they compete for attention with the primary content of the page.";
|
|
11
11
|
ds:guidelines "Accessibility\n\n## **Color accessibility**\n\n- Chips border colors need to satisfy 3:1 contrast against the lightest/darkest background color state.\n- Use a modifier if it makes sense semantically for your use case.\n- Avoid using semantic color modifiers on top of colored backgrounds.\n- Ensure you don’t use colour as the only visual means of conveying information or an action.\n\n## Alternative text\n\n- There should be an alternative text specified when the value (text) doesn't provide enough contextual information E.g. \"status important\" instead of the default \"important\" as the value of the chip\n\n## Keyboard interactions and focus\n\n- When pressing `Enter` a default chip should perform the filtering action based on its value, the dismissible chip should revert the filtering behavior.\n- When tabulating through chips, the focus area should be the whole chip for the default chip, the dismissible area for the dismissible chip. ";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "value";
|
|
@@ -32,14 +32,14 @@ ds:global.component.chip a ds:Component;
|
|
|
32
32
|
], [
|
|
33
33
|
a ds:Property;
|
|
34
34
|
ds:name "state";
|
|
35
|
-
ds:summary "The state the button is currently in.
|
|
35
|
+
ds:summary "The state the button is currently in.";
|
|
36
36
|
ds:propertyType "choice";
|
|
37
37
|
ds:optional "false";
|
|
38
38
|
ds:defaultValue "default"
|
|
39
39
|
], [
|
|
40
40
|
a ds:Property;
|
|
41
41
|
ds:name "color";
|
|
42
|
-
ds:summary "The color the chip should have. Be aware that some of the colors might be interpreted in a semantic way by users. The color token for chips allows input of a hue, and auto generates the correct lightness and chroma.
|
|
42
|
+
ds:summary "The color the chip should have. Be aware that some of the colors might be interpreted in a semantic way by users. The color token for chips allows input of a hue, and auto generates the correct lightness and chroma.";
|
|
43
43
|
ds:propertyType "choice";
|
|
44
44
|
ds:optional "false";
|
|
45
45
|
ds:defaultValue "color-foreground-secondary-root"
|
|
@@ -65,15 +65,14 @@ ds:global.component.chip a ds:Component;
|
|
|
65
65
|
ds:optional "true";
|
|
66
66
|
ds:defaultValue "none"
|
|
67
67
|
];
|
|
68
|
+
ds:hasModifierFamily ds:global.modifier_family.criticality;
|
|
68
69
|
ds:changeLog [
|
|
69
70
|
a ds:ChangeLogEntry;
|
|
70
71
|
ds:timestamp "2026-02-20T09:00:00.000+01:00";
|
|
71
|
-
ds:change "added initial documentation";
|
|
72
72
|
ds:changeType "change"
|
|
73
73
|
], [
|
|
74
74
|
a ds:ChangeLogEntry;
|
|
75
75
|
ds:timestamp "2026-05-01T00:00:00.000+02:00";
|
|
76
|
-
ds:change "we decided to not use chips as filters - in the sense as they are the only option to filtering, however, we want the chips to act as a shortcut to a filter: so when clicking on a chip triggers a filter selection ";
|
|
77
76
|
ds:changeType "decision"
|
|
78
77
|
], [
|
|
79
78
|
a ds:ChangeLogEntry;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.choices_field a ds:Component;
|
|
6
6
|
ds:name "ChoicesField";
|
|
7
|
-
ds:summary "A form control for selecting one or several options from a set of text-labelled choices, with control over whether the options sit inline or stacked. It frames the set with a label, optional guidance, and validation.";
|
|
8
|
-
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form src/lib/common/Wrapper/styles.css on .ds.field\n# and src/lib/component/ChoicesField/styles.css on .ds.form-choices\n# The field chrome is the shared Wrapper's; the payload holds one fieldset of\n# options, each a control beside its own label. The control is a radio or a\n# checkbox depending on the `type` prop — a genuine prop switch — and each\n# control's own styles live in its own anatomy. The three layouts the fieldset\n# offers (inline wrapping by default, `.stacked` one per line, `.columns` a\n# grid of --choices-columns equal columns) change layout only, never the tree,\n# so the default is what is bound here.\nnode:\n uri: global.component.choices_field\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n # reads --form-field-columns.\n layout.grid.column: \"1 / -1\"\n layout.align: baseline\n # reads --form-field-label-gap (--space-100 -> --dimension-100).\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-label\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n role: payload\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n layout.grid.column: \"1 / -1\"\n # reads --form-group-gap (--space-100 -> --dimension-100).\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-description\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n role: choices group\n styles:\n layout.type: flex\n layout.wrap: wrap\n layout.grid.column: \"1 / -1\"\n appearance.border.style: none\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.external.block.start: 0\n spacing.external.block.end: 0\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n # The fieldset's own inline padding reads\n # --form-input-padding-inline (--component-padding-inline ->\n # --space-200 -> --dimension-200, 16px).\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n # The row gap between wrapped options reads --form-group-gap,\n # the block gap between fields; the column gap reads\n # --container-gap-loose (--space-300 -> --dimension-300, 24px),\n # which no spacing role states.\n spacing.gap.block: spacing.gap.field.block\n spacing.gap.inline: dimension.300\n edges:\n - node:\n role: option\n styles:\n layout.type: flex\n layout.align: center\n # reads --space-100 (-> --dimension-100): the gap between\n # the mark and its label.\n spacing.gap: spacing.gap.mark.inline\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n edges:\n - switch:\n on: props\n cases:\n - uri: global.subcomponent.radio_input\n - uri: global.subcomponent.checkbox_input\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: option label\n styles:\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # The reference reads\n # --form-label-color-disabled first, which no\n # symbol declares.\n typography.color@disabled: color.text.disabled\n relation:\n cardinality: \"1\"\n slotName: label\n relation:\n cardinality: \"2..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.subcomponent.field-error\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"0..1\"\n slotName: error\n relation:\n cardinality: \"1\"";
|
|
7
|
+
ds:summary "A form control for selecting one or several options from a set of text-labelled choices, with control over whether the options sit inline or stacked. Each option may carry a one-line muted description. It frames the set with a label, optional guidance, and validation.";
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form src/lib/common/Wrapper/styles.css on .ds.field\n# and src/lib/component/ChoicesField/styles.css on .ds.form-choices\n# The field chrome is the shared Wrapper's; the payload holds one fieldset of\n# options, each a control beside its own label. The control is a radio or a\n# checkbox depending on the `type` prop — a genuine prop switch — and each\n# control's own styles live in its own anatomy. The three layouts the fieldset\n# offers (inline wrapping by default, `.stacked` one per line, `.columns` a\n# grid of --choices-columns equal columns) change layout only, never the tree,\n# so the default is what is bound here.\nnode:\n uri: global.component.choices_field\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n # reads --form-field-columns.\n layout.grid.column: \"1 / -1\"\n layout.align: baseline\n # reads --form-field-label-gap (--space-100 -> --dimension-100).\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-label\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n role: payload\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n layout.grid.column: \"1 / -1\"\n # reads --form-group-gap (--space-100 -> --dimension-100).\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-description\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n role: choices group\n styles:\n layout.type: flex\n layout.wrap: wrap\n layout.grid.column: \"1 / -1\"\n appearance.border.style: none\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.external.block.start: 0\n spacing.external.block.end: 0\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n # The fieldset's own inline padding reads\n # --form-input-padding-inline (--component-padding-inline ->\n # --space-200 -> --dimension-200, 16px).\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n # The row gap between wrapped options reads --form-group-gap,\n # the block gap between fields; the column gap reads\n # --container-gap-loose (--space-300 -> --dimension-300, 24px),\n # which no spacing role states.\n spacing.gap.block: spacing.gap.field.block\n spacing.gap.inline: dimension.300\n edges:\n - node:\n role: option\n styles:\n layout.type: flex\n layout.align: center\n # reads --space-100 (-> --dimension-100): the gap between\n # the mark and its label.\n spacing.gap: spacing.gap.mark.inline\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n edges:\n - switch:\n on: props\n cases:\n - uri: global.subcomponent.radio_input\n - uri: global.subcomponent.checkbox_input\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: option label\n styles:\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # The reference reads\n # --form-label-color-disabled first, which no\n # symbol declares.\n typography.color@disabled: color.text.disabled\n relation:\n cardinality: \"1\"\n slotName: label\n # Optional one-line muted description under the label\n # (the option's `description` field), stacked layout only.\n - node:\n role: option description\n styles:\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"\n slotName: description\n relation:\n cardinality: \"2..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.subcomponent.field-error\n styles:\n layout.grid.column: \"1 / -1\"\n relation:\n cardinality: \"0..1\"\n slotName: error\n relation:\n cardinality: \"1\"";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "Presents a small, fully visible set of options as text-only labels, where the arrangement (inline or stacked) carries meaning.\n\n\n\n### When to use\n\n- The full set of options is short enough to show at once without scrolling or filtering.\n\n- Each option is described well by a plain text label, with no supporting imagery or secondary detail.\n\n- The way options are laid out — side by side or stacked — is part of how the choice reads.\n\n\n\n### When not to use\n\n- Options need rich labels with supporting detail or imagery — use [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) .\n\n- The list is long enough that filtering would help find an option — use [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) \n\n- The choice is a single yes/no decision — use [CheckboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vwBCoHgXoG) .";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasTokenBinding [
|
|
15
15
|
a ds:TokenBinding;
|
|
16
16
|
ds:viaBlock ds:global.component.choices_field;
|
|
@@ -363,6 +363,14 @@ ds:global.component.choices_field a ds:Component;
|
|
|
363
363
|
anatomy:styleState "disabled";
|
|
364
364
|
ds:rank 1;
|
|
365
365
|
ds:consumesSymbol dt:color.text.disabled
|
|
366
|
+
], [
|
|
367
|
+
a ds:TokenBinding;
|
|
368
|
+
ds:viaBlock ds:global.component.choices_field;
|
|
369
|
+
ds:node "$root/payload/choices group/option/option description";
|
|
370
|
+
anatomy:styleKey "typography.color";
|
|
371
|
+
anatomy:styleState "default";
|
|
372
|
+
ds:rank 1;
|
|
373
|
+
ds:consumesSymbol dt:color.text.muted
|
|
366
374
|
], [
|
|
367
375
|
a ds:TokenBinding;
|
|
368
376
|
ds:viaBlock ds:global.subcomponent.field-error;
|
|
@@ -10,12 +10,11 @@ ds:global.component.code_snippet a ds:Component;
|
|
|
10
10
|
ds:usage "Use code snippet to display complex or lengthy code, commands, and technical content that benefits from features such as syntax highlighting, line numbers, and language or version selection. Always provide surrounding context that explains how the displayed code is relevant to the reader or the page content.\n\nKeep titles short and descriptive of the type of code the reader can expect in the content area.\n\n### **When to use**\n\n- The code is multi-line and benefits from syntax highlighting or correct indentation.\n- The content needs to be presented in multiple languages.\n- The content needs to be presented across different versions of a product or library, such as a command with different syntax between versions.\n- Line numbers would help the reader navigate or reference the code.\n- You need to display a full code file.\n\n### **When not to use**\n\n- For inline code references within running text. \n - Incorrect: Inserting a multi-line code snippet block in the middle of a paragraph to highlight a single variable like `const user`.\n - Remediation: Use the [InlineCode](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-SbanhxEvMc) component’s inline variant instead.\n- For log output or simple pre-formatted text. \n - Incorrect: Wrapping a server access log in a code snippet component.\n - Remediation: Use the [InlineCode](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-SbanhxEvMc) component’s code block variant instead.\n- As a code editor. Code snippet is read-only and should not be made editable. As of now the design system does not provide a code editor.\n\n";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needsdesign;
|
|
14
14
|
ds:hasSubcomponent ds:global.component.code_snippet-content, ds:global.component.code_snippet-header;
|
|
15
15
|
ds:changeLog [
|
|
16
16
|
a ds:ChangeLogEntry;
|
|
17
17
|
ds:timestamp "2026-03-21T00:00:00.000+01:00";
|
|
18
|
-
ds:change "added minimal documentation based on previous work session with design team";
|
|
19
18
|
ds:changeType "change"
|
|
20
19
|
];
|
|
21
20
|
ds:hasTokenBinding [
|
|
@@ -10,7 +10,7 @@ ds:global.component.combobox_field a ds:Component;
|
|
|
10
10
|
ds:usage "Lets the user pick one or more values from a long set, narrowing the visible options by typing to filter.\n\n### When to use\n- The set of options is large enough that scanning all of them at once is impractical.\n- Filtering as the user types meaningfully speeds up finding the intended value.\n- Either a single selection or multiple selections from the same long set is needed.\n\n### When not to use\n- The set is short and can be shown in full — use **Choices**, **SimpleChoices**, or **Select**.\n- The value is open-ended and not drawn from a predefined set — use **Text**.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needsdesign;
|
|
14
14
|
ds:hasTokenBinding [
|
|
15
15
|
a ds:TokenBinding;
|
|
16
16
|
ds:viaBlock ds:global.component.combobox_field;
|
|
@@ -331,22 +331,6 @@ ds:global.component.combobox_field a ds:Component;
|
|
|
331
331
|
anatomy:styleState "disabled";
|
|
332
332
|
ds:rank 1;
|
|
333
333
|
ds:consumesSymbol dt:color.text.disabled
|
|
334
|
-
], [
|
|
335
|
-
a ds:TokenBinding;
|
|
336
|
-
ds:viaBlock ds:global.component.button;
|
|
337
|
-
ds:node "$root";
|
|
338
|
-
anatomy:styleKey "typography.weight";
|
|
339
|
-
anatomy:styleState "default";
|
|
340
|
-
ds:rank 1;
|
|
341
|
-
ds:consumesSymbol dt:typography.weight.medium
|
|
342
|
-
], [
|
|
343
|
-
a ds:TokenBinding;
|
|
344
|
-
ds:viaBlock ds:global.component.button;
|
|
345
|
-
ds:node "$root";
|
|
346
|
-
anatomy:styleKey "typography.size";
|
|
347
|
-
anatomy:styleState "default";
|
|
348
|
-
ds:rank 1;
|
|
349
|
-
ds:consumesSymbol dt:dimension.size.fontSize.300
|
|
350
334
|
], [
|
|
351
335
|
a ds:TokenBinding;
|
|
352
336
|
ds:viaBlock ds:global.component.button;
|
|
@@ -354,7 +338,7 @@ ds:global.component.combobox_field a ds:Component;
|
|
|
354
338
|
anatomy:styleKey "typography.font";
|
|
355
339
|
anatomy:styleState "default";
|
|
356
340
|
ds:rank 1;
|
|
357
|
-
ds:consumesSymbol dt:typography.text.
|
|
341
|
+
ds:consumesSymbol dt:typography.text.primary
|
|
358
342
|
], [
|
|
359
343
|
a ds:TokenBinding;
|
|
360
344
|
ds:viaBlock ds:global.component.button;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.contextual_menu a ds:Component;
|
|
6
6
|
ds:name "ContextualMenu";
|
|
7
|
-
ds:summary "A contextual menu provides secondary actions and options that can be attached to various interface controls, including Buttons, command Links, and right-click interactions. It displays relevant actions based on the context of the element or area it's associated with, helping to keep the interface clean while making additional functionality easily accessible when needed.
|
|
7
|
+
ds:summary "A contextual menu provides secondary actions and options that can be attached to various interface controls, including Buttons, command Links, and right-click interactions. It displays relevant actions based on the context of the element or area it's associated with, helping to keep the interface clean while making additional functionality easily accessible when needed.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=5746-5679&t=B51H6nnIINbJS0am-4\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4456-89917&t=mrOkyDfhQY9JZwMz-1\n\n";
|
|
10
10
|
ds:usage "A contextual menu provides secondary actions and options that can be attached to various interface controls, including Buttons, command Links, and right-click interactions. It displays relevant actions based on the context of the element or area it's associated with, helping to keep the interface clean while making additional functionality easily accessible when needed. \n\nContextual menus are designed to initiate and perform actions, not to collect input from users. They work best for presenting action-oriented options that transform, manipulate or delete based on the user's selection. \n\n## When to use\n\n- Providing secondary actions for specific elements or content items\n- Offering context-specific operations that relate to a selected item or area\n- Keeping the primary interface clean by hiding less frequently used actions\n- Right-click functionality where desktop conventions apply\n\n## When not to use\n\n\n\n- As an input method for forms or filters. \n - Incorrect: Using a contextual menu to allow users to pick a date or select a category within a data-entry form.\n - Remediation: Use a [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xiMRYATXwr) instead to ensure the input is properly associated with the form field.\n- For collecting user preferences or settings that require input selection. \n - Incorrect: Nesting checkboxes or radio buttons inside a contextual menu to let users toggle notification settings. \n - Remediation: Use a dedicated page or a [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-XsokbPLmnc) containing standard form controls like switches and checkboxes.\n- When the actions are primary and should be immediately visible. \n - Incorrect: Hiding the only \"Delete\" or \"Edit\" button inside a contextual menu, forcing users to discover the menu before they can perform a critical task. \n - Remediation: Surface high-priority actions directly in the UI using [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s or icon buttons to ensure they are discoverable at a glance.\n- For navigation that serves as the main way to move through your application. \n - Incorrect: Placing the main links to \"Dashboard,\" \"Profile,\" and \"Settings\" inside a right-click or overflow contextual menu. \n - Remediation: Use [Navigation](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-nkDiZdUMkV) or [Tabs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-1SwWDDUyIt) to provide a persistent and accessible map of the application's architecture.\n\n\n\n## Grouping actions\n\nWhen a contextual menu contains many actions, consider organizing them into logical action groups to improve scannability and reduce cognitive load. Group related actions together based on their function or purpose.\n\nCommon grouping categories include:\n\n- **Edit actions**: Copy, cut, paste, duplicate\n- **Organization actions**: Move to folder, rename, sort\n- **Sharing and permissions**: Share, change permissions, export\n- **Destructive actions**: Delete, archive, remove (typically separated at the bottom)\n- **View options**: Open in new tab, preview, download\n\n## Managing menu length\n\nAvoid letting contextual menus grow too long, as this creates cognitive overload and makes scanning difficult. If you have many actions available:\n\n- First, group related actions using the categories mentioned above to improve organization\n- For longer lists, consider nesting actions into submenus to reduce the initial visual complexity\n- Evaluate whether all actions are truly necessary in the contextual menu, or if some could be moved to a dedicated settings area or toolbar";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "Actions";
|
|
@@ -20,10 +20,8 @@ ds:global.component.contextual_menu a ds:Component;
|
|
|
20
20
|
];
|
|
21
21
|
ds:changeLog [
|
|
22
22
|
a ds:ChangeLogEntry;
|
|
23
|
-
ds:timestamp "2026-05-04T00:00:00.000+02:00"
|
|
24
|
-
ds:change "Initial commit"
|
|
23
|
+
ds:timestamp "2026-05-04T00:00:00.000+02:00"
|
|
25
24
|
], [
|
|
26
25
|
a ds:ChangeLogEntry;
|
|
27
|
-
ds:timestamp "2026-05-11T00:00:00.000+02:00"
|
|
28
|
-
ds:change "formatting to our template"
|
|
26
|
+
ds:timestamp "2026-05-11T00:00:00.000+02:00"
|
|
29
27
|
].
|
|
@@ -10,7 +10,7 @@ ds:global.component.date_field a ds:Component;
|
|
|
10
10
|
ds:usage "A labelled calendar-date entry within a form.\n\n### When to use\n- Collecting one specific calendar day (start date, deadline, date of birth, appointment day).\n- The date is an absolute point that benefits from a calendar metaphor rather than free typing.\n- The allowable dates form a continuous range that can be bounded by an earliest and latest day.\n\n### When not to use\n- A time of day with no calendar day attached — use **Time**.\n- A calendar day together with a time of day — use **DateTime**.\n- A day drawn from a small, named set rather than the open calendar — use **Select** or **Choices**.\n- A span between two days rather than a single point — use a date-range field.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasTokenBinding [
|
|
15
15
|
a ds:TokenBinding;
|
|
16
16
|
ds:viaBlock ds:global.component.date_field;
|
|
@@ -10,7 +10,7 @@ ds:global.component.date_time_field a ds:Component;
|
|
|
10
10
|
ds:usage "A labelled combined date-and-time entry within a form.\n\n\n\n### When to use\n\n- Collecting a single moment that needs both a calendar day and a time of day (scheduled event, deadline with a cut-off hour, timestamp).\n\n- The value is an absolute point in time that benefits from a combined calendar-and-clock metaphor.\n\n- The allowable moments form a continuous range that can be bounded by an earliest and latest moment, optionally snapped to set increments.\n\n### When not to use\n\n- A calendar day with no time attached — use [DateField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Btd18SrL7F) \n\n- A time of day with no calendar day attached — use [TimeField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BoM_2nGCi9) .\n\n- A moment drawn from a small, named set rather than the open range — use [SelectField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-u5dH7O-tHI) or [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) .\n\n- A span between two moments rather than a single point — use a date-range field.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasTokenBinding [
|
|
15
15
|
a ds:TokenBinding;
|
|
16
16
|
ds:viaBlock ds:global.component.date_time_field;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.drag_and_drop_list a ds:Component;
|
|
6
6
|
ds:name "DragAndDropList";
|
|
7
|
-
ds:summary "The DragAndDropList component enables users to reorder items within a single-dimensional list through direct pointer, keyboard or touch interaction. Its primary purpose is to allow sequence manipulation via multiple different methods
|
|
7
|
+
ds:summary "The DragAndDropList component enables users to reorder items within a single-dimensional list through direct pointer, keyboard or touch interaction. Its primary purpose is to allow sequence manipulation via multiple different methods.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation.
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.dropdown_button a ds:Component;
|
|
6
6
|
ds:name "DropdownButton";
|
|
7
|
-
ds:summary "A Dropdown Button is a specialized button that includes a persistent chevron icon to indicate nested functionality. Unlike standard [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that execute a single, immediate action, the Dropdown Button reveals a [ContextualMenu](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-riXODq1wpR) of options or controls. This visual cue ensures users understand that an interaction will expand the interface to provide further choices rather than triggering an instantaneous system change.
|
|
7
|
+
ds:summary "A Dropdown Button is a specialized button that includes a persistent chevron icon to indicate nested functionality. Unlike standard [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that execute a single, immediate action, the Dropdown Button reveals a [ContextualMenu](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-riXODq1wpR) of options or controls. This visual cue ensures users understand that an interaction will expand the interface to provide further choices rather than triggering an instantaneous system change.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3155-10498&t=xywvHwUKZ8RRCYSo-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4457-109017&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "### When to use\n\n- When action-oriented menus are required to group related commands that do not fit within the primary page layout.\n- When visual cues for expansion are necessary to immediately signal that interacting with the element will reveal a list of options rather than executing a singular action.\n- When performing a filtering action and a button is needed to reveal a list of criteria or view options that update a page's content.\n\n### When not to use\n\n- When the button is intended to perform one specific, immediate task without further user input.\n - Incorrect: Using a dropdown button for a “Save” or “Delete” action that does not contain sub-options.\n - Remediation: Use a standard [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) component to avoid misleading the user into expecting a menu.\n- When the primary goal is to move the user to different high-level pages within the application.\n - Incorrect: Housing the main site navigation inside a single Dropdown Button.\n - Remediation: Use a [Navigation](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-nkDiZdUMkV) pattern or [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd) to provide a clear and persistent sense of location and movement.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:inheritsFrom ds:global.component.button;
|
|
15
15
|
ds:changeLog [
|
|
16
16
|
a ds:ChangeLogEntry;
|
|
17
17
|
ds:timestamp "2026-05-01T00:00:00.000+02:00";
|
|
18
|
-
ds:change "A new componenent dedicated to triggering filters will be developed, and then we will replace the filtering capacity of this component. The filter-specific one should include an active state, and other filter-related features";
|
|
19
18
|
ds:changeType "decision"
|
|
20
19
|
].
|