@canonical/design-system 0.44.0 → 0.46.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/component/key_value_pair.ttl +1 -1
- 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/key_value_pairs.ttl +1 -1
- 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_workplaceengineering/pattern/group_card.ttl → apps/layout/login_layout.ttl} +4 -5
- 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/datatable.ttl +30 -31
- 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 +13 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +6 -6
- 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 +9 -9
- 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/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 +6 -14
- 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/component/label-highlight.ttl +2 -3
- package/data/apps_workplaceengineering/component/org_chart.ttl +12 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +1 -1
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -2
- package/data/apps_workplaceengineering/pattern/{event_timeline.ttl → org_event_card.ttl} +3 -4
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +1 -1
- package/data/concept/Filtering-patterns.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +2 -2
- package/data/concept/Foundations-Surfaces.ttl +1 -1
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -1
- package/data/concept/Overflow.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +1 -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 +3 -3
- package/data/global/component/accordion.ttl +6 -185
- package/data/global/component/announcement.ttl +2 -3
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +5 -7
- package/data/global/component/breadcrumbs.ttl +7 -6
- package/data/global/component/button.ttl +5 -23
- package/data/global/component/card.ttl +3 -8
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +4 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +2 -3
- 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/data_tooltip.ttl +4 -4
- 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 +2 -2
- package/data/global/component/dropdown_button.ttl +4 -5
- package/data/global/component/file_upload_field.ttl +1 -1
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +2 -2
- package/data/global/component/icon_button.ttl +13 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/notification_toast.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 -1
- 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/component/segmented_control.ttl +13 -0
- 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 +2 -2
- 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 +3 -6
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +43 -45
- package/data/global/component/tooltip_wrapper.ttl +2 -2
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +1 -5
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/pattern/filter.ttl +13 -0
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/navigation.ttl +1 -1
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +15 -20
- 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/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 +1 -1
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +2 -18
- package/data/global/subcomponent/modal-header.ttl +5 -21
- 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 +1 -1
- 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/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 +1 -1
- 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/devdone.ttl +9 -0
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/devin-review.ttl +9 -0
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{stylesready.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{devreactapproved.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/wpeinital-implementation.ttl +1 -1
- package/data/tag/wpetriageupstream-and-deprecate.ttl +1 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/{documentation-stage.ttl → implementationnotes.ttl} +2 -2
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +37 -7
- package/skills/adoption-a2-components/SKILL.md +43 -3
- package/skills/anatomy-author/SKILL.md +25 -1
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
|
@@ -7,10 +7,10 @@ ds:apps.subcomponent.data_table-header_cell a ds:Subcomponent;
|
|
|
7
7
|
ds:summary "The header cell is the interactive column header element within a data table. It handles sorting, resizing, reordering, and pinning for its column. It is a sub-component and cannot function outside of a data table.\n\n\n\nThe header cell is distinct from the body cell. While the body cell displays data values and provides row-level interactions such as inline editing and row actions, the header cell is responsible for column-level controls that affect how the entire column behaves.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-5297&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4604-105392&t=2fO23I8WsyT0YVJ1-4";
|
|
10
|
-
ds:usage "
|
|
11
|
-
ds:guidelines "# Interactions\n\n## Sorting\n\n### Sort interaction cycle\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54052&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54942&t=2PBanDq6QA2yNcI2-4\n\nSorting follows a three-step cycle on the column header:\n\n1. **First select - sort ascending.** The sort icon changes from the neutral “sort both” (up-and-down arrows) icon to the “sort up” icon. The header cell receives focus (visible focus ring).\n2. **Second select - sort descending.** The icon changes from “sort up” to “sort down”. The arrow animates with a 180-degree clockwise rotation from up to down.\n3. **Third select - return to unsorted.** The icon returns to the neutral “sort both” state. The table data returns to its original unsorted order.\n\nAfter the cycle completes, the next interaction starts the cycle again from ascending.\n\n### Header cell states\n\n**Default (unsorted, not hovered)**\n\nNo sort icon is shown on sortable column headers in their resting state.\n\n**Hover**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4**\n\nWhen the user hovers a sortable column header, the header cell receives a hover background color and the cursor becomes a pointer. The “sort both” icon appears (if the column is not currently sorted) to indicate the column is sortable and interactive.\n\nIf the column is already sorted (ascending or descending), hovering still shows the pointer cursor, and the existing sort direction icon remains visible. The header stays interactive.\n\n**Active sort column (not focused)**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-55830&t=2PBanDq6QA2yNcI2-4**\n\nWhile a column is the active sort column, its header cell retains the hover-style background color persistently, even when the cell is no longer focused. The sort direction icon (up or down) remains visible. This persistent highlight communicates which column the table is currently sorted by.\n\n**Focused**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-56714&t=2PBanDq6QA2yNcI2-4**\n\nImmediately after selecting to sort, the header cell shows a blue focus ring in addition to the hover-style background and the sort direction icon.\n\n### Sorting with pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-57610&t=2PBanDq6QA2yNcI2-4\n\n**Offset pagination**\n\nIf the table is offset-paginated and the user is not on page 1, selecting a sort header triggers a modal warning before sorting is applied. The warning informs the user that sorting will reset pagination back to page 1. After the user confirms, the table is sorted and pagination resets to page 1.\n\n**Sorting with selection (simple selection)**\n\nIf the table has an active simple selection (not persistent selection), the modal also warns that the selection will be dropped. If both pagination reset and selection drop apply, the two messages are combined into a single warning.\n\n**Warning modal**\n\nThe modal has the title “Sorting will reset pagination and selection” and the body text: “Are you sure you want to sort? Sorting the table differently will reset the pagination and selection.” It contains a “Don’t ask again” checkbox, a “Cancel” button, and a primary action button labeled “Sort and reset the table”. The user can dismiss this warning permanently through the checkbox.\n\n**Keyset pagination**\n\nSorting is not practical on keyset-paginated tables. Sorting must be disabled entirely on keyset-paginated tables. If sorting is needed for a given use case, change the table to offset pagination instead.\n\n\n\n### Backend vs. frontend pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-58594&t=2PBanDq6QA2yNcI2-4\n\nWhen the table is paginated on the backend, selecting a sort column puts the table body into a loading/skeleton state while the newly sorted page is fetched. Column headers remain visible and readable during loading. Only the body rows show gray skeleton placeholder bars. Once the data is fetched, the table displays the sorted results.\n\nIf the table is paginated on the frontend, the sorted results can be shown immediately without a loading state.\n\n### Double row state\n\nIn a double row configuration (where columns are collapsed into stacked rows within cells due to a narrower viewport), a column can only be sorted by its first row.\n\nIf the second row was previously an independent column that was sorted, and the user then decreases the viewport so that column becomes the second row of a double row, the table remains sorted by that second-row value. The header it belongs to shows the sorting state. However, selecting that header cell sorts by the first row instead. After that point, sorting by the second row is no longer possible while in the double row state.\n\n## Column resizing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-60460&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-61348&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-62238&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-63126&t=2PBanDq6QA2yNcI2-4\n\n### Resize handles\n\nResize handles are thin vertical lines shown at the right edge of each column header. They indicate that a column can be resized. The interaction target for the resize handle is more generous than it appears, to make it easier to grab even for users with lower dexterity. The selectable area extends beyond the visible thin line.\n\nResize handles do not appear:\n\n- **After a checkbox column.** The checkbox column cannot be resized. No resize handle appears between the checkbox column and the first data column.\n- **After the last column.** There is no resize handle at the trailing edge of the last column.\n\n### Mouse interaction\n\n**Header cell hover**\n\nIf a cell header is hovered, the background color change does not extend to the resize handle. The hover background intentionally stops short of the resize handle area.\n\n**Resize handle hover**\n\nWhen the user hovers over the resize handle, the cursor changes to `col-resize`. After hovering the resize handle for 500 ms, the column line gets highlighted with a more visible vertical line extending from the header row down through all data rows. This provides a clear visual indicator of which column border will be resized.\n\n**Dragging**\n\nOnce the user starts dragging the resize handle, a blue “focus” line appears at the column’s edge to indicate which column border is being resized. The column resizes by the amount the user drags left or right. A column cannot be resized beyond its min-width. Only horizontal mouse position changes are taken into account. Vertical movement is ignored.\n\n**Double-select to reset**\n\nThe user can reset a column’s custom size back to the default growth behavior by double-selecting the resize handle.\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64014&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64911&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-65810&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-66694&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a resize**\n\nTo resize a column with the keyboard, the user must first focus the header cell (the header cell shows a visible focus ring).\n\nThe user then presses **Option/Alt + Left/Right arrow keys** to resize the column. While this combination is held, the resize column border indicator (the same one used for mouse interaction) is shown instead of the header cell focus ring.\n\n**Debounce behavior**\n\nThere is a slight debounce after the user stops pressing the keyboard combination, so that the UI does not jump between focus on the header cell and focus on the column border if the user pauses briefly (for example, stops for half a second) and then resumes resizing. After the debounce completes, focus returns to the header cell.\n\n**Reset with keyboard**\n\nIf the user presses **Option/Alt + 0** while a column header is focused, the column size resets to the default auto-sizing behavior.\n\n\n\n## Column reordering\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-67592&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-68484&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-69377&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-70279&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-71181&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72085&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72987&t=2PBanDq6QA2yNcI2-4\n\n### Mouse / pointer interaction\n\n**Hover state**\n\nIf the user hovers a header cell, it enters the hovered state and shows the sort icon. This is the entry point for initiating a drag.\n\n**Starting a drag**\n\nIf the user starts dragging, the hover effect on the column header disappears (including the sort both-ways icon). Instead the whole column receives a **3px focused outline**.\n\nAbove the dragged column, a **gray-translucent ghost column** appears. It follows the user’s pointer.\n\n- The **focused column** indicates what column is being dragged.\n- The **ghost column** indicates where the column is being dragged to.\n\n**Moving the ghost column**\n\nAs the user moves while dragging, the ghost column follows. A **drop zone indicator line** also appears. It indicates where the column would be dropped if the user released the column.\n\n**Drop position logic**\n\nWhere the column will be dropped is determined by the edges of the ghost column crossing the **horizontal midpoint** of a target column. For example, if the right edge of the ghost column has crossed a target column’s midpoint, the dragged column will be dropped to the right of that target column.\n\n**Releasing the column**\n\nWhen the user releases the ghost column, the actual column moves to where the drop zone indicator line indicated. **The move is animated.**\n\n**Completed state**\n\nAfter the column has been moved:\n\n- The drop zone indicator line disappears.\n- The column is no longer focused.\n- The ghost column disappears.\n\nThe table returns to a clean, resting state with the new column order.\n\n\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-73870&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-74768&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a keyboard move**\n\nTo move a column with the keyboard, the user must have a table header cell focused.\n\n**Key combination**\n\nIf a table header cell is focused and **Shift + Arrow Left/Right** is pressed, the column moves left or right (if it can).\n\n**Animation and focus retention**\n\nThe move is animated. The header cell **remains focused** after the move, allowing continued keyboard interaction without re-focusing.\n\n### Constraints\n\n**Immovable columns**\n\n- **Checkbox column:** The checkbox column cannot be moved, and no column can be moved before the checkbox column. It serves as the fixed left boundary.\n- **Action column:** The action column cannot be moved, and no column can be moved after the action column. It serves as the fixed right boundary.\n\n**Pinned column behavior during drag**\n\n- If a **pinned column** is dragged between non-pinned columns, that column becomes **non-pinned**.\n- If a **non-pinned column** is dragged to the left of a pinned column, it becomes **pinned** as well.\n\n## Column pinning\n\n### How to pin a column\n\nThe user pins a column through the **table settings panel** (opened from the gear icon on the far right of the header row). The settings panel displays a list of all columns, each with a pin icon and a delete icon. Selecting the pin icon on a column pins it.\n\nWhen the user **hovers** the pin icon, a tooltip appears explaining what the button does. The tooltip also states that pinning only takes effect when the table is horizontally scrolling, so users are not confused if pinning has no visible result on a table that fits within the viewport.\n\n### Column repositioning on pin\n\nIf the user pins a column that is not already adjacent to the left edge, the column is **moved to the left** into the pinned column group. The settings panel column order updates to reflect the new arrangement.";
|
|
10
|
+
ds:usage "\n\n### Sortable columns\n\nSortability is not enabled by default. The designer must explicitly enable sorting on each column. Enable sorting only for columns where the sort order is obvious and helpful to the user. For example, sorting on a MAC address column would not be obvious or helpful, so it should not be enabled. Similarly, utility columns such as an actions column (containing edit/delete buttons) should never be sortable.\n\n### Column resizing configuration\n\nResize handles are shown by default, but the designer can choose to hide them.\n\nEvery column in the data table has a header cell. Its primary purpose is to display the column label. The label should clearly and concisely describe the data shown in the column, so users can scan the header row and immediately understand what each column contains. Choose labels that are specific and unambiguous. For example, \"Last updated\" is more useful than \"Date\", and \"Assigned to\" is clearer than \"User\". Beyond labeling, the header cell also serves as the interface for column-level controls such as sorting, resizing, reordering, and pinning. The designer configures which of these features are available on each column. Not every column needs all capabilities. Focus on enabling the controls that match how users work with the data in that column.Columns that have been resized by the user count as fixed-size columns and no longer participate in the automatic growth behavior of the columns, unless the size is reset to auto (through double-selecting the resize handle or pressing Option + 0).\n\nThe fixed width of a resized column is persisted in browser storage across sessions.";
|
|
11
|
+
ds:guidelines "# Interactions\n\n## Sorting\n\n### Sort interaction cycle\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54052&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54942&t=2PBanDq6QA2yNcI2-4\n\nSorting follows a three-step cycle on the column header:\n\n1. **First select - sort ascending.** The sort icon changes from the neutral “sort both” (up-and-down arrows) icon to the “sort up” icon. The header cell receives focus (visible focus ring).\n2. **Second select - sort descending.** The icon changes from “sort up” to “sort down”. The arrow animates with a 180-degree clockwise rotation from up to down.\n3. **Third select - return to unsorted.** The icon returns to the neutral “sort both” state. The table data returns to its original unsorted order.\n\nAfter the cycle completes, the next interaction starts the cycle again from ascending.\n\n\n\n### Header cell states\n\n**Default (unsorted, not hovered)**\n\nNo sort icon is shown on sortable column headers in their resting state.\n\n**Hover**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4**\n\nWhen the user hovers a sortable column header, the header cell receives a hover background color and the cursor becomes a pointer. The “sort both” icon appears (if the column is not currently sorted) to indicate the column is sortable and interactive.\n\nIf the column is already sorted (ascending or descending), hovering still shows the pointer cursor, and the existing sort direction icon remains visible. The header stays interactive.\n\n\n\n**Active sort column (not focused)**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-55830&t=2PBanDq6QA2yNcI2-4**\n\nWhile a column is the active sort column, its header cell retains the hover-style background color persistently, even when the cell is no longer focused. The sort direction icon (up or down) remains visible. This persistent highlight communicates which column the table is currently sorted by.\n\n\n\n**Focused**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-56714&t=2PBanDq6QA2yNcI2-4**\n\nImmediately after selecting to sort, the header cell shows a blue focus ring in addition to the hover-style background and the sort direction icon.\n\n### Sorting with pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-57610&t=2PBanDq6QA2yNcI2-4\n\n**Offset pagination**\n\nIf the table is offset-paginated and the user is not on page 1, selecting a sort header triggers a modal warning before sorting is applied. The warning informs the user that sorting will reset pagination back to page 1. After the user confirms, the table is sorted and pagination resets to page 1.\n\n**Sorting with selection (simple selection)**\n\nIf the table has an active simple selection (not persistent selection), the modal also warns that the selection will be dropped. If both pagination reset and selection drop apply, the two messages are combined into a single warning.\n\n**Warning modal**\n\nThe modal has the title “Sorting will reset pagination and selection” and the body text: “Are you sure you want to sort? Sorting the table differently will reset the pagination and selection.” It contains a “Don’t ask again” checkbox, a “Cancel” button, and a primary action button labeled “Sort and reset the table”. The user can dismiss this warning permanently through the checkbox.\n\n**Keyset pagination**\n\nSorting is not practical on keyset-paginated tables. Sorting must be disabled entirely on keyset-paginated tables. If sorting is needed for a given use case, change the table to offset pagination instead.\n\n\n\n### Backend vs. frontend pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-58594&t=2PBanDq6QA2yNcI2-4\n\nWhen the table is paginated on the backend, selecting a sort column puts the table body into a loading/skeleton state while the newly sorted page is fetched. Column headers remain visible and readable during loading. Only the body rows show gray skeleton placeholder bars. Once the data is fetched, the table displays the sorted results.\n\nIf the table is paginated on the frontend, the sorted results can be shown immediately without a loading state.\n\n### Double row state\n\nIn a double row configuration (where columns are collapsed into stacked rows within cells due to a narrower viewport), a column can only be sorted by its first row.\n\nIf the second row was previously an independent column that was sorted, and the user then decreases the viewport so that column becomes the second row of a double row, the table remains sorted by that second-row value. The header it belongs to shows the sorting state. However, selecting that header cell sorts by the first row instead. After that point, sorting by the second row is no longer possible while in the double row state.\n\n## Column resizing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-60460&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-61348&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-62238&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-63126&t=2PBanDq6QA2yNcI2-4\n\n### Resize handles\n\nResize handles are thin vertical lines shown at the right edge of each column header. They indicate that a column can be resized. The interaction target for the resize handle is more generous than it appears, to make it easier to grab even for users with lower dexterity. The selectable area extends beyond the visible thin line.\n\nResize handles do not appear:\n\n- **After a checkbox column.** The checkbox column cannot be resized. No resize handle appears between the checkbox column and the first data column.\n- **After the last column.** There is no resize handle at the trailing edge of the last column.\n\n### Mouse interaction\n\n**Header cell hover**\n\nIf a cell header is hovered, the background color change does not extend to the resize handle. The hover background intentionally stops short of the resize handle area.\n\n**Resize handle hover**\n\nWhen the user hovers over the resize handle, the cursor changes to `col-resize`. After hovering the resize handle for 500 ms, the column line gets highlighted with a more visible vertical line extending from the header row down through all data rows. This provides a clear visual indicator of which column border will be resized.\n\n**Dragging**\n\nOnce the user starts dragging the resize handle, a blue “focus” line appears at the column’s edge to indicate which column border is being resized. The column resizes by the amount the user drags left or right. A column cannot be resized beyond its min-width. Only horizontal mouse position changes are taken into account. Vertical movement is ignored.\n\n**Double-select to reset**\n\nThe user can reset a column’s custom size back to the default growth behavior by double-selecting the resize handle.\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64014&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64911&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-65810&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-66694&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a resize**\n\nTo resize a column with the keyboard, the user must first focus the header cell (the header cell shows a visible focus ring).\n\nThe user then presses **Option/Alt + Left/Right arrow keys** to resize the column. While this combination is held, the resize column border indicator (the same one used for mouse interaction) is shown instead of the header cell focus ring.\n\n**Debounce behavior**\n\nThere is a slight debounce after the user stops pressing the keyboard combination, so that the UI does not jump between focus on the header cell and focus on the column border if the user pauses briefly (for example, stops for half a second) and then resumes resizing. After the debounce completes, focus returns to the header cell.\n\n**Reset with keyboard**\n\nIf the user presses **Option/Alt + 0** while a column header is focused, the column size resets to the default auto-sizing behavior.\n\n\n\n## Column reordering\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-67592&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-68484&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-69377&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-70279&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-71181&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72085&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72987&t=2PBanDq6QA2yNcI2-4\n\n### Mouse / pointer interaction\n\n**Hover state**\n\nIf the user hovers a header cell, it enters the hovered state and shows the sort icon. This is the entry point for initiating a drag.\n\n**Starting a drag**\n\nIf the user starts dragging, the hover effect on the column header disappears (including the sort both-ways icon). Instead the whole column receives a **3px focused outline**.\n\nAbove the dragged column, a **gray-translucent ghost column** appears. It follows the user’s pointer.\n\n- The **focused column** indicates what column is being dragged.\n- The **ghost column** indicates where the column is being dragged to.\n\n**Moving the ghost column**\n\nAs the user moves while dragging, the ghost column follows. A **drop zone indicator line** also appears. It indicates where the column would be dropped if the user released the column.\n\n**Drop position logic**\n\nWhere the column will be dropped is determined by the edges of the ghost column crossing the **horizontal midpoint** of a target column. For example, if the right edge of the ghost column has crossed a target column’s midpoint, the dragged column will be dropped to the right of that target column.\n\n**Releasing the column**\n\nWhen the user releases the ghost column, the actual column moves to where the drop zone indicator line indicated. **The move is animated.**\n\n**Completed state**\n\nAfter the column has been moved:\n\n- The drop zone indicator line disappears.\n- The column is no longer focused.\n- The ghost column disappears.\n\nThe table returns to a clean, resting state with the new column order.\n\n\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-73870&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-74768&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a keyboard move**\n\nTo move a column with the keyboard, the user must have a table header cell focused.\n\n**Key combination**\n\nIf a table header cell is focused and **Shift + Arrow Left/Right** is pressed, the column moves left or right (if it can).\n\n**Animation and focus retention**\n\nThe move is animated. The header cell **remains focused** after the move, allowing continued keyboard interaction without re-focusing.\n\n### Constraints\n\n**Immovable columns**\n\n- **Checkbox column:** The checkbox column cannot be moved, and no column can be moved before the checkbox column. It serves as the fixed left boundary.\n- **Action column:** The action column cannot be moved, and no column can be moved after the action column. It serves as the fixed right boundary.\n\n**Pinned column behavior during drag**\n\n- If a **pinned column** is dragged between non-pinned columns, that column becomes **non-pinned**.\n- If a **non-pinned column** is dragged to the left of a pinned column, it becomes **pinned** as well.\n\n## Column pinning\n\n### How to pin a column\n\nThe user pins a column through the **table settings panel** (opened from the gear icon on the far right of the header row). The settings panel displays a list of all columns, each with a pin icon and a delete icon. Selecting the pin icon on a column pins it.\n\nWhen the user **hovers** the pin icon, a tooltip appears explaining what the button does. The tooltip also states that pinning only takes effect when the table is horizontally scrolling, so users are not confused if pinning has no visible result on a table that fits within the viewport.\n\n### Column repositioning on pin\n\nIf the user pins a column that is not already adjacent to the left edge, the column is **moved to the left** into the pinned column group. The settings panel column order updates to reflect the new arrangement.";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "label";
|
|
@@ -23,40 +23,40 @@ ds:apps.subcomponent.data_table-header_cell a ds:Subcomponent;
|
|
|
23
23
|
ds:summary "Whether the column header responds to sort interactions. Enable only for columns where the sort order is obvious and helpful to the user.";
|
|
24
24
|
ds:propertyType "boolean";
|
|
25
25
|
ds:optional "true";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:constraints "Not available on checkbox or action variants. Disabled entirely on keyset-paginated tables.";
|
|
27
|
+
ds:defaultValue "false"
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "resizable";
|
|
31
31
|
ds:summary "Whether the resize handle is shown at the right edge of the header cell.";
|
|
32
32
|
ds:propertyType "boolean";
|
|
33
33
|
ds:optional "true";
|
|
34
|
-
ds:
|
|
35
|
-
ds:
|
|
34
|
+
ds:constraints "Not available on checkbox or action variants.";
|
|
35
|
+
ds:defaultValue "true"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "reorderable";
|
|
39
39
|
ds:summary "Whether the column can be dragged to a new position through the header cell or the settings menu.";
|
|
40
40
|
ds:propertyType "boolean";
|
|
41
41
|
ds:optional "true";
|
|
42
|
-
ds:
|
|
43
|
-
ds:
|
|
42
|
+
ds:constraints "Checkbox and action columns are never reorderable.";
|
|
43
|
+
ds:defaultValue "true"
|
|
44
44
|
], [
|
|
45
45
|
a ds:Property;
|
|
46
46
|
ds:name "pinnable";
|
|
47
47
|
ds:summary "Whether the column can be pinned to the left side of the table through the settings menu.";
|
|
48
48
|
ds:propertyType "boolean";
|
|
49
49
|
ds:optional "true";
|
|
50
|
-
ds:
|
|
51
|
-
ds:
|
|
50
|
+
ds:constraints "Subject to smart pinning constraints. Pinning only takes effect during horizontal scrolling.";
|
|
51
|
+
ds:defaultValue "true"
|
|
52
52
|
], [
|
|
53
53
|
a ds:Property;
|
|
54
54
|
ds:name "sort-direction";
|
|
55
55
|
ds:summary "The current sort state of the column. Follows a three-step cycle: ascending, descending, unsorted.";
|
|
56
56
|
ds:propertyType "choice";
|
|
57
57
|
ds:optional "true";
|
|
58
|
-
ds:
|
|
59
|
-
ds:
|
|
58
|
+
ds:constraints "Only applies when sortable is true.";
|
|
59
|
+
ds:defaultValue "unsorted"
|
|
60
60
|
], [
|
|
61
61
|
a ds:Property;
|
|
62
62
|
ds:name "column-width";
|
|
@@ -10,37 +10,37 @@ ds:apps.subcomponent.data_table-pagination_bar a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "Pagination splits a large dataset into discrete pages, loading and displaying only a subset of rows at a time. This reduces initial load time, keeps the interface responsive, and prevents the browser from rendering thousands of rows at once. Without pagination, the table loads the entire dataset upfront, which works for small, static datasets but becomes a performance and usability problem as the row count grows.\n\nThe decision to paginate depends on both the size of the dataset and how users interact with it. If users need to see all items at a glance or rely on browser search to find specific rows, pagination can get in the way. If the dataset is large, dynamic, or backend-driven, pagination is almost always the right choice.\n\n## When to use\n\n- The dataset contains more than a few dozen rows.\n- Data is fetched from a backend and loading all items at once would be slow or impractical.\n- Users work through data page by page rather than needing a complete view of all items simultaneously.\n- Users benefit from stable page positions as a reference point. Pagination gives users a sense of location within the dataset, making it easier to return to a previously seen item or communicate its position to others (for example, “it’s on page 3”).\n- The table supports sorting, filtering, or grouping that triggers new data fetches.\n\n## When not to use\n\n- The dataset is small and static, such as a configuration table with fewer than 20 rows.\n- Users need to see all items at once to compare or scan across the full set.\n- The table is used for display only and the full dataset is already available on the frontend.\n\n## Offset vs. keyset pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76133&t=2PBanDq6QA2yNcI2-4\n\nOffset pagination is for backends that support offset-based pagination. It provides full random-access navigation across pages.\n\nKeyset pagination is for backends that support keyset-based pagination. Because the backend cannot report a total item count or support arbitrary page jumps, the UI adapts accordingly.\n\n## Page-size options\n\nThe default page-size options are **50, 75, 100**. The designer can change these when the context demands different amounts. For example, a table displaying log entries or audit events may benefit from larger page sizes (such as 100, 250, 500) because users typically scan many rows quickly. A table displaying detailed records where each row requires careful reading may work better with smaller page sizes (such as 10, 25, 50) to avoid overwhelming the user.\n\n## Positioning\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76173&t=2PBanDq6QA2yNcI2-4\n\nThe pagination bar is **sticky** and always visible at the bottom of the table container, even when the table body is scrolled. This makes sure users can navigate between pages without scrolling to the bottom of the table first. On dedicated table pages, the pagination bar sits at the bottom of the page.\n\n**Border treatment** varies with scroll state:\n\n- **1px border** when there are no items scrolled underneath (content does not overflow).\n- **2px border** when there are items below the visible area (content overflows).\n\nWhen **multiple tables** appear on the same page, each table gets its own pagination bar that hugs the table’s content directly, rather than being pushed to the bottom of the page.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Page selector\n\nThe page selector allows the user to jump directly to a specific page without stepping through pages one at a time. It is a **browser-native dropdown** rather than a free-text input field. This avoids the need for input validation and error states inside a pagination bar, which are difficult to handle well. A dropdown restricts the user to valid inputs only. When the dropdown is focused, the user can still type a number and the dropdown selects the matching entry.\n\n## Navigation buttons\n\nIn offset pagination, four buttons are provided:\n\n- Jump to **first page** (double left arrow)\n- Go **one page back** (single left arrow)\n- Go **one page forward** (single right arrow)\n- Jump to **last page** (double right arrow)\n\nIn keyset pagination, only the previous and next buttons are shown.\n\nWhen an action is not possible, for example the previous-page button when the user is already on the first page, the button is **disabled**.\n\n## Keyset item count tooltip\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76134&t=2PBanDq6QA2yNcI2-4\n\nA **tooltip** is available on hover over the item count summary in keyset pagination. It explains why no definite total can be given. This addresses potential user confusion about the “more than X items” messaging by clarifying that keyset pagination does not provide a total count.\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "pagination-mode";
|
|
17
17
|
ds:summary "The pagination strategy. Offset provides random-access page navigation with a page selector, jump-to-first, and jump-to-last buttons. Keyset supports forward and back navigation only and displays an approximate item count.";
|
|
18
18
|
ds:propertyType "choice";
|
|
19
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
20
|
ds:constraints "Inherited from the data table. Keyset pagination is incompatible with grouping and sorting.";
|
|
21
|
-
ds:
|
|
21
|
+
ds:defaultValue "offset"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "page-size-options";
|
|
25
25
|
ds:summary "The set of page sizes available in the page-size selector dropdown. The first value in the list is used as the default page size.";
|
|
26
26
|
ds:propertyType "list of text";
|
|
27
|
-
ds:
|
|
27
|
+
ds:optional "true";
|
|
28
28
|
ds:constraints "Inherited from the data table. Each value must be a positive integer.";
|
|
29
|
-
ds:
|
|
29
|
+
ds:defaultValue "50, 75, 100"
|
|
30
30
|
], [
|
|
31
31
|
a ds:Property;
|
|
32
32
|
ds:name "item-label";
|
|
33
33
|
ds:summary "A context-specific noun used in the item amount label and the item count summary in place of \"Items\" (for example, \"Machines\" or \"Orders\").";
|
|
34
34
|
ds:propertyType "text";
|
|
35
|
-
ds:
|
|
35
|
+
ds:optional "true";
|
|
36
36
|
ds:constraints "Inherited from the data table.";
|
|
37
|
-
ds:
|
|
37
|
+
ds:defaultValue "Items"
|
|
38
38
|
], [
|
|
39
39
|
a ds:Property;
|
|
40
40
|
ds:name "item-count-display";
|
|
41
41
|
ds:summary "How the total item count is shown. Offset pagination displays an exact total (for example, \"out of 942 items\"). Keyset pagination displays an approximate total (for example, \"of more than 150 items\") because the backend cannot report a definitive count. A tooltip on the keyset item count explains why no exact total is available.";
|
|
42
42
|
ds:propertyType "choice";
|
|
43
|
-
ds:
|
|
44
|
-
ds:
|
|
43
|
+
ds:optional "true";
|
|
44
|
+
ds:defaultValue "Determined by pagination-mode."
|
|
45
45
|
];
|
|
46
46
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -8,45 +8,45 @@ ds:apps.subcomponent.data_table-persistent_selection a ds:Subcomponent;
|
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-7087&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4815-84027&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "The persistent selection panel supports workflows where users need to build up a selection of items across multiple table pages before performing a bulk action. Without it, users would lose their selection every time they navigate to a different page, sort, or filter. The panel makes the current selection visible and manageable at all times.\n\nIn enterprise applications, users often work with large datasets where the items they need to act on are not conveniently grouped on a single page. For example, a system administrator managing a fleet of machines may need to select specific instances across several pages to reassign them to a different team, apply a configuration change, or schedule maintenance. The persistent selection panel lets them browse through pages, pick items as they go, and review the full selection before committing to the action. Without persistent selection, this workflow would require the user to memorize or manually track which items they need, then act on them one page at a time.\n\n## When to use\n\n- Users need to select items across multiple table pages before performing a bulk action.\n- The dataset is large enough that relevant items are spread across different pages.\n- Users need to review and adjust their selection before committing to an action.\n\n## When not to use\n\n- All selectable items fit on a single table page. Simple selection is sufficient in this case.\n- The table does not support row selection at all.\n- Bulk actions are not a feature of the table.\n\n## Large selections\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78504&t=2PBanDq6QA2yNcI2-4\n\nFor tables with hundreds of thousands of items, users could potentially select a very large number. It would be impractical to show all of them in the compact panel. After a certain threshold, a warning message appears when the user scrolls to the bottom of the panel, telling them that the selection is too large to show inline and that they should use the expand function to view the full selection.\n\nIf there are performance concerns related to the number of selected items or frontend pagination of the selection, a hard limit on the number of items a user can select may need to be considered.";
|
|
11
|
-
ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=
|
|
11
|
+
ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ4GOSFWCY65GOSXI%2F20261112%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20261112T000000Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e00a5222edabffbefa28a524a1b98c3c1a203cbce0d1ce5e6b2357951c1dcf64\",\"outline\":true},\"Url\":{\"type\":\"urlref\",\"url\":\"https://www.figma.com/make/4V5OfFCOm2lYDgYnMVKxTl/Expand-Action-Bar-Prototype?t=hWsBoH4yq28uty6g-1\",\"name\":\"\"},\"Modified\":{\"type\":\"dt\",\"input\":\"5/21/2026 3:52:33 PM\",\"epoch\":1779371553.337,\"formatted\":\"5/21/2026\"},\"ModifiedBy\":{\"type\":\"obj\",\"value\":{\"Handle\":\"Maximilian Blazek\",\"Avatar\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/profile/534b2668-e456-4568-98c9-60d645790fdc\",\"outline\":true}}},\"Label\":\"2356039340008127983\",\"CommentsCount\":0}\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-72617&t=2PBanDq6QA2yNcI2-4\n\n## Deselecting items\n\nUsers can deselect individual items by selecting the “X” button on each row in either the floating panel or the expanded view.\n\nSelecting the main deselect (X) button in the action bar deselects everything. If the expanded view is open, the modal closes, and the floating bar is also hidden since nothing remains selected.\n\nAfter the user deselects everything through the main deselect button, a toast notification appears with a message such as “Deselected everything by accident?” with an undo option. This toast disappears after 10 seconds. Proper accessibility needs to be provided for this toast.\n\n## Tooltips\n\nAll interactive selection elements have tooltips on hover:\n\nTable 6\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "unique-identifier-field";
|
|
17
17
|
ds:summary "The column or field used to identify each selected item in the panel. Usually the first column (the name column). The panel displays this value as the human-readable label for each selected item.";
|
|
18
18
|
ds:propertyType "text";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
|
+
ds:constraints "Inherited from the data table."
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "max-selection-count";
|
|
24
24
|
ds:summary "A hard limit on the number of items a user can select. Use when there are performance concerns related to the number of selected items or frontend pagination of the selection.";
|
|
25
25
|
ds:propertyType "number";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:optional "true";
|
|
27
|
+
ds:constraints "Inherited from the data table. Must be a positive integer."
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "max-items-per-page";
|
|
31
31
|
ds:summary "The maximum number of selected items shown per page in the expanded view before simplified pagination controls appear.";
|
|
32
32
|
ds:propertyType "number";
|
|
33
|
-
ds:constraints "Must be a positive integer.";
|
|
34
33
|
ds:optional "true";
|
|
34
|
+
ds:constraints "Must be a positive integer.";
|
|
35
35
|
ds:defaultValue "50"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "undo-toast-duration";
|
|
39
39
|
ds:summary "How long the undo toast remains visible after the user deselects all items through the main deselect button.";
|
|
40
40
|
ds:propertyType "number";
|
|
41
|
-
ds:constraints "Must be a positive integer, in seconds.";
|
|
42
41
|
ds:optional "true";
|
|
42
|
+
ds:constraints "Must be a positive integer, in seconds.";
|
|
43
43
|
ds:defaultValue "10"
|
|
44
44
|
], [
|
|
45
45
|
a ds:Property;
|
|
46
46
|
ds:name "large-selection-threshold";
|
|
47
47
|
ds:summary "The number of selected items after which a warning message appears at the bottom of the compact panel, advising the user to use the expanded view. When not set, no threshold warning is shown.";
|
|
48
48
|
ds:propertyType "number";
|
|
49
|
-
ds:
|
|
50
|
-
ds:
|
|
49
|
+
ds:optional "true";
|
|
50
|
+
ds:constraints "Must be a positive integer."
|
|
51
51
|
];
|
|
52
52
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -10,56 +10,56 @@ ds:apps.subcomponent.data_table-settings_menu a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "The settings menu gives users control over how the table is structured and displayed. It is enabled by default on every data table. It is the central place for adjusting column order, visibility, and pinning without leaving the table context. If any of these customization features are enabled on the table, the settings menu must be present to provide access to them. The settings menu is only hidden when the designer has actively disabled all customization features, making the table fully static.\n\nFor example, a network operations team may want to pin a status column and hide columns irrelevant to their role, while a capacity planning team viewing the same table may prioritize different columns entirely.\n\n## When to use\n\n- The table has enough columns that users benefit from hiding, reordering, or pinning them.\n- Different users or roles interact with the same table but care about different columns.\n- The table is a core part of the user’s daily workflow and they are likely to customize it over time.\n\n## When not to use\n\n- The designer has disabled all customization features (column reordering, pinning, and visibility). Only then can the settings menu be hidden.\n- The table is temporary or shown briefly, such as in a modal or a summary view, where customization adds no value.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Button states\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-76790&t=2PBanDq6QA2yNcI2-4\n\n- **Hover** - the gear icon displays a hover effect. A tooltip appears (for example, “Open table settings”).\n- **Select** - selecting the gear icon opens the settings dropdown menu.\n\n## Column reordering through drag-and-drop\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78680&t=2PBanDq6QA2yNcI2-4\n\n\n\nUsers can reorder columns by dragging items in the settings menu. The first item corresponds to the first table column, the second to the second column, and so on.\n\n### Starting a drag\n\nThe user initiates a drag from the **drag handle area** on the left side of a menu item. When dragging begins:\n\n- The item being reordered receives a **3px focus outline** (border-primary color) and stays in its original position throughout the drag. This prevents items from shifting around during the interaction, which could lead to accidental misplacement.\n- A **“ghost item”** appears directly over the original item. The ghost has a gray background with opacity and a blue secondary border.\n\n### During the drag\n\n- The ghost item follows the cursor as the user drags up or down.\n- A **3px-wide drop zone indicator line** (border-primary color) appears between items, showing where the item will land if the user releases.\n- The original item retains its focus outline so the user always knows which item is being moved.\n\n### Drop zone change logic\n\nThe drop position updates based on a **halfway-point rule**: the drop zone shifts past an item once the upper or lower edge of the ghost item crosses the vertical midpoint of the item currently being dragged over. For example, if the ghost item’s bottom edge has not yet crossed the midpoint of a given row, the drop zone remains above that row. Once it crosses, the drop zone moves below it.\n\n### Completing the drop\n\nWhen the user releases, the item moves to the position indicated by the drop zone line. The reorder **is animated**.\n\n### \n\n## Column reordering through keyboard\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78937&t=2PBanDq6QA2yNcI2-4\n\nTo reorder columns using the keyboard:\n\n1. Focus a column item in the settings menu.\n2. Press **Shift + Arrow Up** or **Shift + Arrow Down** to move the item.\n\nThe move happens immediately on key press, is animated, and the item remains focused after moving.\n\n## Column pinning toggle\n\nSelecting the **pin icon** on a menu item pins the corresponding column. Refer to the column pinning section for full pinning behavior.\n\n## Column visibility toggle\n\nSelecting the **eye (show/hide) icon** on a menu item toggles the corresponding column between visible and hidden.\n\n## Tooltips\n\nEvery interactive element in the settings menu and the settings button itself displays a tooltip on hover:\n\nTable 2\n\n## Reset table settings\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78939&t=2PBanDq6QA2yNcI2-4\n\nThe “Reset table settings” action link at the bottom of the menu resets all user-made table customizations to their defaults. This includes column resizing, column reordering, column pinning, column visibility, and any other saved preferences.\n\nThese table settings are persisted in **browser cross-session storage**. Resetting clears everything written to that storage.\n\nA **confirmation modal** is shown after selecting the link. The table is only reset if the user confirms.\n\n## Keyboard shortcuts modal\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-79945&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-81019&t=2PBanDq6QA2yNcI2-4\n\nThe “Table keyboard shortcuts” action link at the bottom of the menu opens a **modal dialog** titled “Table keyboard shortcuts”. The modal has a two-column layout with “Command” and “Shortcut” headers.\n\n### General navigation\n\nTable 3\n\n### While a header cell is focused\n\nTable 4\n\n### While a table settings item is focused\n\nTable 5";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "settings-menu";
|
|
17
17
|
ds:summary "Whether the settings gear icon and menu are shown in the header row.";
|
|
18
18
|
ds:propertyType "boolean";
|
|
19
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
20
|
ds:constraints "Inherited from the data table. Only set to false when all column customization features are disabled.";
|
|
21
|
-
ds:
|
|
21
|
+
ds:defaultValue "true"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "grouping-columns";
|
|
25
25
|
ds:summary "The set of columns that support grouping. Columns in this list display a \"Group by\" button in the settings menu.";
|
|
26
26
|
ds:propertyType "list of text";
|
|
27
|
-
ds:
|
|
28
|
-
ds:
|
|
27
|
+
ds:optional "false";
|
|
28
|
+
ds:constraints "Inherited from the data table. Each value must reference an enumerated-value column."
|
|
29
29
|
], [
|
|
30
30
|
a ds:Property;
|
|
31
31
|
ds:name "reorderable-columns";
|
|
32
32
|
ds:summary "Whether columns can be reordered through drag-and-drop or keyboard in the settings menu. When false, drag handles are hidden.";
|
|
33
33
|
ds:propertyType "boolean";
|
|
34
|
-
ds:
|
|
35
|
-
ds:
|
|
34
|
+
ds:optional "false";
|
|
35
|
+
ds:defaultValue "true"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "pinnable-columns";
|
|
39
39
|
ds:summary "Whether the pin icon is available on column items in the settings menu. When false, pin icons are hidden.";
|
|
40
40
|
ds:propertyType "boolean";
|
|
41
|
-
ds:
|
|
42
|
-
ds:
|
|
41
|
+
ds:optional "false";
|
|
42
|
+
ds:defaultValue "true"
|
|
43
43
|
], [
|
|
44
44
|
a ds:Property;
|
|
45
45
|
ds:name "hideable-columns";
|
|
46
46
|
ds:summary "Whether the eye (visibility) icon is available on column items in the settings menu. When false, visibility icons are hidden.";
|
|
47
47
|
ds:propertyType "boolean";
|
|
48
|
-
ds:
|
|
49
|
-
ds:
|
|
48
|
+
ds:optional "false";
|
|
49
|
+
ds:defaultValue "true"
|
|
50
50
|
], [
|
|
51
51
|
a ds:Property;
|
|
52
52
|
ds:name "reset-enabled";
|
|
53
53
|
ds:summary "Whether the \"Reset table settings\" action link is shown at the bottom of the menu. Resetting clears all user customizations persisted in browser storage.";
|
|
54
54
|
ds:propertyType "boolean";
|
|
55
|
-
ds:
|
|
56
|
-
ds:
|
|
55
|
+
ds:optional "false";
|
|
56
|
+
ds:defaultValue "true"
|
|
57
57
|
], [
|
|
58
58
|
a ds:Property;
|
|
59
59
|
ds:name "keyboard-shortcuts-enabled";
|
|
60
60
|
ds:summary "Whether the \"Table keyboard shortcuts\" action link is shown at the bottom of the menu.";
|
|
61
61
|
ds:propertyType "boolean";
|
|
62
|
-
ds:
|
|
63
|
-
ds:
|
|
62
|
+
ds:optional "false";
|
|
63
|
+
ds:defaultValue "true"
|
|
64
64
|
];
|
|
65
65
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-content a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.Content";
|
|
7
|
+
ds:summary "Side navigation content contains navigation item groups and, optionally, a context switcher. It sits below the header and above the footer (when present), and scrolls when its contents exceed the available height, while the header and footer remain fixed.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.Content\n├── Context switcher (optional, primary only)\n└── Nav\n └── Navigation item group (repeatable)\n ├── Divider (shown before every group except the first)\n ├── Group header (optional)\n └── Navigation item (repeatable)\n```\n\n```\n---\n# SideNavigation.Content — the navigation region of a pane.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# One Content block serves both panes: the context switcher edge is optional\n# and, per the tree, appears in the primary pane only. \"Nav\" is the\n# navigation landmark itself and is anonymous — no block names it.\nnode:\n uri: apps.subcomponent.side_navigation-content\n edges:\n # Primary pane only.\n - node:\n uri: apps.subcomponent.side_navigation-context_switcher\n relation:\n cardinality: \"0..1\"\n slotName: context-switcher\n - node:\n role: nav\n edges:\n - node:\n uri: apps.subcomponent.side_navigation-item_group\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "## Content specification\n\n### Primary navigation\n\nThe content can include the following sub-components:\n\n- Context switcher (optional)\n- Navigation item groups\n\nThe context switcher, when used, is always positioned at the top, before the navigation item groups.\n\n### Secondary navigation\n\nThe content can include navigation item groups only. The context switcher is not supported in secondary navigation.\n\n## Responsive behaviour\n\n### Desktop\n\nThe content is displayed when the primary navigation is expanded and hidden when it is collapsed.\n\n### Mobile\n\nOn mobile, the content is hidden when the navigation menu is closed and displayed when the menu is opened.\n\nThe content follows the mobile navigation behaviour defined in the main Side navigation documentation.\n\n## Interaction\n\n### Scrolling\n\nWhen the navigation content exceeds the available height, it scrolls independently of the fixed header and footer.\n\n### Overflow\n\nOverflow lines appear below the sticky header and above the sticky footer only when there is additional content to scroll in the corresponding direction.\n\nIn secondary navigation, there is no bottom overflow line. The content simply scrolls beyond the bottom of the viewport.\n\n## Accessibility\n\n### Keyboard navigation\n\nInteractive elements within the content should follow a logical, top-to-bottom focus order.\n\nWhen a context switcher is present, it should receive focus before the navigation items.\n\nWhen the content is hidden, its interactive elements must not be reachable through keyboard navigation.\n\n### Scrolling\n\nUsers must be able to access all navigation content using a keyboard, including content that requires scrolling.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.component.side_navigation.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-context_switcher a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.ContextSwitcher";
|
|
7
|
+
ds:summary "The context switcher allows users to switch between different contexts, such as projects or users, within an application. The context switcher is a dropdown that includes the currently selected context, a list of available contexts, and an optional action to create a new context.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.ContextSwitcher\n├── Label (optional)\n├── Context switcher dropdown\n│ ├── Current context\n│ └── Dropdown icon\n└── Context list (visible only when dropdown is open)\n ├── Context switcher item (repeatable)\n │ ├── Context title\n │ ├── Context description\n │ └── Badge (optional)\n ├── Separator (when Create context is shown)\n └── Create context button (optional)\n ├── Create icon\n └── Create context label\n```\n\n```\n---\n# SideNavigation.ContextSwitcher — a dropdown for switching between\n# contexts.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# The tree marks the context list \"visible only when the dropdown is open\".\n# That is conditional display, for which the DSL has no construct: the list\n# is modelled as a node and the condition recorded here.\n#\n# The tree says \"Context description\" without marking it optional, so it is\n# required. Only \"Badge\" and \"Create context button\" carry the optional mark\n# inside the list.\nnode:\n uri: apps.subcomponent.side_navigation-context_switcher\n edges:\n - node:\n role: label\n relation:\n cardinality: \"0..1\"\n slotName: label\n - node:\n role: context switcher dropdown\n edges:\n - node:\n role: current context\n relation:\n cardinality: \"1\"\n slotName: label\n # The tree does not name the glyph, so no prop is pinned here.\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"1\"\n slotName: end\n relation:\n cardinality: \"1\"\n slotName: trigger\n - node:\n # Visible only while the dropdown is open.\n role: context list\n edges:\n - node:\n role: context switcher item\n edges:\n - node:\n role: context title\n relation:\n cardinality: \"1\"\n slotName: title\n - node:\n role: context description\n relation:\n cardinality: \"1\"\n slotName: description\n - node:\n uri: global.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: badge\n relation:\n cardinality: \"1..*\"\n slotName: default\n # Present only when the create-context button is.\n - node:\n role: separator\n relation:\n cardinality: \"0..1\"\n - node:\n role: create context button\n edges:\n # The tree does not name the glyph, so no prop is pinned.\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"1\"\n slotName: icon\n - node:\n role: create context label\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"0..1\"\n slotName: create\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "Context switcher anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10062-13449&t=HfRgpBcYWYYrZVn8-1\n\nContext switcher styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10064-25238&t=HfRgpBcYWYYrZVn8-1\n\nMobile navigation — Context switcher open anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=11030-17767&t=kljb9kz81nAn2N2G-1";
|
|
10
|
+
ds:usage "### When to use\n\nUse the context switcher if your application classifies content into different contexts, projects, users, or similar. The navigation pages should remain the same for every context, while the content varies depending on the selected context.\n\n### When not to use\n\nDo not use the context switcher to navigate between unrelated sections or pages of an application. Use navigation items instead.";
|
|
11
|
+
ds:guidelines "## Content specification\n\nThe context switcher can only be used in the primary navigation. It is always positioned at the top of the navigation content, before the navigation item groups.\n\n### Context switcher dropdown\n\nThe context switcher dropdown displays the currently selected context.\n\nThe context switcher can have an optional label that describes the context being selected.\n\n### Context list\n\nThe context switcher items are user-generated. Users should be able to create new contexts, which are then listed in the context list.\n\nA context switcher item can have a badge, which should be used to convey dynamic and actionable information related to that context. Badges indicate a quantifiable status change and should not be used to convey passive information.\n\nThe Create context button is optional. When used, it is separated from the context switcher items by a separator.\n\n## Responsive behaviour\n\n### Mobile\n\nThe context switcher appears in the same position as on desktop. When the user opens the dropdown, the context list is displayed on top of the navigation content.\n\nWhen the context is switched, the mobile navigation closes.\n\n## Interaction\n\n### Context switcher dropdown\n\n**Hover**\n\nOn hover, the background colour of the context switcher dropdown changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen the context switcher dropdown is clicked, the `is-open` property is toggled to show or hide the context list.\n\n### Context switcher item\n\n**Hover**\n\nOn hover, the background colour of the context switcher item changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen a context switcher item is clicked, the current context is set to the selected context. This may refresh the content of the page to reflect the newly selected context.\n\nThe current page remains open if it exists in the newly selected context. Otherwise, the default page of the new context is opened.\n\n### Create context button\n\n**Hover**\n\nOn hover, the background colour of the Create context menu item changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen the Create context menu item is clicked, the user is forwarded to the page where a new context can be created.\n\n## Accessibility\n\n### Keyboard navigation\n\nThe context switcher should come before the navigation items in the focus order, following its position in the navigation content.\n\nThe dropdown and its menu items must be accessible using the keyboard.\n\n### Screen reader\n\nThe context switcher must have an accessible name, and the currently selected context must be identifiable to screen-reader users.\n\nContext switcher items must have accessible names that describe their purpose.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:hasProperty [
|
|
14
|
+
a ds:Property;
|
|
15
|
+
ds:name "current-context";
|
|
16
|
+
ds:summary "Sets the currently selected context and its name in the dropdown field.";
|
|
17
|
+
ds:propertyType "choice";
|
|
18
|
+
ds:optional "false"
|
|
19
|
+
], [
|
|
20
|
+
a ds:Property;
|
|
21
|
+
ds:name "is-open";
|
|
22
|
+
ds:summary "Controls whether the context list is open or closed.";
|
|
23
|
+
ds:propertyType "boolean";
|
|
24
|
+
ds:optional "false";
|
|
25
|
+
ds:defaultValue "`false`"
|
|
26
|
+
], [
|
|
27
|
+
a ds:Property;
|
|
28
|
+
ds:name "contexts";
|
|
29
|
+
ds:summary "Defines the context switcher items.";
|
|
30
|
+
ds:propertyType "list of nodes";
|
|
31
|
+
ds:optional "false";
|
|
32
|
+
ds:constraints "Only context switcher items are allowed."
|
|
33
|
+
], [
|
|
34
|
+
a ds:Property;
|
|
35
|
+
ds:name "context-name";
|
|
36
|
+
ds:summary "Defines the name of the context.";
|
|
37
|
+
ds:propertyType "text";
|
|
38
|
+
ds:optional "false"
|
|
39
|
+
], [
|
|
40
|
+
a ds:Property;
|
|
41
|
+
ds:name "context-description";
|
|
42
|
+
ds:summary "Defines the description of the context.";
|
|
43
|
+
ds:propertyType "text";
|
|
44
|
+
ds:optional "false"
|
|
45
|
+
], [
|
|
46
|
+
a ds:Property;
|
|
47
|
+
ds:name "badge";
|
|
48
|
+
ds:summary "Controls whether the badge is displayed.";
|
|
49
|
+
ds:propertyType "boolean";
|
|
50
|
+
ds:optional "false";
|
|
51
|
+
ds:defaultValue "`false`"
|
|
52
|
+
];
|
|
53
|
+
ds:parentComponent ds:apps.component.side_navigation.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-item a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.Item";
|
|
7
|
+
ds:summary "A navigation item is an interactive element that allows users to navigate to a page or access child navigation within an application. In primary navigation, items can link to a page, expand their children inline, or open secondary navigation. In secondary navigation, items link directly to pages.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.Item\n├── Icon (optional, primary navigation only)\n├── Label\n├── Trailing element (optional, one of)\n│ ├── Child navigation indicator (chevron; requires child navigation)\n│ │ ├── Right: opens secondary navigation\n│ │ └── Down: expands children inline\n│ └── Badge (includes collapsed notification indicator)\n└── Children (only when using inline expansion)\n └── Navigation item (repeatable)\n```\n\n```\n---\n# SideNavigation.Item — one navigation row.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# The tree gives the trailing element as \"optional, one of\", which is a\n# switch on a single optional position. Its two branches are a\n# child-navigation chevron and a badge; the chevron's two directions are\n# part of the same choice, so all three alternatives are cases of one\n# switch. The discriminator is `props`: which trailing element appears\n# follows from the item the consumer supplies.\n#\n# The tree marks the children \"only when using inline expansion\" — the same\n# condition that selects the down-pointing chevron. Conditional display is\n# not expressible in the DSL, so the edge is optional and the condition is\n# recorded here.\n#\n# The children edge is recursive: a child is itself a SideNavigation.Item.\n# The tree sets no depth limit, and this anatomy asserts none.\nnode:\n uri: apps.subcomponent.side_navigation-item\n edges:\n # Primary navigation only.\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: label\n relation:\n cardinality: \"1\"\n slotName: label\n - switch:\n on: props\n cases:\n # Chevron, where the item has child navigation. Pointing to the\n # inline end, it opens the secondary navigation.\n - node:\n uri: global.component.icon\n props:\n icon: chevron-right\n # Pointing to the block end, it expands the children inline.\n - node:\n uri: global.component.icon\n props:\n icon: chevron-down\n # Also carries the collapsed-rail notification indicator.\n - uri: global.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: end\n # Inline expansion only.\n - node:\n uri: apps.subcomponent.side_navigation-item\n relation:\n cardinality: \"0..*\"\n slotName: children";
|
|
9
|
+
ds:anatomyClassic "Navigation item anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10063-14807&t=HfRgpBcYWYYrZVn8-1\n\nNavigation item styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10064-25717&t=HfRgpBcYWYYrZVn8-1";
|
|
10
|
+
ds:usage "### When to use\n\nUse navigation items to link to pages within an application or provide access to child navigation through expandable items or secondary navigation.\n\n### When not to use\n\nDo not use an expandable navigation item as a direct link to a page. Its only click interaction is expanding or collapsing its children. Use the children to link to pages instead.";
|
|
11
|
+
ds:guidelines "## Content specification\n\n### Navigation items\n\nNavigation items constitute the side navigation.\n\nIn primary navigation, items can have icons and can be expandable or open secondary navigation.\n\nIn secondary navigation, items cannot have icons or be expandable.\n\n### Icons\n\nIcons are used to graphically represent the meaning of the item text. They are optional, as not every concept can be represented with an icon.\n\n### Item text\n\nNavigation item labels should be descriptive and intuitive, allowing users to understand the purpose of each item.\n\nDesigners should choose labels that do not overflow. If there is insufficient space, the item text is truncated to a single line.\n\nWhen text is truncated, a tooltip displaying the full text appears after an 800 ms hover delay.\n\n### Expandable items\n\nNavigation items can have children. An expandable item itself cannot link to a page. Its only click interaction is expanding or collapsing its children.\n\nChildren should be grouped either inside an expandable item or displayed in secondary navigation.\n\nExpandable navigation items cannot contain nested expandable items.\n\nThe parent item should have a name that allows users to discover its children, as child items are not always displayed.\n\nOn desktop, a right-pointing chevron indicates that the item opens secondary navigation, while a downward-pointing chevron indicates that the item expands or collapses its children inline.\n\n### Badges\n\nBadges are used within navigation items to convey dynamic information related to that item, such as notifications that require action or highlight a change.\n\nBadges cannot be displayed together with chevrons.\n\nIn the collapsed primary navigation, badges on footer items are displayed as notification indicators to signal new or unread activity.\n\n## Responsive behaviour\n\n### Mobile\n\nOn mobile, navigation items with children are indicated by a chevron pointing to the right, regardless of whether they are expandable or open secondary navigation on desktop.\n\nWhen the user clicks one of these items, its children are displayed on a new page within the navigation.\n\nA back button with a chevron pointing to the left is displayed at the top of the navigation.\n\n## Interaction\n\n### Navigation item\n\n**Hover**\n\nOn hover, the background colour of the navigation item changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen a standard navigation item is clicked, the user is forwarded to the page specified in its target property.\n\n### Expandable navigation item\n\n**Click**\n\nWhen an expandable navigation item is clicked, its state changes to expanded or collapsed depending on its previous state. The chevron rotates between the open and closed positions.\n\nThe transition is animated.\n\n### Navigation item opening secondary navigation\n\n**Click**\n\nWhen a navigation item configured to display its children in secondary navigation is clicked, the secondary navigation opens.\n\n## Accessibility\n\n### Keyboard navigation\n\n**Standard navigation items**\n\nWhen a navigation item has focus, pressing Enter opens the page specified by its target.\n\n**Expandable navigation items**\n\nWhen an expandable navigation item has focus, pressing Enter toggles its expanded or collapsed state.\n\nWhen an expandable navigation item is expanded using the keyboard, the first child item receives focus.\n\n### Screen reader\n\n**Navigation item labels**\n\nNavigation item labels must be descriptive and intuitive so users can understand the purpose of each link without additional context.\n\n**Expandable navigation items**\n\nUse `aria-expanded` to indicate whether an expandable navigation item is expanded or collapsed.\n\n**Current page**\n\nUse `aria-current=\"page\"` to indicate which navigation link corresponds to the current page or view.\n\n### Reduced motion\n\nFor users with a preference for reduced motion, animations when expanding or collapsing navigation items should be disabled.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:hasProperty [
|
|
14
|
+
a ds:Property;
|
|
15
|
+
ds:name "target";
|
|
16
|
+
ds:summary "Defines the page opened when the item is clicked.";
|
|
17
|
+
ds:propertyType "url";
|
|
18
|
+
ds:optional "true";
|
|
19
|
+
ds:constraints "Cannot be set when `expandable` is true."
|
|
20
|
+
], [
|
|
21
|
+
a ds:Property;
|
|
22
|
+
ds:name "icon";
|
|
23
|
+
ds:summary "Defines the icon displayed at the start of the item.";
|
|
24
|
+
ds:propertyType "choice";
|
|
25
|
+
ds:optional "true"
|
|
26
|
+
], [
|
|
27
|
+
a ds:Property;
|
|
28
|
+
ds:name "show-icon";
|
|
29
|
+
ds:summary "Controls whether the icon is displayed.";
|
|
30
|
+
ds:propertyType "boolean";
|
|
31
|
+
ds:optional "false";
|
|
32
|
+
ds:constraints "Must be false when `indented` is false.";
|
|
33
|
+
ds:defaultValue "`true`"
|
|
34
|
+
], [
|
|
35
|
+
a ds:Property;
|
|
36
|
+
ds:name "indented";
|
|
37
|
+
ds:summary "Controls whether the item text is indented.";
|
|
38
|
+
ds:propertyType "boolean";
|
|
39
|
+
ds:optional "false";
|
|
40
|
+
ds:constraints "Must be true when an icon is displayed.";
|
|
41
|
+
ds:defaultValue "`true`"
|
|
42
|
+
], [
|
|
43
|
+
a ds:Property;
|
|
44
|
+
ds:name "item-text";
|
|
45
|
+
ds:summary "Defines the navigation item label.";
|
|
46
|
+
ds:propertyType "text";
|
|
47
|
+
ds:optional "false"
|
|
48
|
+
], [
|
|
49
|
+
a ds:Property;
|
|
50
|
+
ds:name "badge";
|
|
51
|
+
ds:summary "Controls whether a badge is displayed.";
|
|
52
|
+
ds:propertyType "boolean";
|
|
53
|
+
ds:optional "false";
|
|
54
|
+
ds:constraints "Cannot be used together with a chevron.";
|
|
55
|
+
ds:defaultValue "`false`"
|
|
56
|
+
], [
|
|
57
|
+
a ds:Property;
|
|
58
|
+
ds:name "expandable";
|
|
59
|
+
ds:summary "Controls whether the item expands to display children.";
|
|
60
|
+
ds:propertyType "boolean";
|
|
61
|
+
ds:optional "false";
|
|
62
|
+
ds:constraints "Requires children. Cannot have a badge or target.";
|
|
63
|
+
ds:defaultValue "`false`"
|
|
64
|
+
], [
|
|
65
|
+
a ds:Property;
|
|
66
|
+
ds:name "children";
|
|
67
|
+
ds:summary "Defines the child navigation items.";
|
|
68
|
+
ds:propertyType "list of nodes";
|
|
69
|
+
ds:optional "true";
|
|
70
|
+
ds:constraints "Only navigation items are allowed. Children cannot contain further children."
|
|
71
|
+
], [
|
|
72
|
+
a ds:Property;
|
|
73
|
+
ds:name "is-expanded";
|
|
74
|
+
ds:summary "Controls whether an expandable item is expanded or collapsed.";
|
|
75
|
+
ds:propertyType "boolean";
|
|
76
|
+
ds:optional "false";
|
|
77
|
+
ds:constraints "Can only be true when `expandable` is true.";
|
|
78
|
+
ds:defaultValue "`false`"
|
|
79
|
+
];
|
|
80
|
+
ds:parentComponent ds:apps.component.side_navigation.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-item_group a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.ItemGroup";
|
|
7
|
+
ds:summary "A navigation item group organises related navigation items into a section within the primary or secondary navigation. Each group can have an optional group header and is separated from the previous group by a divider.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.ItemGroup\n├── Divider (shown before every group except the first)\n├── Group header (optional)\n└── Navigation item (repeatable)\n```\n\n```\n---\n# SideNavigation.ItemGroup — a group of navigation items with an optional\n# header.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# The tree marks the divider \"shown before every group except the first\".\n# That is a property of the group's POSITION AMONG ITS SIBLINGS, which a\n# node cannot see from inside its own anatomy. It is modelled here as an\n# optional leading node; the rule that decides when it appears belongs to\n# the parent that lays the groups out.\nnode:\n uri: apps.subcomponent.side_navigation-item_group\n edges:\n # Absent on the first group of a Nav.\n - node:\n role: divider\n relation:\n cardinality: \"0..1\"\n - node:\n uri: apps.subcomponent.side_navigation-group_header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: apps.subcomponent.side_navigation-item\n relation:\n cardinality: \"1..*\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "Primary navigation item group anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10063-14072&t=HfRgpBcYWYYrZVn8-1\n\nPrimary navigation item group styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10064-25394&t=HfRgpBcYWYYrZVn8-1\n\nSecondary navigation item group anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10063-14563&t=HfRgpBcYWYYrZVn8-1\n\nSecondary navigation item group styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10064-25561&t=HfRgpBcYWYYrZVn8-1";
|
|
10
|
+
ds:usage "### When to use\n\nUse navigation item groups to organise navigation items into different sections. Group headers can be used to describe the category that the items in each group belong to.\n\n### When not to use\n\nAvoid creating separate groups when navigation items belong to the same section.";
|
|
11
|
+
ds:guidelines "## Content specification\n\n### Group header\n\nEach group can have an optional group header. The group header describes the category that the navigation items in the group belong to.\n\nGroup headers are displayed on a single line and truncated when there is insufficient space. When text is truncated, a tooltip displaying the full text appears after an 800 ms hover delay.\n\n### Divider\n\nEach group, except the first, should have a divider at the top to separate it from the previous group.\n\n### Navigation items\n\nA navigation item group can contain multiple navigation items.\n\nIn primary navigation, items can be expandable, opening their children inline, or open secondary navigation. Within each group, navigation items should either all have icons or none should.\n\nIn secondary navigation, navigation items cannot have icons or be expandable.\n\n## Responsive behaviour\n\nNavigation item groups follow the responsive behaviour defined in the main Side navigation documentation.\n\n## Accessibility\n\n### Keyboard navigation\n\nNavigation items within each group should follow a logical, top-to-bottom focus order.\n\n### Screen reader\n\nNavigation groups should be announced as navigation sections:\n\n- Start of group: Announced as the start of a navigation section.\n- Group header: Announced as a group heading followed by its label.\n- End of group: Announced as the end of the group.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.component.side_navigation.
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
ds:apps.subcomponent.side_panel-content a ds:Subcomponent;
|
|
6
6
|
ds:name "SidePanel.Content";
|
|
7
7
|
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "", "
|
|
8
|
+
ds:anatomyDsl "", "---\n\n# Authored 2026-09-17 from @canonical/react-ds-app\n\n# src/lib/SidePanel/common/Content/styles.css on .ds.side-panel-content.\n\nnode:\n\n uri: apps.subcomponent.side_panel-content\n\n styles:\n\n # Takes the space the header and footer leave, so a short panel still fills.\n\n layout.flex.grow: 1\n\n layout.flex.shrink: 1\n\n # No scroller here: overflow spills to the panel, which scrolls — that is\n\n # what keeps the scrollbar at the panel's edge rather than inside the text\n\n # column. Padding reads a component-local custom property over\n\n # --dimension-200; spacing.* keys admit spacing. symbols only, so literals.\n\n spacing.internal.block.start: 0.5rem\n\n spacing.internal.block.end: 0.5rem\n\n edges:\n\n - node:\n\n role: content\n\n relation:\n\n cardinality: \"1\"\n\n slotName: default";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:parentComponent ds:apps.pattern.side_panel.
|