@canonical/design-system 0.47.0 → 0.48.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 -2
- package/data/apps/component/inline_panel.ttl +2 -3
- package/data/apps/component/log.ttl +0 -1
- package/data/apps/component/navigation.ttl +0 -1
- package/data/apps/component/notification.ttl +0 -1
- package/data/apps/component/side_navigation.ttl +678 -5
- package/data/apps/component/skeleton_loading.ttl +0 -1
- package/data/apps/component/status_bar.ttl +0 -1
- package/data/apps/component/toolbar.ttl +0 -1
- package/data/apps/group/notifications.ttl +0 -1
- package/data/apps/layout/application_layout.ttl +1 -2
- package/data/apps/layout/content_layout.ttl +1 -2
- package/data/apps/layout/empty_layout.ttl +0 -1
- package/data/apps/layout/list_page_layout.ttl +0 -1
- package/data/apps/layout/login_layout.ttl +0 -1
- package/data/apps/layout/settings_page_layout.ttl +0 -1
- package/data/apps/layout/side_panel_form_layout.ttl +0 -1
- package/data/apps/layout/view_layout.ttl +0 -1
- package/data/apps/pattern/action_bar.ttl +0 -1
- package/data/apps/pattern/code_diff.ttl +2 -2
- package/data/apps/pattern/data_views.ttl +7 -7
- package/data/apps/pattern/datatable.ttl +7 -7
- package/data/apps/pattern/destructive_modal.ttl +0 -1
- package/data/apps/pattern/drawer.ttl +0 -1
- package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
- package/data/apps/pattern/notification_center.ttl +4 -5
- package/data/apps/pattern/page_header.ttl +17 -10
- package/data/apps/pattern/side_panel.ttl +221 -45
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +1 -1
- package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
- package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
- package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +7 -7
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
- package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
- package/data/apps/subcomponent/data_views-filters.ttl +0 -1
- package/data/apps/subcomponent/data_views-saved_views.ttl +0 -1
- package/data/apps/subcomponent/data_views-sort_panel.ttl +0 -1
- package/data/apps/subcomponent/drawer-content.ttl +0 -1
- package/data/apps/subcomponent/drawer-footer.ttl +0 -1
- package/data/apps/subcomponent/drawer-header.ttl +0 -1
- package/data/apps/subcomponent/file_tree-node.ttl +0 -1
- package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
- package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
- package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
- package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
- package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
- package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
- package/data/apps/subcomponent/side_panel-header.ttl +86 -110
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
- package/data/apps_debcrafters/component/example.ttl +0 -1
- package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_landscape/component/checkbox_group.ttl +26 -26
- package/data/apps_landscape/component/code_editor.ttl +32 -32
- package/data/apps_landscape/component/cron_schedule.ttl +2 -2
- package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
- package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
- package/data/apps_landscape/component/form_section.ttl +2 -2
- package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
- package/data/apps_landscape/component/grouped_select.ttl +23 -23
- package/data/apps_landscape/component/loading_state.ttl +6 -6
- package/data/apps_landscape/component/managed_file_input.ttl +13 -13
- package/data/apps_landscape/component/multi_select_field.ttl +44 -44
- package/data/apps_landscape/component/password_constraints.ttl +2 -2
- package/data/apps_landscape/component/progress_bar.ttl +15 -15
- package/data/apps_landscape/component/read_only_field.ttl +10 -10
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +29 -29
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
- package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
- package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
- package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
- package/data/apps_landscape/pattern/information_grid.ttl +13 -13
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +9 -9
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
- package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
- package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
- package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
- package/data/apps_landscape/pattern/table_filter.ttl +40 -40
- package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
- package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
- package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
- package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
- package/data/apps_launchpad/component/accordion.ttl +0 -1
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/description_list.ttl +1 -1
- package/data/apps_launchpad/component/drawer.ttl +0 -1
- package/data/apps_launchpad/component/link.ttl +0 -1
- package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
- package/data/apps_launchpad/component/modal.ttl +6 -6
- package/data/apps_launchpad/component/pagination.ttl +0 -1
- package/data/apps_launchpad/component/popover.ttl +0 -1
- package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
- package/data/apps_launchpad/component/spinner.ttl +0 -1
- package/data/apps_launchpad/component/table.ttl +0 -1
- package/data/apps_launchpad/component/text_input.ttl +1 -1
- package/data/apps_launchpad/component/timestamp.ttl +0 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -2
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/output_field.ttl +7 -7
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
- package/data/apps_lxd/view/network_topology.ttl +6 -6
- package/data/apps_portal/component/badge.ttl +0 -1
- package/data/apps_portal/component/credit_card_input.ttl +0 -1
- package/data/apps_portal/component/key_value_pair.ttl +0 -1
- package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
- package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
- package/data/apps_support/component/data_spotlight.ttl +0 -1
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
- package/data/apps_workplace/component/complex_multi_select.ttl +0 -1
- package/data/apps_workplace/component/label-highlight.ttl +2 -2
- package/data/apps_workplace/component/org_chart.ttl +0 -1
- package/data/apps_workplace/component/rule.ttl +0 -1
- package/data/apps_workplace/component/skip_link.ttl +0 -1
- package/data/apps_workplace/component/theme_switcher.ttl +0 -1
- package/data/apps_workplace/pattern/callout_numbers_card.ttl +1 -1
- package/data/apps_workplace/pattern/confirmation_modal.ttl +0 -1
- package/data/apps_workplace/pattern/org_event_card.ttl +0 -1
- package/data/apps_workplace/subcomponent/multi_select_input.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +0 -1
- package/data/documentation/layout/documentation_layout.ttl +0 -1
- package/data/documentation/layout/library_layout.ttl +0 -1
- package/data/documentation/layout/search_page_layout.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +1 -1
- package/data/global/component/accordion.ttl +16 -16
- package/data/global/component/announcement.ttl +2 -2
- package/data/global/component/avatar.ttl +0 -1
- package/data/global/component/badge.ttl +11 -11
- package/data/global/component/breadcrumbs.ttl +9 -9
- package/data/global/component/button.ttl +11 -11
- package/data/global/component/button_link.ttl +0 -1
- package/data/global/component/card.ttl +2 -2
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -15
- package/data/global/component/choices_field.ttl +0 -1
- package/data/global/component/code_snippet-content.ttl +0 -1
- package/data/global/component/code_snippet-header.ttl +0 -1
- package/data/global/component/code_snippet.ttl +2 -2
- package/data/global/component/color_field.ttl +0 -1
- package/data/global/component/combobox_field.ttl +0 -1
- package/data/global/component/contextual_menu.ttl +10 -9
- package/data/global/component/{tooltip_data.ttl → data_tooltip.ttl} +41 -55
- package/data/global/component/date_field.ttl +0 -1
- package/data/global/component/date_time_field.ttl +0 -1
- package/data/global/component/drag_and_drop_list.ttl +0 -1
- package/data/global/component/dropdown_button.ttl +3 -3
- package/data/global/component/file_upload_field.ttl +2 -2
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +3 -3
- package/data/global/component/icon_button.ttl +119 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/global/component/key_value_pair.ttl +0 -1
- package/data/global/component/keyboard_key.ttl +0 -1
- package/data/global/component/link.ttl +0 -1
- package/data/global/component/links.ttl +0 -1
- package/data/global/component/markdown_editor_field.ttl +0 -1
- package/data/global/component/mode_switcher.ttl +0 -1
- package/data/global/component/month_field.ttl +0 -1
- package/data/global/component/notification_inline.ttl +0 -1
- package/data/global/component/notification_toast.ttl +0 -1
- package/data/global/component/number_field.ttl +0 -1
- package/data/global/component/pagination.ttl +0 -1
- package/data/global/component/password_field.ttl +0 -1
- package/data/global/component/phone_field.ttl +0 -1
- package/data/global/component/popover.ttl +0 -1
- package/data/global/component/rating_field.ttl +0 -1
- package/data/global/component/relative_timestamp.ttl +0 -1
- package/data/global/component/rich_choices_field.ttl +0 -1
- package/data/global/component/rich_text_editor.ttl +0 -1
- package/data/global/component/rich_text_field.ttl +0 -1
- package/data/global/component/search_field.ttl +0 -1
- package/data/global/component/segmented_control.ttl +0 -1
- package/data/global/component/segmented_control_field.ttl +0 -1
- package/data/global/component/select_field.ttl +0 -1
- package/data/global/component/switch_field.ttl +0 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +0 -1
- package/data/global/component/textarea_field.ttl +0 -1
- package/data/global/component/tile.ttl +9 -9
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +31 -123
- package/data/global/component/{tooltip_wrapper.ttl → wrapper_tooltip.ttl} +45 -53
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +0 -1
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/global/group/key_value_pairs.ttl +0 -1
- package/data/global/group/keyboard_keys.ttl +0 -1
- package/data/global/group/tiles.ttl +0 -1
- package/data/global/layout/error_layout.ttl +0 -1
- package/data/global/layout/identity_page_form.ttl +0 -1
- package/data/global/modifier/achromat.ttl +8 -0
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/deutan.ttl +8 -0
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/less.ttl +8 -0
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/lts.ttl +8 -0
- package/data/global/modifier/modal.ttl +1 -1
- package/data/global/modifier/more.ttl +8 -0
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
- package/data/global/modifier_family/color_vision.ttl +9 -0
- package/data/global/modifier_family/contrast.ttl +9 -0
- package/data/global/modifier_family/elevation.ttl +9 -0
- package/data/global/modifier_family/support.ttl +9 -0
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +0 -1
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form_login.ttl +0 -1
- package/data/global/pattern/info_table.ttl +0 -1
- package/data/global/pattern/modal.ttl +197 -141
- package/data/global/pattern/stepper.ttl +0 -1
- package/data/global/pattern/table_of_contents.ttl +0 -1
- package/data/global/pattern/timeline.ttl +22 -22
- package/data/global/pattern/top_navigation.ttl +0 -1
- package/data/global/subcomponent/accordion-item.ttl +1 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
- package/data/global/subcomponent/card-content.ttl +1 -2
- package/data/global/subcomponent/card-footer.ttl +0 -1
- package/data/global/subcomponent/card-header.ttl +1 -2
- package/data/global/subcomponent/card-image.ttl +1 -2
- package/data/global/subcomponent/card-thumbnail.ttl +0 -1
- package/data/global/subcomponent/chart_legend.ttl +1 -2
- package/data/global/subcomponent/chart_legend_item.ttl +1 -2
- package/data/global/subcomponent/checkbox_input.ttl +0 -1
- package/data/global/subcomponent/color_input.ttl +0 -1
- package/data/global/subcomponent/combobox_input.ttl +0 -1
- package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
- package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
- package/data/global/subcomponent/date_input.ttl +0 -1
- package/data/global/subcomponent/date_time_input.ttl +0 -1
- package/data/global/subcomponent/field-description.ttl +1 -2
- package/data/global/subcomponent/field-error.ttl +1 -2
- package/data/global/subcomponent/field-label.ttl +1 -2
- package/data/global/subcomponent/file_upload_input.ttl +3 -3
- package/data/global/subcomponent/hidden_input.ttl +0 -1
- package/data/global/subcomponent/kvp_container.ttl +1 -2
- package/data/global/subcomponent/kvpitem_base.ttl +1 -2
- package/data/global/subcomponent/markdown_editor_input.ttl +0 -1
- package/data/global/subcomponent/modal-content.ttl +4 -13
- package/data/global/subcomponent/modal-footer.ttl +21 -29
- package/data/global/subcomponent/modal-header.ttl +53 -141
- package/data/global/subcomponent/month_input.ttl +0 -1
- package/data/global/subcomponent/number_input.ttl +0 -1
- package/data/global/subcomponent/password_input.ttl +0 -1
- package/data/global/subcomponent/phone_input.ttl +0 -1
- package/data/global/subcomponent/radio_input.ttl +0 -1
- package/data/global/subcomponent/range_input.ttl +0 -1
- package/data/global/subcomponent/rating_input.ttl +0 -1
- package/data/global/subcomponent/rich_text_input.ttl +0 -1
- package/data/global/subcomponent/search_input.ttl +8 -8
- package/data/global/subcomponent/segmented_control_input.ttl +0 -1
- package/data/global/subcomponent/select_input.ttl +0 -1
- package/data/global/subcomponent/spin_button.ttl +0 -1
- package/data/global/subcomponent/spinner.ttl +0 -1
- package/data/global/subcomponent/switch_input.ttl +0 -1
- package/data/global/subcomponent/table-cell.ttl +0 -1
- package/data/global/subcomponent/table-row.ttl +0 -1
- package/data/global/subcomponent/text_editor_input.ttl +0 -1
- package/data/global/subcomponent/text_input.ttl +0 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -2
- package/data/global/subcomponent/tile-content.ttl +0 -1
- package/data/global/subcomponent/tile-header.ttl +5 -6
- package/data/global/subcomponent/time_input.ttl +0 -1
- package/data/global/subcomponent/timeline-content.ttl +1 -2
- package/data/global/subcomponent/timeline-event.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +28 -3
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global_dataviews/component/filter_button.ttl +3 -4
- package/data/global_dataviews/component/query_bar.ttl +1 -2
- package/data/global_dataviews/component/query_chip.ttl +1 -1
- package/data/global_dataviews/group/query_chips.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_input.ttl +1 -2
- package/data/sites/component/quote.ttl +0 -1
- package/data/sites/component/rule.ttl +0 -1
- package/data/sites/component/section.ttl +0 -1
- package/data/sites/component/store_card.ttl +7 -7
- package/data/sites/group/blog_cards.ttl +0 -1
- package/data/sites/group/xblog_elements.ttl +0 -1
- package/data/sites/layout/blog_page_layout.ttl +0 -1
- package/data/sites/layout/case_study_layout.ttl +0 -1
- package/data/sites/layout/site_layout.ttl +0 -1
- package/data/sites/pattern/hero-github.ttl +0 -1
- package/data/sites/pattern/hero.ttl +1 -2
- package/data/sites/pattern/info_table.ttl +0 -1
- package/data/sites/pattern/pricing_section.ttl +0 -1
- package/data/sites/pattern/pricing_table.ttl +0 -1
- package/data/sites/pattern/read_more_section.ttl +0 -1
- package/data/sites/pattern/skip_link.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
- package/package.json +6 -6
- package/data/apps/subcomponent/side_panel-content.ttl +0 -14
- package/skills/map-journeys/SKILL.md +0 -395
- package/skills/map-journeys/journey-graph.example.html +0 -298
- package/skills/model-domains/SKILL.md +0 -502
|
@@ -2,91 +2,77 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global.component.
|
|
6
|
-
ds:name "
|
|
7
|
-
ds:summary "The data tooltip is a tooltip designed specifically for data visualisation. Its primary purpose is to reveal values when users interact with charts, graphs, maps, or other data-driven elements. It is used for displaying metrics on hover, clarifying data points that cannot be fully shown in the visual itself. \n\nThis variant helps users interpret information accurately without cluttering the interface with labels that are always visible.\n\nRelated to [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) and [
|
|
5
|
+
ds:global.component.data_tooltip a ds:Component;
|
|
6
|
+
ds:name "DataTooltip";
|
|
7
|
+
ds:summary "The data tooltip is a tooltip designed specifically for data visualisation. Its primary purpose is to reveal values when users interact with charts, graphs, maps, or other data-driven elements. It is used for displaying metrics on hover, clarifying data points that cannot be fully shown in the visual itself. \n\nThis variant helps users interpret information accurately without cluttering the interface with labels that are always visible.\n\nRelated to [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) and [WrapperTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9).";
|
|
8
8
|
ds:anatomyDsl "---\nnode:\n uri: global.component.data_tooltip\n edges:\n - node:\n role: surface\n styles:\n appearance.background: color.background\n appearance.border.color: color.border.muted\n appearance.border.style: solid\n appearance.border.width: dimension.stroke.thickness.medium\n layout.type: flex\n layout.direction: column\n layout.align: start\n spacing.internal.block.start: dimension.100\n spacing.internal.block.end: dimension.100\n spacing.internal.inline.start: dimension.100\n spacing.internal.inline.end: dimension.100\n edges:\n # No block names the heading, so it is an anonymous node.\n - node:\n role: heading\n styles:\n typography.font: typography.text.secondary.bold\n relation:\n cardinality: \"0..1\"\n slotName: heading\n - node:\n uri: global.subcomponent.chart_legend\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13993-2770&t=pA5l7Omuxa3ATwVS-1\n\n1. **Container**\n\nSurface that follows the pointer. No arrow.\n\n1. **Chart legend**\n\nDisplays the data label and value. One row per series: marker, label and value. Add or remove rows in the Items slot.\n\n1. **Heading (optional)**\n\nTitles the legend.\n\n## Styling\n\
|
|
10
|
-
ds:usage "## When to use\n\n- When inspecting individual data points in charts or visualisations\n- When users move quickly between adjacent data points\n- When content is structured as short label–value pairs (e.g. “OS: Ubuntu 24.04”, “CPU usage: 72%”), optionally with colour indicators to match visual elements such as charts\n\n## When not to use\n\n- When used outside of data visualisation contexts\n - Incorrect: A data tooltip is used to explain a form field\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA)\n- When explaining UI controls or icons\n - Incorrect: A data tooltip is attached to a settings icon\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) \n- When information must persist beyond hover\n - Incorrect: A data tooltip contains important information users must reference continuously\n - Remediation: Use a persistent component such as [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF) or inline content\n- When the element is already clearly labelled or self-explanatory.\n\n
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13993-2770&t=pA5l7Omuxa3ATwVS-1\n\n1. **Container**\n\nSurface that follows the pointer. No arrow.\n\n1. **Chart legend**\n\nDisplays the data label and value. One row per series: marker, label and value. Add or remove rows in the Items slot.\n\n1. **Heading (optional)**\n\nTitles the legend.\n\n## Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13993-4726&t=RrWrsMCRDGxl3PPJ-1";
|
|
10
|
+
ds:usage "## When to use\n\n- When inspecting individual data points in charts or visualisations\n- When users move quickly between adjacent data points\n- When content is structured as short label–value pairs (e.g. “OS: Ubuntu 24.04”, “CPU usage: 72%”), optionally with colour indicators to match visual elements such as charts\n\n## When not to use\n\n- When used outside of data visualisation contexts\n - Incorrect: A data tooltip is used to explain a form field\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA)\n- When explaining UI controls or icons\n - Incorrect: A data tooltip is attached to a settings icon\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) \n- When information must persist beyond hover\n - Incorrect: A data tooltip contains important information users must reference continuously\n - Remediation: Use a persistent component such as [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF) or inline content\n- When the element is already clearly labelled or self-explanatory.\n\n### In essence:\n\nWhen in doubt, start with standard [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW). Move to its [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) variant for space constraints; [WrapperTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) for structured content and complex hierarchies; [DataTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_) for data visualization.";
|
|
11
11
|
ds:guidelines "### Animation\n\n- Show with a 400 ms delay after hover or focus\n- Hide with a 400 ms delay after the pointer leaves\n- Cancel display if the pointer exits before the show delay completes\n- If the pointer moves directly from one tooltip trigger to another, show the new tooltip immediately and skip the previous tooltip’s exit animation\n\n### Transition\n\n- **Type**: spring\n- **Duration**: 0.4 s\n- **Bounce**: 0.2\n- **Delay**: 0 s\n\n### Specific for data tooltip:\n\n- Cursor-follow behaviour; follows the cursor while open.\n- Cursor-follow placement direction: **Right**\n- Horizontal offset from cursor: **16 px**\n- Vertical offset from cursor: **8 px**\n\n### Motion feel\n\n- Preset: **Snappy**\n- Bounce profile: **No-bounce**\n- Spring: stiffness **500**, damping **60**, mass **1**, no overshoot\n\n### Reduced motion\n\n- Snaps to the pointer position instead of easing. Same 400 ms open and close delays.\n\n### CSS fallback\n\n- Cursor-follow: 140 to 180 ms, cubic-bezier(0.16, 1, 0.3, 1), no overshoot.\n- Enter and exit: opacity 0 to 1 and scale 0.96 to 1 over 400 ms, cubic-bezier(0.22, 1, 0.36, 1).\n\n### Hovered series\n\n- The series under the pointer shows as highlighted in the legend (bold label and value), so it's clear which row the pointer refers to. Other rows stay in the default state.\n\n### Interactions and accessibility\n\n- Only one tooltip is open at a time. It contains no interactive content and never takes focus.\n- Escape closes it.\n- The tooltip element has role=\"tooltip\". Data shown only on hover should also be available another way, for example a data table, for keyboard, screen reader and touch users.\n- Values use tabular figures in code.";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:
|
|
13
|
+
ds:changeLog [
|
|
14
|
+
a ds:ChangeLogEntry;
|
|
15
|
+
ds:timestamp "2026-04-22T00:00:00.000+02:00"
|
|
16
|
+
];
|
|
14
17
|
ds:hasProperty [
|
|
15
|
-
a ds:Property;
|
|
16
|
-
ds:name "***Data tooltip***";
|
|
17
|
-
ds:optional "false"
|
|
18
|
-
], [
|
|
19
18
|
a ds:Property;
|
|
20
19
|
ds:name "Show header";
|
|
21
20
|
ds:summary "Shows legend header";
|
|
21
|
+
ds:propertyType "boolean";
|
|
22
22
|
ds:optional "true";
|
|
23
|
-
ds:
|
|
24
|
-
], [
|
|
25
|
-
a ds:Property;
|
|
26
|
-
ds:name "Indicator";
|
|
27
|
-
ds:summary "Shows colour marker matching chart encoding";
|
|
28
|
-
ds:optional "true";
|
|
29
|
-
ds:propertyType "boolean"
|
|
23
|
+
ds:defaultValue "Yes"
|
|
30
24
|
], [
|
|
31
25
|
a ds:Property;
|
|
32
26
|
ds:name "Show cursor";
|
|
33
27
|
ds:summary "Tooltip follows cursor instead of anchoring to trigger";
|
|
28
|
+
ds:propertyType "boolean";
|
|
34
29
|
ds:optional "false";
|
|
35
|
-
ds:
|
|
36
|
-
], [
|
|
37
|
-
a ds:Property;
|
|
38
|
-
ds:name "*Cursor animation* *(framer)*";
|
|
39
|
-
ds:optional "false"
|
|
30
|
+
ds:defaultValue "Yes"
|
|
40
31
|
], [
|
|
41
32
|
a ds:Property;
|
|
42
|
-
ds:name "
|
|
33
|
+
ds:name "Cursor position";
|
|
43
34
|
ds:summary "Cursor-follow placement direction";
|
|
35
|
+
ds:propertyType "choice";
|
|
44
36
|
ds:optional "false";
|
|
45
|
-
ds:
|
|
37
|
+
ds:defaultValue "Right"
|
|
46
38
|
], [
|
|
47
39
|
a ds:Property;
|
|
48
|
-
ds:name "
|
|
40
|
+
ds:name "Cursor offset X";
|
|
49
41
|
ds:summary "Horizontal offset from cursor";
|
|
42
|
+
ds:propertyType "number";
|
|
50
43
|
ds:optional "false";
|
|
51
|
-
ds:
|
|
44
|
+
ds:defaultValue "16";
|
|
45
|
+
ds:constraints "px"
|
|
52
46
|
], [
|
|
53
47
|
a ds:Property;
|
|
54
|
-
ds:name "
|
|
48
|
+
ds:name "Cursor offset Y";
|
|
55
49
|
ds:summary "Vertical offset from cursor";
|
|
50
|
+
ds:propertyType "number";
|
|
56
51
|
ds:optional "false";
|
|
57
|
-
ds:
|
|
58
|
-
|
|
59
|
-
a ds:Property;
|
|
60
|
-
ds:name "Motion feel";
|
|
61
|
-
ds:summary "High-level motion tuning preset";
|
|
62
|
-
ds:optional "true";
|
|
63
|
-
ds:propertyType "choice"
|
|
64
|
-
], [
|
|
65
|
-
a ds:Property;
|
|
66
|
-
ds:name "***All variants***";
|
|
67
|
-
ds:optional "false"
|
|
52
|
+
ds:defaultValue "8";
|
|
53
|
+
ds:constraints "px"
|
|
68
54
|
], [
|
|
69
55
|
a ds:Property;
|
|
70
|
-
ds:name "
|
|
71
|
-
ds:summary "
|
|
56
|
+
ds:name "Items";
|
|
57
|
+
ds:summary "Rows of the chart legend, one per series: marker, label and value.";
|
|
58
|
+
ds:propertyType "list of nodes";
|
|
72
59
|
ds:optional "false";
|
|
73
|
-
ds:
|
|
60
|
+
ds:constraints "Chart legend items only\nMinimum 1"
|
|
74
61
|
], [
|
|
75
62
|
a ds:Property;
|
|
76
63
|
ds:name "Surrounding UI theme";
|
|
77
64
|
ds:summary "Sets tooltip theme based on surrounding UI context";
|
|
65
|
+
ds:propertyType "choice";
|
|
78
66
|
ds:optional "false";
|
|
79
|
-
ds:
|
|
67
|
+
ds:defaultValue "Light";
|
|
68
|
+
ds:constraints "Dark"
|
|
80
69
|
];
|
|
81
|
-
ds:
|
|
70
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
71
|
+
ds:hasSubcomponent ds:global.subcomponent.data_tooltip-chart_legend, ds:global.subcomponent.chart_legend, ds:global.subcomponent.chart_legend_item;
|
|
82
72
|
ds:inheritsFrom ds:global.component.tooltip;
|
|
83
|
-
ds:changeLog [
|
|
84
|
-
a ds:ChangeLogEntry;
|
|
85
|
-
ds:timestamp "2026-04-22T00:00:00.000+02:00"
|
|
86
|
-
];
|
|
87
73
|
ds:hasTokenBinding [
|
|
88
74
|
a ds:TokenBinding;
|
|
89
|
-
ds:viaBlock ds:global.component.
|
|
75
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
90
76
|
ds:node "$root/surface";
|
|
91
77
|
anatomy:styleKey "appearance.background";
|
|
92
78
|
anatomy:styleState "default";
|
|
@@ -94,7 +80,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
94
80
|
ds:consumesSymbol dt:color.background
|
|
95
81
|
], [
|
|
96
82
|
a ds:TokenBinding;
|
|
97
|
-
ds:viaBlock ds:global.component.
|
|
83
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
98
84
|
ds:node "$root/surface";
|
|
99
85
|
anatomy:styleKey "appearance.border.color";
|
|
100
86
|
anatomy:styleState "default";
|
|
@@ -102,7 +88,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
102
88
|
ds:consumesSymbol dt:color.border.muted
|
|
103
89
|
], [
|
|
104
90
|
a ds:TokenBinding;
|
|
105
|
-
ds:viaBlock ds:global.component.
|
|
91
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
106
92
|
ds:node "$root/surface";
|
|
107
93
|
anatomy:styleKey "appearance.border.width";
|
|
108
94
|
anatomy:styleState "default";
|
|
@@ -110,7 +96,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
110
96
|
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
111
97
|
], [
|
|
112
98
|
a ds:TokenBinding;
|
|
113
|
-
ds:viaBlock ds:global.component.
|
|
99
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
114
100
|
ds:node "$root/surface";
|
|
115
101
|
anatomy:styleKey "spacing.internal.block.start";
|
|
116
102
|
anatomy:styleState "default";
|
|
@@ -118,7 +104,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
118
104
|
ds:consumesSymbol dt:dimension.100
|
|
119
105
|
], [
|
|
120
106
|
a ds:TokenBinding;
|
|
121
|
-
ds:viaBlock ds:global.component.
|
|
107
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
122
108
|
ds:node "$root/surface";
|
|
123
109
|
anatomy:styleKey "spacing.internal.block.end";
|
|
124
110
|
anatomy:styleState "default";
|
|
@@ -126,7 +112,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
126
112
|
ds:consumesSymbol dt:dimension.100
|
|
127
113
|
], [
|
|
128
114
|
a ds:TokenBinding;
|
|
129
|
-
ds:viaBlock ds:global.component.
|
|
115
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
130
116
|
ds:node "$root/surface";
|
|
131
117
|
anatomy:styleKey "spacing.internal.inline.start";
|
|
132
118
|
anatomy:styleState "default";
|
|
@@ -134,7 +120,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
134
120
|
ds:consumesSymbol dt:dimension.100
|
|
135
121
|
], [
|
|
136
122
|
a ds:TokenBinding;
|
|
137
|
-
ds:viaBlock ds:global.component.
|
|
123
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
138
124
|
ds:node "$root/surface";
|
|
139
125
|
anatomy:styleKey "spacing.internal.inline.end";
|
|
140
126
|
anatomy:styleState "default";
|
|
@@ -142,7 +128,7 @@ ds:global.component.tooltip_data a ds:Component;
|
|
|
142
128
|
ds:consumesSymbol dt:dimension.100
|
|
143
129
|
], [
|
|
144
130
|
a ds:TokenBinding;
|
|
145
|
-
ds:viaBlock ds:global.component.
|
|
131
|
+
ds:viaBlock ds:global.component.data_tooltip;
|
|
146
132
|
ds:node "$root/surface/heading";
|
|
147
133
|
anatomy:styleKey "typography.font";
|
|
148
134
|
anatomy:styleState "default";
|
|
@@ -6,7 +6,6 @@ ds:global.component.date_field a ds:Component;
|
|
|
6
6
|
ds:name "DateField";
|
|
7
7
|
ds:summary "A form control for collecting a single calendar date from the user, such as a start day, deadline, or date of birth. It frames the entry with a label, optional guidance, and validation, lets the user pick a day from a calendar metaphor, and can confine the selection to an allowed range of dates.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form src/lib/common/Wrapper/styles.css on .ds.field\n# The field is the Wrapper's chrome: a subgrid whose label row sits above a\n# payload row carrying the description, the control and any error. The control\n# is date input — src/lib/subcomponent/DateInput/styles.css on `.ds.input.date` — and its own styles\n# live in its own anatomy, not copied here.\nnode:\n uri: global.component.date_field\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n # reads --form-field-columns, the component-local track placement a caller\n # overrides to put the field in part of the form grid.\n layout.grid.column: \"1 / -1\"\n layout.align: baseline\n # The block gap from the label row down to the payload row reads\n # --form-field-label-gap, which resolves through --space-100 to\n # --dimension-100; this is the spacing semantic that resolves to it. When a\n # description LEADS the payload the gap tightens to\n # --form-field-label-description-gap (--dimension-050), for which no\n # spacing semantic resolves, so that conditional is not carried.\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-label\n styles:\n # reads --form-label-columns.\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 # reads --form-payload-columns.\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 uri: global.subcomponent.date_input\n styles:\n layout.grid.column: \"1 / -1\"\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
|
-
ds:anatomyClassic "";
|
|
10
9
|
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
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.component.date_time_field a ds:Component;
|
|
|
6
6
|
ds:name "DateTimeField";
|
|
7
7
|
ds:summary "A form control for collecting a combined date and time from the user, such as a scheduled event, deadline with a cut-off hour, or timestamp. It frames the entry with a label, optional guidance, and validation, lets the user pick a calendar day and a time of day together, and can confine the selection to an allowed range and to set increments.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form src/lib/common/Wrapper/styles.css on .ds.field\n# The field is the Wrapper's chrome: a subgrid whose label row sits above a\n# payload row carrying the description, the control and any error. The control\n# is date time input — src/lib/subcomponent/DateTimeInput/styles.css on `.ds.input.datetime` — and its own styles\n# live in its own anatomy, not copied here.\nnode:\n uri: global.component.date_time_field\n styles:\n layout.type: grid\n layout.grid.columns: subgrid\n # reads --form-field-columns, the component-local track placement a caller\n # overrides to put the field in part of the form grid.\n layout.grid.column: \"1 / -1\"\n layout.align: baseline\n # The block gap from the label row down to the payload row reads\n # --form-field-label-gap, which resolves through --space-100 to\n # --dimension-100; this is the spacing semantic that resolves to it. When a\n # description LEADS the payload the gap tightens to\n # --form-field-label-description-gap (--dimension-050), for which no\n # spacing semantic resolves, so that conditional is not carried.\n spacing.gap.block: spacing.gap.field.block\n edges:\n - node:\n uri: global.subcomponent.field-label\n styles:\n # reads --form-label-columns.\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 # reads --form-payload-columns.\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 uri: global.subcomponent.date_time_input\n styles:\n layout.grid.column: \"1 / -1\"\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
|
-
ds:anatomyClassic "";
|
|
10
9
|
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
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.component.drag_and_drop_list a ds:Component;
|
|
|
6
6
|
ds:name "DragAndDropList";
|
|
7
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 "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -10,10 +10,10 @@ ds:global.component.dropdown_button a ds:Component;
|
|
|
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.needscoredocumentation;
|
|
14
|
-
ds:inheritsFrom ds:global.component.button;
|
|
15
13
|
ds:changeLog [
|
|
16
14
|
a ds:ChangeLogEntry;
|
|
17
15
|
ds:timestamp "2026-05-01T00:00:00.000+02:00";
|
|
18
16
|
ds:changeType "decision"
|
|
19
|
-
]
|
|
17
|
+
];
|
|
18
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
19
|
+
ds:inheritsFrom ds:global.component.button.
|
|
@@ -6,11 +6,10 @@ ds:global.component.file_upload_field a ds:Component;
|
|
|
6
6
|
ds:name "FileUploadField";
|
|
7
7
|
ds:summary "A form field for attaching one or more files. It wraps the upload control ([FileUploadInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ueHBQBbs9M)) in the standard field frame: a label, a description with the file limits, and the control itself, which shows the validation messages when a file is rejected. It is the component to use when a form needs a file from the user.";
|
|
8
8
|
ds:anatomyDsl "---\n# The field frames the file upload input with a label and an optional\n# description. The input's own parts, including the field-level validation\n# message, live in its own anatomy.\nnode:\n uri: global.component.file_upload_field\n styles:\n layout.type: flex\n layout.direction: column\n # 16px between the text wrapper and the input; no spacing semantic resolves\n # to it, so the dimension is bound directly.\n spacing.gap.block: dimension.200\n edges:\n - node:\n # Groups the label with its description so the pair sits closer\n # together than the rest of the field.\n role: text wrapper\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.050\n edges:\n - node:\n uri: global.subcomponent.field-label\n styles:\n # The disabled state belongs to the field; the label dims with it.\n typography.color@disabled: color.text.disabled\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n styles:\n typography.color@disabled: color.text.muted.disabled\n relation:\n cardinality: \"0..1\"\n slotName: description\n relation:\n cardinality: \"1\"\n - node:\n uri: global.subcomponent.file_upload_input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "**Anatomy**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8568&t=cEAarkbWU6qDCTl8-1\n\n**Styling / Layout and spacing**\n\
|
|
9
|
+
ds:anatomyClassic "**Anatomy**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8568&t=cEAarkbWU6qDCTl8-1\n\n**Styling / Layout and spacing**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8580&t=cEAarkbWU6qDCTl8-1**\n\n**Styling / Colors**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8590&t=cEAarkbWU6qDCTl8-1**\n\n**Styling / Typography**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8608&t=cEAarkbWU6qDCTl8-1**\n\n**Styling / Overflow**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13355-8615&t=cEAarkbWU6qDCTl8-1";
|
|
10
10
|
ds:usage "A form field for attaching one or more files. It combines a label, a description with the file limits, and the upload control, which shows the validation messages.\n\n## **When to use**\n\n- Users need to attach one or more files as part of a form submission.\n- Users should see the files they've added, and remove or retry a file before submitting.\n\n## **When not to use**\n\n- The value is a short, free-form entry – use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx).\n- The value is a link or reference to a file hosted elsewhere, not the file itself – use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) and ask for the URL.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.designin-progress;
|
|
14
13
|
ds:changeLog [
|
|
15
14
|
a ds:ChangeLogEntry;
|
|
16
15
|
ds:timestamp "2026-11-22T17:00:00.000+01:00";
|
|
@@ -20,6 +19,7 @@ ds:global.component.file_upload_field a ds:Component;
|
|
|
20
19
|
ds:timestamp "2026-11-25T13:00:00.000+01:00";
|
|
21
20
|
ds:changeType "decision"
|
|
22
21
|
];
|
|
22
|
+
ds:documentationStage ds:tag.designin-progress;
|
|
23
23
|
ds:hasTokenBinding [
|
|
24
24
|
a ds:TokenBinding;
|
|
25
25
|
ds:viaBlock ds:global.component.file_upload_field;
|
|
@@ -10,7 +10,6 @@ ds:global.component.heading a ds:Component;
|
|
|
10
10
|
ds:usage "Headings are intended to create an \"outline\" of the page. They should lead the user from the most general information to the most specific.\n\n### When to use\n\n- To facilitate scanning and to provide a logical flow to the user's experience.\n- When a page contains multiple topics, to differentiate between a \"Parent\" topic and a \"Child\" sub-topic.\n- When a UI block, such as a Card, contains a significant amount of data or a specific task.\n- When presenting documentation or long articles. Headings act as anchors, allowing the user to jump to the section most relevant to them. \n\n### When not to use\n\n- When you want a piece of text to be \"big and bold\" but it doesn't actually introduce a new section.\n - Incorrect: Using an `H2` for a callout or a quote in the middle of a paragraph just to make it stand out. \n - Remediation: Use the component that describes the best the semantic function you are representing. \n- When the text is descriptive or instructional rather than a concise title.\n - Incorrect: An `H2` that says: \"Please make sure to fill out all the fields below before you click the submit button at the bottom.\"\n - Remediation: Use a paragraph for descriptions, and keep the heading brief (e.g., \"Form Instructions\").\n- When the text belongs to a quote.\n - Incorrect: Using `H2` to style a testimonial just to achieve a specific font size or weight.\n - Remediation: Use a [Quote](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-HaEe2D1XRN) with its intended tokens.\n\n";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "importance";
|
|
@@ -18,6 +17,7 @@ ds:global.component.heading a ds:Component;
|
|
|
18
17
|
ds:optional "false";
|
|
19
18
|
ds:constraints "1 to 6"
|
|
20
19
|
];
|
|
20
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
21
21
|
ds:hasTokenBinding [
|
|
22
22
|
a ds:TokenBinding;
|
|
23
23
|
ds:viaBlock ds:global.component.heading;
|
|
@@ -6,7 +6,6 @@ ds:global.component.hidden_field a ds:Component;
|
|
|
6
6
|
ds:name "HiddenField";
|
|
7
7
|
ds:summary "A form control that carries a value with the form without presenting it to the user — used for contextual or system values that must travel with a submission but are not user-editable. It renders no label, guidance, or visible entry.";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# HiddenField renders through InvisibleWrapper — no label, description or error\n# chrome, and neither it nor HiddenInput ships a stylesheet — so this is a\n# notation migration: structure kept, the dangling uri: repaired.\nnode:\n uri: global.component.hidden_field\n edges:\n - node:\n # Was `global.subcomponent.hidden-input`, which names no subject; the\n # real subject is global.subcomponent.hidden_input.\n uri: global.subcomponent.hidden_input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "Carries a fixed or derived value along with the form without presenting any visible part to the user.\n\n\n\n### When to use\n\n- A value must travel with the form but is set programmatically or derived rather than entered.\n\n- The value should remain constant and is not meant to be reviewed or changed during completion.\n\n\n\n### When not to use\n\n- The user should be able to see, confirm, or change the value — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) (or another visible field).";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,15 +6,15 @@ ds:global.component.icon a ds:Component;
|
|
|
6
6
|
ds:name "Icon";
|
|
7
7
|
ds:summary "Icons function as visual anchors. They are designed to be metaphorically clear and aesthetically consistent, ensuring that when paired with text or some cases standalone users can identify key interactions and system states at a glance. Only Icons which are near universally understood (like delete or edit) can stand on their own, but even those need accompanying tooltips to explain them.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global src/lib/component/Icon/styles.css on .ds.icon\nnode:\n uri: global.component.icon\n styles:\n layout.type: inline-block\n layout.verticalAlign: middle\n # reads --icon-size, a component-local size the package declares as 1em at\n # :root, then --size-icon-default, which no symbol declares, then the\n # chain's own 1rem literal. The effective value is the 1em.\n size.width: 1em\n size.height: 1em";
|
|
9
|
-
ds:anatomyClassic "
|
|
9
|
+
ds:anatomyClassic "\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2431-9000&t=sOMJn3GdvE3iTgAI-1";
|
|
10
10
|
ds:usage "## Usage\n\nIcons are intended to supplement information and streamline the user journey. They should never create ambiguity or force a user to guess what an element does. Where meaning is universal, these icons can function as standalone [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that guide users without the need for additional text.\n\n### When to use\n\n- To guide users toward primary actions where space is limited.\n- When a label alone is insufficient to convey meaning.\n- When the user needs to know the condition of a system or process without reading a full sentence.\n- When recognition is a primary objective towards the user through visual patterns rather than reading text.\n\n### When not to use\n\n- When the icon represents a complex or unique action that does not have a universally recognized metaphor\n - Incorrect: Using a custom \"Star-burst\" icon to represent \"Advanced AI Settings\" without a text label nearby.\n - Remediation: Always pair non-universal icons with a text label. If available space does not allow for a label, then a tooltip must be used.if available space does not allow for a label, then a tooltip must be used.\n- When icons are added to every single line of text or menu item, creating \"visual noise.\"\n - Incorrect: A long list of 50 settings where every single line has a generic \"Gear\" icon next to it.\n - Remediation: Remove the icons and use typography (bolding or headers) to create hierarchy, reserving icons only for high-priority actions.";
|
|
11
11
|
ds:guidelines "### Accessibility and Size \n\n- **Touch Targets:** Even if the icon is small (e.g., 16px), the interactive hit area should be at least 44x44px to accommodate touch and mouse accuracy.\n- **Color Contrast:** Ensure icons used for information (status) meet a minimum contrast ratio of 3:1 against the background.\n\n### Concepts\n\n[How to choose between question mark and information icon](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-GnfOU3MM-3/_rui-KPw8GwEbJ-)";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "icon";
|
|
17
16
|
ds:summary "Describes which icon should be displayed from a preexisting list";
|
|
18
17
|
ds:propertyType "text";
|
|
19
18
|
ds:optional "false"
|
|
20
|
-
]
|
|
19
|
+
];
|
|
20
|
+
ds:documentationStage ds:tag.needsfulldocumentation.
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.component.icon_button a ds:Component;
|
|
6
6
|
ds:name "IconButton";
|
|
7
|
-
ds:summary "An icon button is a square Button with one icon and no visible label. Use it for common actions with a recognizable icon, such as edit or delete in a table row, a settings panel trigger, or toolbar actions. Its baseline matches a labelled Button
|
|
8
|
-
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "A
|
|
7
|
+
ds:summary "An icon button is a square [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) with one icon and no visible label. Use it for common actions with a recognizable icon, such as edit or delete in a table row, a settings panel trigger, or toolbar actions. Its baseline matches that of a labelled [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr), and it is always named and paired with a [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW).";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.component.icon_button\n styles:\n # The box padding is not bound: the step the design uses is not in the\n # token scale.\n layout.type: inline-flex\n layout.align: center\n layout.justify: center\n # Tertiary is the baseline importance: no channel routes the Importance\n # family, so Primary's solid fill and light icon and Secondary's border are\n # not represented.\n # Surface comes first because every semantic ghost fill equals the plain\n # ghost fill on a given surface, so only the surface changes the colour.\n appearance.background: [surface.color.foreground.ghost, modifier.color.foreground.ghost, color.foreground.ghost]\n # Semantic and Layer 2 state fills have tokens of their own that no channel\n # carries, so only the neutral ones are bound.\n appearance.background@hover: color.foreground.ghost.hover\n appearance.background@active: color.foreground.ghost.active\n appearance.background@disabled: color.foreground.ghost.disabled\n # Focus is not drawn in the design; these follow Button's focus ring.\n appearance.outline.width@focus: 2px\n appearance.outline.style@focus: solid\n appearance.outline.color@focus: [modifier.color.focusRing, color.focusRing, currentColor]\n appearance.outline.offset@focus: 2px\n edges:\n - node:\n role: icon wrapper\n styles:\n layout.type: flex\n layout.align: center\n layout.justify: center\n # Sized to the line height of the primary text style, so the box\n # matches a labelled Button's.\n size.width: 1.5rem\n size.height: 1.5rem\n edges:\n - switch:\n on: props\n cases:\n - node:\n uri: global.component.icon\n styles:\n size.width: dimension.200\n size.height: dimension.200\n typography.color: [modifier.color.icon, color.icon]\n # Read as the button's disabled state, not the icon's own.\n typography.color@disabled: color.icon.disabled\n - node:\n uri: global.subcomponent.spinner\n styles:\n # The design binds an icon-size variable that no symbol\n # declares, so the 1rem it resolves to is written.\n size.width: 1rem\n size.height: 1rem\n # Unlike the icon, the spinner stays neutral at every\n # semantic.\n typography.color: color.icon\n relation:\n cardinality: \"1\"\n slotName: icon\n relation:\n cardinality: \"1\"";
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16815-113803&t=FVgUlkIoF2WqMxUb-1\n\n## Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16815-113814&t=p9CZhyZhtj4yH19f-1";
|
|
10
|
+
ds:usage "A button with only an icon, used for actions represented by widely recognised icons. It retains the hierarchy, states and density of [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr).\n\n## When to use\n\n- Common actions with a recognizable icon (edit, delete, copy, close) where space is short\n- Triggers of a menu or panel whose icon names the action (a gear, three vertical dots)\n- Rows of actions in toolbars and tables\n\n## When not to use\n\n- The icon alone is unclear: use a Button with a label\n- A menu needs a visible cue: use a DropdownButton\n- Navigation: use a link\n- The main action of a page: use a Button with a label";
|
|
11
11
|
ds:guidelines "### Tooltip\n\n- Always pair it with a Tooltip that states the action, composed around the button; the button stays the root.\n- Keep the Tooltip closed while a panel the button opened is open.\n\n### Content\n\n- One icon, no text. The Tooltip is a short verb and noun in sentence case.\n\n### Size and responsiveness\n\n- The box is the density cell both ways, and its baseline matches a labelled Button’s. The icon is centred.\n- On touch screens, prefer the comfortable density. A dense box is smaller than the Icon block’s hit area, an open point.\n\n### Hierarchy\n\n- Takes Importance and Anticipation. Most icon buttons are tertiary.\n\n### Localization\n\n- Translate the accessible name and the Tooltip.\n- Mirror directional icons in right-to-left layouts.\n\n### Animation\n\n- No colour transitions under `prefers-reduced-motion: reduce`, as for Button.\n\n### Accessibility and keyboard\n\n- Name it with an accessible label or a reference; the icon is hidden from assistive technology.\n- Focusable with Button’s focus ring; `Enter` or `Space` runs it; a panel trigger exposes whether the panel is expanded.";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "icon";
|
|
@@ -31,5 +30,119 @@ ds:global.component.icon_button a ds:Component;
|
|
|
31
30
|
ds:optional "true";
|
|
32
31
|
ds:constraints "Affects background and border"
|
|
33
32
|
];
|
|
33
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
34
34
|
ds:hasModifierFamily ds:global.modifier_family.importance, ds:global.modifier_family.anticipation;
|
|
35
|
-
ds:inheritsFrom ds:global.component.button
|
|
35
|
+
ds:inheritsFrom ds:global.component.button;
|
|
36
|
+
ds:hasTokenBinding [
|
|
37
|
+
a ds:TokenBinding;
|
|
38
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
39
|
+
ds:node "$root";
|
|
40
|
+
anatomy:styleKey "appearance.background";
|
|
41
|
+
anatomy:styleState "default";
|
|
42
|
+
ds:rank 1;
|
|
43
|
+
ds:consumesSymbol dt:surface.color.foreground.ghost
|
|
44
|
+
], [
|
|
45
|
+
a ds:TokenBinding;
|
|
46
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
47
|
+
ds:node "$root";
|
|
48
|
+
anatomy:styleKey "appearance.background";
|
|
49
|
+
anatomy:styleState "default";
|
|
50
|
+
ds:rank 2;
|
|
51
|
+
ds:consumesSymbol dt:modifier.color.foreground.ghost
|
|
52
|
+
], [
|
|
53
|
+
a ds:TokenBinding;
|
|
54
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
55
|
+
ds:node "$root";
|
|
56
|
+
anatomy:styleKey "appearance.background";
|
|
57
|
+
anatomy:styleState "default";
|
|
58
|
+
ds:rank 3;
|
|
59
|
+
ds:consumesSymbol dt:color.foreground.ghost
|
|
60
|
+
], [
|
|
61
|
+
a ds:TokenBinding;
|
|
62
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
63
|
+
ds:node "$root";
|
|
64
|
+
anatomy:styleKey "appearance.background";
|
|
65
|
+
anatomy:styleState "hover";
|
|
66
|
+
ds:rank 1;
|
|
67
|
+
ds:consumesSymbol dt:color.foreground.ghost.hover
|
|
68
|
+
], [
|
|
69
|
+
a ds:TokenBinding;
|
|
70
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
71
|
+
ds:node "$root";
|
|
72
|
+
anatomy:styleKey "appearance.background";
|
|
73
|
+
anatomy:styleState "active";
|
|
74
|
+
ds:rank 1;
|
|
75
|
+
ds:consumesSymbol dt:color.foreground.ghost.active
|
|
76
|
+
], [
|
|
77
|
+
a ds:TokenBinding;
|
|
78
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
79
|
+
ds:node "$root";
|
|
80
|
+
anatomy:styleKey "appearance.background";
|
|
81
|
+
anatomy:styleState "disabled";
|
|
82
|
+
ds:rank 1;
|
|
83
|
+
ds:consumesSymbol dt:color.foreground.ghost.disabled
|
|
84
|
+
], [
|
|
85
|
+
a ds:TokenBinding;
|
|
86
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
87
|
+
ds:node "$root";
|
|
88
|
+
anatomy:styleKey "appearance.outline.color";
|
|
89
|
+
anatomy:styleState "focus";
|
|
90
|
+
ds:rank 1;
|
|
91
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
92
|
+
], [
|
|
93
|
+
a ds:TokenBinding;
|
|
94
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
95
|
+
ds:node "$root";
|
|
96
|
+
anatomy:styleKey "appearance.outline.color";
|
|
97
|
+
anatomy:styleState "focus";
|
|
98
|
+
ds:rank 2;
|
|
99
|
+
ds:consumesSymbol dt:color.focusRing
|
|
100
|
+
], [
|
|
101
|
+
a ds:TokenBinding;
|
|
102
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
103
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
104
|
+
anatomy:styleKey "size.width";
|
|
105
|
+
anatomy:styleState "default";
|
|
106
|
+
ds:rank 1;
|
|
107
|
+
ds:consumesSymbol dt:dimension.200
|
|
108
|
+
], [
|
|
109
|
+
a ds:TokenBinding;
|
|
110
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
111
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
112
|
+
anatomy:styleKey "size.height";
|
|
113
|
+
anatomy:styleState "default";
|
|
114
|
+
ds:rank 1;
|
|
115
|
+
ds:consumesSymbol dt:dimension.200
|
|
116
|
+
], [
|
|
117
|
+
a ds:TokenBinding;
|
|
118
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
119
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
120
|
+
anatomy:styleKey "typography.color";
|
|
121
|
+
anatomy:styleState "default";
|
|
122
|
+
ds:rank 1;
|
|
123
|
+
ds:consumesSymbol dt:modifier.color.icon
|
|
124
|
+
], [
|
|
125
|
+
a ds:TokenBinding;
|
|
126
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
127
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
128
|
+
anatomy:styleKey "typography.color";
|
|
129
|
+
anatomy:styleState "default";
|
|
130
|
+
ds:rank 2;
|
|
131
|
+
ds:consumesSymbol dt:color.icon
|
|
132
|
+
], [
|
|
133
|
+
a ds:TokenBinding;
|
|
134
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
135
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
136
|
+
anatomy:styleKey "typography.color";
|
|
137
|
+
anatomy:styleState "disabled";
|
|
138
|
+
ds:rank 1;
|
|
139
|
+
ds:consumesSymbol dt:color.icon.disabled
|
|
140
|
+
], [
|
|
141
|
+
a ds:TokenBinding;
|
|
142
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
143
|
+
ds:node "$root/icon wrapper/case[global.subcomponent.spinner]";
|
|
144
|
+
anatomy:styleKey "typography.color";
|
|
145
|
+
anatomy:styleState "default";
|
|
146
|
+
ds:rank 1;
|
|
147
|
+
ds:consumesSymbol dt:color.icon
|
|
148
|
+
].
|
|
@@ -6,13 +6,12 @@ ds:global.component.icon_in_container a ds:Component;
|
|
|
6
6
|
ds:name "Icon in Container";
|
|
7
7
|
ds:summary "Showing and icon inside a container, usually a circle: for social icons in the footer, or for status on the hiring page.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.triagedrejected;
|
|
14
12
|
ds:changeLog [
|
|
15
13
|
a ds:ChangeLogEntry;
|
|
16
14
|
ds:timestamp "2025-10-02T00:00:00.000+02:00";
|
|
17
15
|
ds:changeType "decision"
|
|
18
|
-
]
|
|
16
|
+
];
|
|
17
|
+
ds:documentationStage ds:tag.triagedrejected.
|
|
@@ -6,7 +6,6 @@ ds:global.component.keyboard_key a ds:Component;
|
|
|
6
6
|
ds:name "KeyboardKey";
|
|
7
7
|
ds:summary "The KeyboardKey component renders a single keyboard key as a styled kbd element. It maps a key identifier (letters, digits, modifiers, function keys, navigation keys, and action keys) to its display label and presents it as a compact, inline visual indicator. Use it to represent keyboard shortcuts, key bindings, or individual keys within instructional or reference content. It is non-interactive and purely informational.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global src/lib/component/KeyboardKey/styles.css on .ds.keyboard-key\n# The monospace typography tier (font-family, size, weight, line-height) comes\n# from the shared `.code` baseline utility and is deliberately NOT redeclared\n# by the component, so this anatomy binds none of it. The key establishes its\n# own `.surface`, so the colour reads are on the element and step with nesting.\nnode:\n uri: global.component.keyboard_key\n styles:\n layout.type: inline-block\n appearance.background: [surface.color.background, color.background]\n typography.color: [surface.color.text, color.text]\n appearance.border.style: solid\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.color: color.border.muted\n # Figma asks for 2px; no 2px radius token exists, so the reference stays on\n # radius-small (currently 0) and so does this.\n appearance.radius: dimension.radius.small\n spacing.internal.inline.start: dimension.050 # --keyboard-key-padding-inline\n spacing.internal.inline.end: dimension.050 # --keyboard-key-padding-inline";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "When to use\n\n- Embed key representations in help articles, changelogs, or feature announcements to give consistent visual treatment to every key reference.\n\n\n\nWhen not to use\n\n- The content is not a keyboard key. Status labels, tags or category badges have their own components.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.component.mode_switcher a ds:Component;
|
|
|
6
6
|
ds:name "ModeSwitcher";
|
|
7
7
|
ds:summary "To consider: a mode switcher and split this in two/three types (ThemeSwitcher : canonical/ubuntu) / (ModeSwitcher : dark/light) / (Contrast : High/Normal) / (Motion : Normal/Reduced)\n\nReference chat: [https://chat.canonical.com/canonical/pl/g9edp9jnujfofgnms75e3fuago](https://chat.canonical.com/canonical/pl/g9edp9jnujfofgnms75e3fuago)";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.component.pagination a ds:Component;
|
|
|
6
6
|
ds:name "Pagination";
|
|
7
7
|
ds:summary "Pagination is a navigational component that allows users to move between pages of content. It provides controls for navigating to the previous or next page, as well as optionally jumping directly to a specific numbered page. This component is best suited for content-heavy sites where information is divided across multiple pages, such as blog posts, articles, tutorials, or search results. For paginating tabular data, use the Table pagination component instead.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- Content is divided across multiple pages and requires navigation controls\n- Users may need to jump to a specific page within the content\n- Users are likely to return to a previously visited page\n- The total number of items or pages is known and finite\n- Content consumption benefits from clear boundaries between pages\n\n### When not to use\n\n- Paginating tabular data; use the Table pagination component instead\n- Guided flows or multi-step processes; use step navigation (“Back” and “Next” buttons) instead\n- Exploratory interfaces where users browse without a specific target; consider infinite scrolling\n- Single-page content that does not require division";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|