@canonical/design-system 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/data/apps/pattern/data_views.ttl +85 -0
  2. package/data/apps/pattern/datatable.ttl +3 -73
  3. package/data/apps/pattern/page_header.ttl +50 -5
  4. package/data/apps/subcomponent/data_table-action_bar.ttl +2 -2
  5. package/data/apps/subcomponent/data_table-pagination_bar.ttl +2 -2
  6. package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
  7. package/data/apps/subcomponent/data_views-filters.ttl +13 -0
  8. package/data/apps/subcomponent/data_views-saved_views.ttl +13 -0
  9. package/data/apps/subcomponent/data_views-sort_panel.ttl +13 -0
  10. package/data/apps/subcomponent/side_panel-footer.ttl +1 -1
  11. package/data/apps_launchpad/component/modal.ttl +2 -2
  12. package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
  13. package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +4 -4
  14. package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -2
  15. package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -2
  16. package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -2
  17. package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -2
  18. package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +2 -2
  19. package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
  20. package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -2
  21. package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -2
  22. package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
  23. package/data/concept/Accessibility.ttl +9 -0
  24. package/data/concept/Breakpoints.ttl +9 -0
  25. package/data/concept/Design-tokens-Overview.ttl +10 -0
  26. package/data/concept/Filtering-patterns.ttl +0 -1
  27. package/data/concept/Foundations-Baseline.ttl +0 -1
  28. package/data/concept/Foundations-Color.ttl +10 -0
  29. package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
  30. package/data/concept/Foundations-Grid--Layout.ttl +1 -2
  31. package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
  32. package/data/concept/Foundations-Spacing.ttl +0 -1
  33. package/data/concept/Foundations-Surfaces.ttl +0 -1
  34. package/data/concept/Foundations-Typography.ttl +1 -2
  35. package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
  36. package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
  37. package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
  38. package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
  39. package/data/concept/Intentional-friction.ttl +0 -1
  40. package/data/concept/Overflow.ttl +0 -1
  41. package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
  42. package/data/documentation/pattern/library_side_navigation.ttl +2 -2
  43. package/data/global/component/accordion.ttl +2 -2
  44. package/data/global/component/announcement.ttl +2 -1
  45. package/data/global/component/avatar.ttl +1 -1
  46. package/data/global/component/badge.ttl +2 -2
  47. package/data/global/component/breadcrumbs.ttl +3 -3
  48. package/data/global/component/button.ttl +3 -3
  49. package/data/global/component/button_link.ttl +1 -1
  50. package/data/global/component/card.ttl +3 -7
  51. package/data/global/component/chip.ttl +1 -0
  52. package/data/global/component/code_snippet.ttl +1 -1
  53. package/data/global/component/drag_and_drop_list.ttl +1 -1
  54. package/data/global/component/dropdown_button.ttl +2 -2
  55. package/data/global/component/file_upload_field.ttl +509 -60
  56. package/data/global/component/icon.ttl +1 -1
  57. package/data/global/component/icon_button.ttl +26 -4
  58. package/data/{apps → global}/component/key_value_pair.ttl +2 -2
  59. package/data/global/{subcomponent/markdown_input.ttl → component/markdown_editor_field.ttl} +3 -3
  60. package/data/global/component/mode_switcher.ttl +1 -1
  61. package/data/global/component/number_field.ttl +1 -1
  62. package/data/global/component/range_field.ttl +0 -80
  63. package/data/global/component/table.ttl +2 -2
  64. package/data/global/component/tile.ttl +1 -1
  65. package/data/global/component/tooltip.ttl +51 -91
  66. package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
  67. package/data/global/component/tooltip_wrapper.ttl +70 -14
  68. package/data/global/group/cards.ttl +1 -1
  69. package/data/{apps → global}/group/key_value_pairs.ttl +2 -2
  70. package/data/global/modifier/constructive.ttl +1 -1
  71. package/data/global/modifier/elevated.ttl +1 -1
  72. package/data/global/modifier_family/_emphasis.ttl +1 -2
  73. package/data/global/modifier_family/_other.ttl +1 -2
  74. package/data/global/modifier_family/surface.ttl +1 -1
  75. package/data/global/pattern/description_list.ttl +1 -1
  76. package/data/global/pattern/modal.ttl +1 -1
  77. package/data/global/pattern/timeline.ttl +1 -1
  78. package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -2
  79. package/data/global/subcomponent/chart_legend.ttl +1 -1
  80. package/data/global/subcomponent/chart_legend_item.ttl +1 -1
  81. package/data/global/subcomponent/file_upload_input.ttl +503 -50
  82. package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
  83. package/data/global/subcomponent/modal-footer.ttl +1 -1
  84. package/data/global/subcomponent/number_input.ttl +1 -1
  85. package/data/global/subcomponent/range_input.ttl +3 -84
  86. package/data/global/{component/markdown_field.ttl → subcomponent/text_editor_input.ttl} +3 -3
  87. package/data/global/variant/tooltip_dense.ttl +86 -5
  88. package/data/global_dataviews/component/filter_button.ttl +487 -0
  89. package/data/global_dataviews/component/query_bar.ttl +1639 -0
  90. package/data/global_dataviews/component/query_chip.ttl +605 -0
  91. package/data/global_dataviews/group/query_chips.ttl +565 -0
  92. package/data/global_dataviews/modifier/exclusion.ttl +8 -0
  93. package/data/global_dataviews/modifier/inclusion.ttl +8 -0
  94. package/data/global_dataviews/modifier/match.ttl +8 -0
  95. package/data/global_dataviews/modifier/presence.ttl +8 -0
  96. package/data/global_dataviews/modifier/range.ttl +8 -0
  97. package/data/global_dataviews/modifier_family/condition.ttl +9 -0
  98. package/data/global_dataviews/subcomponent/query_chip-entry.ttl +186 -0
  99. package/data/global_dataviews/subcomponent/query_chip-segment.ttl +241 -0
  100. package/data/global_dataviews/subcomponent/query_input.ttl +1287 -0
  101. package/data/global_dataviews.ttl +6 -0
  102. package/data/sites/component/store_card.ttl +1 -1
  103. package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
  104. package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
  105. package/definitions/ontology.ttl +8 -2
  106. package/package.json +6 -6
  107. package/skills/adoption-a1-styles/SKILL.md +11 -0
  108. package/skills/adoption-a2-components/SKILL.md +82 -2
  109. package/skills/anatomy-author/SKILL.md +278 -95
  110. package/skills/anatomy-author/clarification-guidelines.md +150 -0
  111. package/skills/anatomy-author/completeness-checklist.md +224 -0
  112. package/skills/implement-component/SKILL.md +2 -2
  113. package/skills/map-journeys/SKILL.md +395 -0
  114. package/skills/map-journeys/journey-graph.example.html +298 -0
  115. package/skills/model-domains/SKILL.md +502 -0
  116. package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
  117. package/data/global/modifier/editable.ttl +0 -8
  118. package/data/global/modifier/focused.ttl +0 -8
  119. package/data/global/modifier/highlighted.ttl +0 -8
  120. package/data/global/modifier/loading.ttl +0 -8
  121. package/data/global/modifier/muted.ttl +0 -8
  122. package/data/global/modifier/wireframe.ttl +0 -8
@@ -8,7 +8,7 @@ ds:global.component.icon a ds:Component;
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global src/lib/component/Icon/styles.css on .ds.icon\nnode:\n uri: global.component.icon\n styles:\n layout.type: inline-block\n layout.verticalAlign: middle\n # reads --icon-size, a component-local size the package declares as 1em at\n # :root, then --size-icon-default, which no symbol declares, then the\n # chain's own 1rem literal. The effective value is the 1em.\n size.width: 1em\n size.height: 1em";
9
9
  ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2431-9000&t=sOMJn3GdvE3iTgAI-1";
10
10
  ds:usage "## Usage\n\nIcons are intended to supplement information and streamline the user journey. They should never create ambiguity or force a user to guess what an element does. Where meaning is universal, these icons can function as standalone [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that guide users without the need for additional text.\n\n### When to use\n\n- To guide users toward primary actions where space is limited.\n- When a label alone is insufficient to convey meaning.\n- When the user needs to know the condition of a system or process without reading a full sentence.\n- When recognition is a primary objective towards the user through visual patterns rather than reading text.\n\n### When not to use\n\n- When the icon represents a complex or unique action that does not have a universally recognized metaphor\n - Incorrect: Using a custom \"Star-burst\" icon to represent \"Advanced AI Settings\" without a text label nearby.\n - Remediation: Always pair non-universal icons with a text label. If available space does not allow for a label, then a tooltip must be used.if available space does not allow for a label, then a tooltip must be used.\n- When icons are added to every single line of text or menu item, creating \"visual noise.\"\n - Incorrect: A long list of 50 settings where every single line has a generic \"Gear\" icon next to it.\n - Remediation: Remove the icons and use typography (bolding or headers) to create hierarchy, reserving icons only for high-priority actions.";
11
- ds:guidelines "### Accessibility and Size \n\n- **Touch Targets:** Even if the icon is small (e.g., 16px), the interactive hit area should be at least 44x44px to accommodate touch and mouse accuracy.\n- **Color Contrast:** Ensure icons used for information (status) meet a minimum contrast ratio of 3:1 against the background.\n\n\n\n### Concepts\n\n[Question mark vs information icon](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-GnfOU3MM-3/_rui-KPw8GwEbJ-)";
11
+ ds:guidelines "### Accessibility and Size \n\n- **Touch Targets:** Even if the icon is small (e.g., 16px), the interactive hit area should be at least 44x44px to accommodate touch and mouse accuracy.\n- **Color Contrast:** Ensure icons used for information (status) meet a minimum contrast ratio of 3:1 against the background.\n\n### Concepts\n\n[How to choose between question mark and information icon](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-GnfOU3MM-3/_rui-KPw8GwEbJ-)";
12
12
  ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.needsfulldocumentation;
14
14
  ds:hasProperty [
@@ -4,10 +4,32 @@
4
4
 
5
5
  ds:global.component.icon_button a ds:Component;
6
6
  ds:name "IconButton";
7
- ds:summary "When space is limited and the actions have recognizable icons, [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s may use an icon without text. Reserve this for very common actions that have easily recognizable icons, such as delete, edit, or close. Always pair an icon-only button with a [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) that states the action clearly. Add a delay to the [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) so it does not interrupt the user.";
7
+ ds:summary "An icon button is a square Button with one icon and no visible label. Use it for common actions with a recognizable icon, such as edit or delete in a table row, a settings panel trigger, or toolbar actions. Its baseline matches a labelled Button's, and it is always named and paired with a Tooltip.";
8
8
  ds:anatomyDsl "";
9
9
  ds:anatomyClassic "";
10
- ds:usage "";
11
- ds:guidelines "";
10
+ ds:usage "A Button with only an icon, for actions whose icon is widely recognized. It keeps Button’s hierarchy, states and density.\n\n### When to use\n\n- Common actions with a recognizable icon (edit, delete, copy, close) where space is short\n- Triggers of a menu or panel whose icon names the action (a gear, three vertical dots)\n- Rows of actions in toolbars and tables\n\n### When not to use\n\n- The icon alone is unclear: use a Button with a label\n- A menu needs a visible cue: use a DropdownButton\n- Navigation: use a link\n- The main action of a page: use a Button with a label";
11
+ ds:guidelines "### Tooltip\n\n- Always pair it with a Tooltip that states the action, composed around the button; the button stays the root.\n- Keep the Tooltip closed while a panel the button opened is open.\n\n### Content\n\n- One icon, no text. The Tooltip is a short verb and noun in sentence case.\n\n### Size and responsiveness\n\n- The box is the density cell both ways, and its baseline matches a labelled Button’s. The icon is centred.\n- On touch screens, prefer the comfortable density. A dense box is smaller than the Icon block’s hit area, an open point.\n\n### Hierarchy\n\n- Takes Importance and Anticipation. Most icon buttons are tertiary.\n\n### Localization\n\n- Translate the accessible name and the Tooltip.\n- Mirror directional icons in right-to-left layouts.\n\n### Animation\n\n- No colour transitions under `prefers-reduced-motion: reduce`, as for Button.\n\n### Accessibility and keyboard\n\n- Name it with an accessible label or a reference; the icon is hidden from assistive technology.\n- Focusable with Button’s focus ring; `Enter` or `Space` runs it; a panel trigger exposes whether the panel is expanded.";
12
12
  ds:tier ds:global;
13
- ds:documentationStage ds:tag.needscoredocumentation.
13
+ ds:documentationStage ds:tag.needscoredocumentation;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "icon";
17
+ ds:summary "The icon, the button's only visible content.";
18
+ ds:propertyType "choice";
19
+ ds:optional "false"
20
+ ], [
21
+ a ds:Property;
22
+ ds:name "label";
23
+ ds:summary "The accessible name, as text or a reference to an element.";
24
+ ds:propertyType "text";
25
+ ds:optional "false"
26
+ ], [
27
+ a ds:Property;
28
+ ds:name "anticipation";
29
+ ds:summary "Consumes the Anticipation family.";
30
+ ds:propertyType "choice";
31
+ ds:optional "true";
32
+ ds:constraints "Affects background and border"
33
+ ];
34
+ ds:hasModifierFamily ds:global.modifier_family.importance, ds:global.modifier_family.anticipation;
35
+ ds:inheritsFrom ds:global.component.button.
@@ -2,12 +2,12 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:apps.component.key_value_pair a ds:Component;
5
+ ds:global.component.key_value_pair a ds:Component;
6
6
  ds:name "KeyValuePair";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
9
  ds:anatomyClassic "";
10
10
  ds:usage "";
11
11
  ds:guidelines "";
12
- ds:tier ds:apps;
12
+ ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.designin-progress.
@@ -2,12 +2,12 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:global.subcomponent.markdown_input a ds:Subcomponent;
6
- ds:name "MarkdownInput";
5
+ ds:global.component.markdown_editor_field a ds:Component;
6
+ ds:name "MarkdownEditorField";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
9
  ds:anatomyClassic "";
10
10
  ds:usage "";
11
11
  ds:guidelines "";
12
12
  ds:tier ds:global;
13
- ds:documentationStage ds:tag.needstriage.
13
+ ds:documentationStage ds:tag.triagedbacklog.
@@ -4,7 +4,7 @@
4
4
 
5
5
  ds:global.component.mode_switcher a ds:Component;
6
6
  ds:name "ModeSwitcher";
7
- ds:summary "";
7
+ ds:summary "To consider: a mode switcher and split this in two/three types (ThemeSwitcher : canonical/ubuntu) / (ModeSwitcher : dark/light) / (Contrast : High/Normal) / (Motion : Normal/Reduced)\n\nReference chat: [https://chat.canonical.com/canonical/pl/g9edp9jnujfofgnms75e3fuago](https://chat.canonical.com/canonical/pl/g9edp9jnujfofgnms75e3fuago)";
8
8
  ds:anatomyDsl "";
9
9
  ds:anatomyClassic "";
10
10
  ds:usage "";
@@ -10,4 +10,4 @@ ds:global.component.number_field a ds:Component;
10
10
  ds:usage "";
11
11
  ds:guidelines "";
12
12
  ds:tier ds:global;
13
- ds:documentationStage ds:tag.needstriage.
13
+ ds:documentationStage ds:tag.triagedbacklog.
@@ -75,86 +75,6 @@ ds:global.component.range_field a ds:Component;
75
75
  anatomy:styleState "default";
76
76
  ds:rank 1;
77
77
  ds:consumesSymbol dt:spacing.gap.field.block
78
- ], [
79
- a ds:TokenBinding;
80
- ds:viaBlock ds:global.subcomponent.range_input;
81
- ds:node "$root/track";
82
- anatomy:styleKey "size.height";
83
- anatomy:styleState "default";
84
- ds:rank 1;
85
- ds:consumesSymbol dt:dimension.200
86
- ], [
87
- a ds:TokenBinding;
88
- ds:viaBlock ds:global.subcomponent.range_input;
89
- ds:node "$root/track/bar";
90
- anatomy:styleKey "size.height";
91
- anatomy:styleState "default";
92
- ds:rank 1;
93
- ds:consumesSymbol dt:dimension.100
94
- ], [
95
- a ds:TokenBinding;
96
- ds:viaBlock ds:global.subcomponent.range_input;
97
- ds:node "$root/track/bar";
98
- anatomy:styleKey "appearance.background";
99
- anatomy:styleState "default";
100
- ds:rank 1;
101
- ds:consumesSymbol dt:color.foreground.slider.track
102
- ], [
103
- a ds:TokenBinding;
104
- ds:viaBlock ds:global.subcomponent.range_input;
105
- ds:node "$root/track/bar";
106
- anatomy:styleKey "appearance.background";
107
- anatomy:styleState "disabled";
108
- ds:rank 1;
109
- ds:consumesSymbol dt:color.foreground.slider.track.disabled
110
- ], [
111
- a ds:TokenBinding;
112
- ds:viaBlock ds:global.subcomponent.range_input;
113
- ds:node "$root/track/bar";
114
- anatomy:styleKey "appearance.radius";
115
- anatomy:styleState "default";
116
- ds:rank 1;
117
- ds:consumesSymbol dt:dimension.radius.small
118
- ], [
119
- a ds:TokenBinding;
120
- ds:viaBlock ds:global.subcomponent.range_input;
121
- ds:node "$root/track/thumb";
122
- anatomy:styleKey "size.width";
123
- anatomy:styleState "default";
124
- ds:rank 1;
125
- ds:consumesSymbol dt:dimension.200
126
- ], [
127
- a ds:TokenBinding;
128
- ds:viaBlock ds:global.subcomponent.range_input;
129
- ds:node "$root/track/thumb";
130
- anatomy:styleKey "size.height";
131
- anatomy:styleState "default";
132
- ds:rank 1;
133
- ds:consumesSymbol dt:dimension.200
134
- ], [
135
- a ds:TokenBinding;
136
- ds:viaBlock ds:global.subcomponent.range_input;
137
- ds:node "$root/track/thumb";
138
- anatomy:styleKey "appearance.background";
139
- anatomy:styleState "default";
140
- ds:rank 1;
141
- ds:consumesSymbol dt:color.foreground.slider.progress
142
- ], [
143
- a ds:TokenBinding;
144
- ds:viaBlock ds:global.subcomponent.range_input;
145
- ds:node "$root/track/thumb";
146
- anatomy:styleKey "appearance.background";
147
- anatomy:styleState "disabled";
148
- ds:rank 1;
149
- ds:consumesSymbol dt:color.foreground.slider.progress.disabled
150
- ], [
151
- a ds:TokenBinding;
152
- ds:viaBlock ds:global.subcomponent.range_input;
153
- ds:node "$root/value readout";
154
- anatomy:styleKey "typography.color";
155
- anatomy:styleState "default";
156
- ds:rank 1;
157
- ds:consumesSymbol dt:color.text.muted
158
78
  ], [
159
79
  a ds:TokenBinding;
160
80
  ds:viaBlock ds:global.subcomponent.field-error;
@@ -7,8 +7,8 @@ ds:global.component.table a ds:Component;
7
7
  ds:summary "A table displays data in rows and columns. This structured format helps users review and compare large data sets efficiently. The table is a static component suited to presenting data without complex interactions. For advanced needs – pagination, selection, bulk actions, filtering, sorting, and grouping – use the [DataTable ](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) (Apps tier) instead. Sites tier products typically use this table. However, if a use case requires richer functionality, refer to the [DataTable ](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) documentation.";
8
8
  ds:anatomyDsl "";
9
9
  ds:anatomyClassic "Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4462-94135&t=mrOkyDfhQY9JZwMz-1\n\n";
10
- ds:usage "Use a table to display data where items share two or more characteristics and belong together as a group. Rows represent items, and columns represent their characteristics. Tables work best when all items share the same set of characteristics, allowing users to compare across rows.\n\n## When to use\n\n- Entities share multiple characteristics and group together under a common category\n- Cross-row comparison is meaningful to the user\n- The user needs to locate or compare specific data points within a known dataset\n\n### \n\n## When not to use\n\n- Datasets have different structures.\n - Incorrect: Forcing two distinct objects, such as “User Profiles” and “Invoices,” into a single table by using generic headers or leaving many cells empty.\n - Remediation: Use separate tables or a [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) to clearly distinguish between different data types and their unique schemas.\n- The user needs to browse or explore content without a specific task.\n - Incorrect: Using a table to display a \"News Feed\" where the goal is for the user to discover stories or read highlights at a leisurely pace.\n - Remediation: Consider using [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD)s for exploratory, media-heavy content or a simple [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) for smaller volumes of narrative data.\n- The use case involves complex interactions such as bulk selection, filtering, multi-column sorting, or pagination.\n - Incorrect: Using a basic, static table to display thousands of rows of data that require real-time manipulation and deep analysis.\n - Remediation: Use the [DataTable ](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) instead to provide advanced functionality like global search, column resizing, and bulk action processing.\n\n### \n\n## Columns\n\n### \n\nAlign columns to the grid where possible. If that is not feasible, size columns to fit their content. Consider the available space when deciding how many columns to include. Display only the information the user needs at that moment. Keep column headings short, typically one to two words, and ensure they describe the column content.\n\n## Cell content\n\nChips, icons, and links are permitted within table cells. Use linked text for navigation only, not as calls to action. Right-align numbers when users need to compare values across rows. Left-align numbers when comparison is not the intent. Do not apply semantic color to cell text. Use icons or status indicators to convey semantic meaning instead.\n\n## Sorting\n\nTables support sorting on a per-column basis. Designers decide which columns should be sortable. Do not enable sorting on every column. Apply sorting where the data has a meaningful order, such as status categories, dates, or alphabetically significant values. Columns with unordered data do not warrant sorting.\n\n## Pagination\n\nCombine a table with simple pagination when the number of rows would overwhelm the user. Pagination is particularly useful when content appears below the table. Without it, a large number of rows can push that content out of the viewport. Paginating the table reduces its vertical size and keeps the surrounding content visible.\n\n## Mobile\n\nOn mobile, consider converting a table into cards if doing so improves usability. Do not convert tables to cards if it reduces the ability to compare items.";
11
- ds:guidelines "";
10
+ ds:usage "Use a table to display data where items share two or more characteristics and belong together as a group. Rows represent items, and columns represent their characteristics. Tables work best when all items share the same set of characteristics, allowing users to compare across rows.\n\n## When to use\n\n- Entities share multiple characteristics and group together under a common category\n- Cross-row comparison is meaningful to the user\n- The user needs to locate or compare specific data points within a known dataset\n\n## When not to use\n\n- Datasets have different structures.\n - Incorrect: Forcing two distinct objects, such as “User Profiles” and “Invoices,” into a single table by using generic headers or leaving many cells empty.\n - Remediation: Use separate tables or a [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) to clearly distinguish between different data types and their unique schemas.\n- The user needs to browse or explore content without a specific task.\n - Incorrect: Using a table to display a \"News Feed\" where the goal is for the user to discover stories or read highlights at a leisurely pace.\n - Remediation: Consider using [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD)s for exploratory, media-heavy content or a simple [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) for smaller volumes of narrative data.\n- The use case involves complex interactions such as bulk selection, filtering, multi-column sorting, or pagination.\n - Incorrect: Using a basic, static table to display thousands of rows of data that require real-time manipulation and deep analysis.\n - Remediation: Use the [DataTable ](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) instead to provide advanced functionality like global search, column resizing, and bulk action processing.";
11
+ ds:guidelines "## Columns\n\nAlign columns to the grid where possible. If that is not feasible, size columns to fit their content. Consider the available space when deciding how many columns to include. Display only the information the user needs at that moment. Keep column headings short, typically one to two words, and ensure they describe the column content.\n\n## Cell content\n\nChips, icons, and links are permitted within table cells. Use linked text for navigation only, not as calls to action. Right-align numbers when users need to compare values across rows. Left-align numbers when comparison is not the intent. Do not apply semantic color to cell text. Use icons or status indicators to convey semantic meaning instead.\n\n## Sorting\n\nTables support sorting on a per-column basis. Designers decide which columns should be sortable. Do not enable sorting on every column. Apply sorting where the data has a meaningful order, such as status categories, dates, or alphabetically significant values. Columns with unordered data do not warrant sorting.\n\n## Pagination\n\nCombine a table with simple pagination when the number of rows would overwhelm the user. Pagination is particularly useful when content appears below the table. Without it, a large number of rows can push that content out of the viewport. Paginating the table reduces its vertical size and keeps the surrounding content visible.\n\n## Mobile\n\nOn mobile, consider converting a table into cards if doing so improves usability. Do not convert tables to cards if it reduces the ability to compare items.";
12
12
  ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.needscoredocumentation;
14
14
  ds:hasSubcomponent ds:global.subcomponent.table-row, ds:global.subcomponent.table-cell.
@@ -17,6 +17,7 @@ ds:global.component.tile a ds:Component;
17
17
  ds:propertyType "element";
18
18
  ds:optional "false"
19
19
  ];
20
+ ds:hasSubcomponent ds:global.subcomponent.tile-content, ds:global.subcomponent.tile-header;
20
21
  ds:changeLog [
21
22
  a ds:ChangeLogEntry;
22
23
  ds:timestamp "2026-04-17T00:00:00.000+02:00";
@@ -30,7 +31,6 @@ ds:global.component.tile a ds:Component;
30
31
  ds:timestamp "2026-04-24T00:00:00.000+02:00";
31
32
  ds:changeType "change"
32
33
  ];
33
- ds:hasSubcomponent ds:global.subcomponent.tile-content, ds:global.subcomponent.tile-header;
34
34
  ds:hasTokenBinding [
35
35
  a ds:TokenBinding;
36
36
  ds:viaBlock ds:global.component.tile;
@@ -4,11 +4,11 @@
4
4
 
5
5
  ds:global.component.tooltip a ds:Component;
6
6
  ds:name "Tooltip";
7
- ds:summary "A tooltip provides brief, contextual information, that appears on hover or focus. It is used to clarify an unfamiliar icon/control, explain truncated/abbreviated content, or to add context without interrupting user flow. Tooltips should be short, optional, and non-critical. If the information is vital or requires interaction, use a different pattern.";
8
- ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global src/lib/component/Tooltip/styles.css on .ds.tooltip\n# The chip itself. The engine wrapper the `withTooltip` HOC renders around the\n# TARGET (.ds.tooltip-area and its .target child) is not part of this tree.\n# The tooltip runs on the `contrasted` surface, so its colours invert against\n# the ambient theme; the surface channels are read on this element, never\n# through a :root intermediate.\nnode:\n uri: global.component.tooltip\n styles:\n # Stays inline-block: it is the positioning context for the arrow, whose\n # 50% centring must resolve against this box.\n layout.type: inline-block\n layout.position: fixed\n # MUST stay visible: the arrow sits just outside the box and any clipping\n # would remove it.\n layout.overflow: visible\n appearance.background: [surface.color.background, color.background]\n typography.color: [surface.color.text, color.text]\n # The border reuses the background colour, so the arrow built from it is\n # coloured correctly too.\n appearance.border.color: [surface.color.background, color.background]\n appearance.border.style: solid\n appearance.border.width: 0\n appearance.radius: 0\n # Figma asks for text-secondary (14px / 20px). The reference reads\n # --font-size-small and --line-height-small, which no symbol declares, so\n # what is left of each chain is its own literal.\n typography.size: 14px\n typography.lineHeight: 20px\n # The weight reads --font-weight-default with no literal fallback and no\n # symbol declares it, so the binding is dropped.\n typography.align: left\n typography.decoration: initial\n interaction.pointerEvents: auto\n size.max.width: 284px\n spacing.external.block.end: 0\n spacing.external.inline.end: 0\n spacing.internal.inline.start: dimension.200 # --tooltip-padding-horizontal, a surface inset\n spacing.internal.inline.end: dimension.200 # --tooltip-padding-horizontal, a surface inset\n spacing.internal.block.start: dimension.100 # --tooltip-padding-vertical\n spacing.internal.block.end: dimension.100 # --tooltip-padding-vertical\n # Closed by default; `aria-hidden=\"false\"` opens it. That is a display\n # difference, not one of the five interaction states, so it carries no\n # @state marker here.\n appearance.opacity: 0\n appearance.visibility: hidden\n motion.property: \"opacity, visibility\"\n # --tooltip-motion-duration is a component-local 0.1s literal.\n motion.duration: 0.1s\n motion.easing: ease-in-out\n edges:\n - node:\n role: content row\n styles:\n layout.type: flex\n layout.align: flex-start\n spacing.gap: dimension.100 # --tooltip-gap, between a leading icon and the text\n edges:\n - node:\n role: icon\n styles:\n layout.type: inline-flex\n layout.align: center\n layout.justify: center\n layout.flex.grow: 0\n layout.flex.shrink: 0\n layout.flex.basis: auto\n size.inline: dimension.200\n # The box is one text line tall; the reference reads\n # --tooltip-line-height, whose chain ends in its own literal.\n size.block: 20px\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: text\n styles:\n # Wraps at max-width while honouring explicit newlines.\n typography.whiteSpace: pre-wrap\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n # drawn as ::before\n role: arrow\n styles:\n layout.position: absolute\n # A CSS border triangle drawn on the pointing side, so it has no box\n # of its own. Which side carries the depth follows the placement class\n # (.top/.bottom/.left/.right); the edge and centring offsets are\n # calc()s over the arrow geometry, so none of them is bound.\n size.width: 0\n size.height: 0\n # 8px deep (dimension-100); the 14px base across the edge is two\n # transparent half-width side borders computed from dimension.175,\n # which no single roster key carries.\n appearance.border.top.width: dimension.100\n appearance.border.style: solid\n appearance.border.color: [surface.color.background, color.background]\n relation:\n # The component draws the arrow; no caller fills it, so it carries no\n # slot name.\n cardinality: \"1\"";
9
- ds:anatomyClassic "\n\n**Standard**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4226-3390&t=oewNjqDyVoQqTJZp-1**\n\n";
10
- ds:usage "[Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) \n\n## When to use\n\n- When a default tooltip is required for controls or icons\n- When an unfamiliar UI element, label, or action requires clarification\n- When content can be expressed as a single-line explanation or short phrase\n- When sufficient space is available for comfortable reading near the trigger\n- When supplementary information does not need to persist\n\n\n\n## When not to use\n\n- When the layout is dense and the tooltip may overlap important UI\n - Incorrect: A standard tooltip is used inside a compact data table where it obscures adjacent values\n - Remediation: Use a [Dense tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-tES05lAnIw) to reduce visual footprint\n- When content consists of abbreviations or truncated values\n - Incorrect: A standard tooltip is used to expand shortened labels in a toolbar\n - Remediation: Use a [Dense tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-tES05lAnIw) designed for compact label expansion\n- When content is structured or contains multiple elements\n - Incorrect: A tooltip contains a table, multiple text blocks, and icons\n - Remediation: Use [Wrapper tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-QhcH6cvnjz) to support structured content\n- When used for data visualisation\n - Incorrect: A standard tooltip is used to display chart data values\n - Remediation: Use [Data tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Z6bUmHSTsj) for label–value pairs and data inspection\n- When content is interactive or requires persistence\n - Incorrect: A tooltip contains clickable actions or inputs\n - Remediation: Use [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF) or another persistent surface\n\n\n\n### Variant: [Dense tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-tES05lAnIw) \n\nWhen to use\n\n- When space is limited, such as in tables, toolbars, or dashboards\n- When clarifying truncated labels, abbreviations, acronyms, or status indicators. \n- When tooltips appear frequently and should not visually dominate the interface\n\nWhen not to use\n\n- When content requires multiple lines or comfortable reading space\n - Incorrect: A dense tooltip is used for a multi-line explanatory message\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) for improved readability\n\nWhen content is descriptive or longer than a short phrase\n\n - Incorrect: A dense tooltip contains multiple lines of explanatory text\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) \n\nWhen content is complex or structured\n\n - Incorrect: A dense tooltip includes multiple elements such as icons and key-value pairs\n - Remediation: Use [Wrapper tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-QhcH6cvnjz) \n\n\n\n**In essence:**\n\nWhen in doubt, start with Standard. Move to Dense for space constraints; Wrapper for structured content and complex hierarchies; Data for data visualization. \n\n";
11
- ds:guidelines "### **Important note on implementation:**\n\nAnimation values below are intended for [Framer Motion](https://motion.dev/), now just “Motion”.\n\n### **For all variants**\n\n- Show with a 400 ms delay after hover or focus\n- Hide with a 400 ms delay after the pointer leaves\n- Cancel display if the pointer exits before the show delay completes\n- If the pointer moves directly from one tooltip trigger to another, show the new tooltip immediately and skip the previous tooltip’s exit animation\n\n### **Transition**\n\n- **Type**: spring\n- **Duration**: 0.4 s\n- **Bounce**: 0.2\n- **Delay**: 0 s";
7
+ ds:summary "A tooltip provides brief, contextual information, that appears on hover or focus. It is used to clarify an unfamiliar icon/control, explain truncated/abbreviated content, or to add context without interrupting user flow. Tooltips should be short, optional, and non-critical. If the information is vital or requires interaction, use a different pattern.\n\nRelated to [TooltipWrapper](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) and [TooltipData](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_).";
8
+ ds:anatomyDsl "---\n# One tree serves both types: Standard has text, an optional icon and an\n# optional arrow; Dense has compact text only. Where they differ is noted at the\n# property. An inverted tooltip is made by switching the variable mode of the\n# instance, so the colours are bound directly and not through surface channels.\nnode:\n uri: global.component.tooltip\n styles:\n # The arrow is positioned against this box, so it stays the positioning\n # context.\n layout.type: inline-block\n layout.position: fixed\n # Stays visible so the arrow, which sits outside the box, is not clipped.\n layout.overflow: visible\n appearance.background: color.background.container\n typography.color: color.text\n appearance.border.color: color.border.muted\n appearance.border.style: solid\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.radius: dimension.radius.small\n # Standard uses text-secondary and Dense uses text-tertiary; the tree\n # carries only the Standard value.\n typography.font: typography.text.secondary\n typography.align: left\n typography.decoration: initial\n interaction.pointerEvents: auto\n size.max.width: 284px\n spacing.external.block.end: 0\n spacing.external.inline.end: 0\n # Standard padding. Dense uses dimension.100 inline and dimension.050 block,\n # which the tree cannot carry per type.\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n spacing.internal.block.start: dimension.100\n spacing.internal.block.end: dimension.100\n # Closed by default. Opening is a display change, not an interaction state,\n # so no @state marker applies.\n appearance.opacity: 0\n appearance.visibility: hidden\n motion.property: \"opacity, visibility\"\n # No motion symbol is declared, so the duration is written as a literal.\n motion.duration: 0.1s\n motion.easing: ease-in-out\n edges:\n - node:\n role: content row\n styles:\n layout.type: flex\n layout.align: flex-start\n spacing.gap: dimension.100\n edges:\n - node:\n role: icon\n styles:\n layout.type: inline-flex\n layout.flex.grow: 0\n layout.flex.shrink: 0\n layout.flex.basis: auto\n size.inline: dimension.200\n spacing.internal.block.start: dimension.025\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: text\n styles:\n typography.whiteSpace: pre-wrap\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: arrow\n styles:\n layout.position: absolute\n # Which side it points from follows the Arrow variant, so its offsets\n # are not bound, and the DSL has no triangle shape.\n size.width: dimension.175\n size.height: dimension.100\n appearance.background: color.background.container\n appearance.border.color: color.border.muted\n appearance.border.style: solid\n appearance.border.width: dimension.stroke.thickness.medium\n relation:\n # The component draws the arrow; no caller fills it, so it carries no\n # slot name. Dense draws none.\n cardinality: \"0..1\"";
9
+ ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=9415-1616&t=pA5l7Omuxa3ATwVS-1\n\n1. **Container**\n\nHolds the tooltip content and sets it apart from the page.\n\n1. **Text**\n\nShort supplementary copy that explains or clarifies the trigger.\n\n1. **Icon (optional)**\n\nAdds a visual cue to the text. Do not use when the trigger is itself an icon.\n\n1. **Arrow**\n\nPoints from the tooltip to its trigger. Not used in [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) variant.\n\n## Styling\n\n**Layout and spacing**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=9416-2001&t=pA5l7Omuxa3ATwVS-1\n\n**Colors**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=9416-2060&t=pA5l7Omuxa3ATwVS-1\n\n**Typography**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=9416-2079&t=pA5l7Omuxa3ATwVS-1\n\n**Overflow**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=9416-2085&t=pA5l7Omuxa3ATwVS-1";
10
+ ds:usage "## When to use\n\n- When a default tooltip is required for controls or icons\n- When an unfamiliar UI element, label, or action requires clarification\n- When content can be expressed as a single-line explanation or short phrase\n- When sufficient space is available for comfortable reading near the trigger\n- When supplementary information does not need to persist\n\n## When not to use\n\n- When the layout is dense and the tooltip may overlap important UI\n - Incorrect: A standard tooltip is used inside a compact data table where it obscures adjacent values\n - Remediation: Use a [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) to reduce visual footprint\n- When content consists of abbreviations or truncated values\n - Incorrect: A standard tooltip is used to expand shortened labels in a toolbar\n - Remediation: Use a [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) designed for compact label expansion\n- When content is structured or contains multiple elements\n - Incorrect: A tooltip contains a table, multiple text blocks, and icons\n - Remediation: Use [TooltipWrapper](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) to support structured content\n- When used for data visualisation\n - Incorrect: A standard tooltip is used to display chart data values\n - Remediation: Use [TooltipData](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_) for label–value pairs and data inspection\n- When content is interactive or requires persistence\n - Incorrect: A tooltip contains clickable actions or inputs\n - Remediation: Use [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF) or another persistent surface\n- When the element is already clearly labelled or self-explanatory.\n\n**In essence:**\n\nWhen in doubt, start with standard [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW). Move to its [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) variant for space constraints; [TooltipWrapper](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) for structured content and complex hierarchies; [TooltipData](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_) for data visualization.";
11
+ ds:guidelines "**Important note on implementation:**\n\nAnimation values below are intended for [Framer Motion](https://motion.dev/), now just “Motion”.\n\n### **For all variants**\n\n- Show with a 400 ms delay after hover or focus\n- Hide with a 400 ms delay after the pointer leaves\n- Cancel display if the pointer exits before the show delay completes\n- If the pointer moves directly from one tooltip trigger to another, show the new tooltip immediately and skip the previous tooltip’s exit animation\n\n### **Transition**\n\n- **Type**: spring\n- **Duration**: 0.4 s\n- **Bounce**: 0.2\n- **Delay**: 0 s\n\n### Reduced motion\n\n- Fade in and out with no scale or movement, keeping the same delays.\n- The Data tooltip snaps to the pointer instead of easing.\n\n### CSS fallback\n\n- Opacity 0 to 1 and scale 0.96 to 1 over 400 ms, cubic-bezier(0.22, 1, 0.36, 1), transform origin at the arrow.\n\n### Interactions\n\n- Opens on hover and on keyboard focus, never on click.\n- Closes when the pointer or focus leaves, on Escape, and when another tooltip opens.\n- Only one tooltip is open at a time.\n- The pointer can move onto the tooltip without it closing.\n- Default position is centred on the trigger with an 8 px offset.\n\n### Positioning and responsive\n\n- Positioned relative to its trigger. Flips to the opposite side when there isn't enough room and never overflows the viewport.\n- Collision padding is 24 px for Standard and Wrapper, and 16 px for Dense.\n- Tooltips don't appear on touch devices, so essential information must be available another way.\n\n### Overflow\n\n- Text wraps at the max width (284 px).\n\n### Typography\n\n- Standard: typography-text-secondary-$root (14/20).\n- Dense: typography-text-tertiary-$root (12/16).\n- Helper headings and Strong key-value pairs: typography-text-secondary-$bold. Tooltip table headers: typography-text-tertiary-$bold.\n- Values use tabular figures in code.\n\n### Keyboard support\n\n- Tab or Shift+Tab to a trigger opens its tooltip.\n- Escape closes it without moving focus.\n- No other keys are handled.\n\n### Focus\n\n- Tooltips aren't focusable and aren't part of the tab order. They contain no interactive content.\n- When the trigger receives keyboard focus, the tooltip opens after the same delay as hover.\n- Disabled triggers don't receive focus, so a disabled control that needs an explanation should be wrapped in a focusable element.\n\n### ARIA\n\n- The tooltip element has role=\"tooltip\".\n- When it adds supplementary information, the trigger references it with aria-describedby.\n- When it's the only label (icon-only triggers), the trigger uses aria-labelledby or an aria-label with the same text.\n- Decorative icons inside the tooltip are hidden from assistive technology.\n\n### References\n\n- [WAI-ARIA tooltip pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/): role=\"tooltip\", aria-describedby, open on focus, Escape to dismiss.\n- [WCAG 1.4.13](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html): dismissable, hoverable and persistent content on hover or focus.\n- [Carbon tooltip](https://carbondesignsystem.com/components/tooltip/usage/): 8/16 padding, 288 px max width, caret and offset. Closest sizing reference.\n- [Material 3](https://m3.material.io/components/tooltips/guidelines): plain vs rich tooltips, inverted surface by default, no caret.\n- [Grafana data tooltips](https://grafana.com/docs/grafana/latest/panels-visualizations/configure-tooltips/): cursor-follow behaviour and compact 24 px rows for series.\n\n";
12
12
  ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.needsfulldocumentation;
14
14
  ds:hasProperty [
@@ -55,7 +55,7 @@ ds:global.component.tooltip a ds:Component;
55
55
  a ds:Property;
56
56
  ds:name "Max width";
57
57
  ds:summary "Maximum width of tooltip container";
58
- ds:optional "false";
58
+ ds:optional "true";
59
59
  ds:propertyType "number";
60
60
  ds:constraints "px";
61
61
  ds:defaultValue "284"
@@ -99,7 +99,7 @@ ds:global.component.tooltip a ds:Component;
99
99
  a ds:Property;
100
100
  ds:name "Max width";
101
101
  ds:summary "Optional width override for wrapper tooltip";
102
- ds:optional "false";
102
+ ds:optional "true";
103
103
  ds:propertyType "number";
104
104
  ds:constraints "px";
105
105
  ds:defaultValue "284"
@@ -143,70 +143,6 @@ ds:global.component.tooltip a ds:Component;
143
143
  ds:propertyType "choice";
144
144
  ds:constraints "Vertical";
145
145
  ds:defaultValue "Horizontal"
146
- ], [
147
- a ds:Property;
148
- ds:name "***Data tooltip***";
149
- ds:optional "false"
150
- ], [
151
- a ds:Property;
152
- ds:name "Show header";
153
- ds:summary "Shows legend header";
154
- ds:optional "true";
155
- ds:propertyType "boolean";
156
- ds:constraints "No";
157
- ds:defaultValue "Yes"
158
- ], [
159
- a ds:Property;
160
- ds:name "Indicator";
161
- ds:summary "Shows colour marker matching chart encoding";
162
- ds:optional "true";
163
- ds:propertyType "boolean";
164
- ds:constraints "No";
165
- ds:defaultValue "Yes"
166
- ], [
167
- a ds:Property;
168
- ds:name "Show cursor";
169
- ds:summary "Tooltip follows cursor instead of anchoring to trigger";
170
- ds:optional "false";
171
- ds:propertyType "boolean";
172
- ds:constraints "No";
173
- ds:defaultValue "Yes"
174
- ], [
175
- a ds:Property;
176
- ds:name "*Cursor animation* *(framer)*";
177
- ds:optional "false"
178
- ], [
179
- a ds:Property;
180
- ds:name "cursorFollow.position";
181
- ds:summary "Cursor-follow placement direction";
182
- ds:optional "false";
183
- ds:propertyType "choice";
184
- ds:constraints "Right";
185
- ds:defaultValue "Right"
186
- ], [
187
- a ds:Property;
188
- ds:name "cursorFollow.offsetX";
189
- ds:summary "Horizontal offset from cursor";
190
- ds:optional "false";
191
- ds:propertyType "number";
192
- ds:constraints "px";
193
- ds:defaultValue "16"
194
- ], [
195
- a ds:Property;
196
- ds:name "cursorFollow.offsetY";
197
- ds:summary "Vertical offset from cursor";
198
- ds:optional "false";
199
- ds:propertyType "number";
200
- ds:constraints "px";
201
- ds:defaultValue "8"
202
- ], [
203
- a ds:Property;
204
- ds:name "Motion feel";
205
- ds:summary "High-level motion tuning preset";
206
- ds:optional "true";
207
- ds:propertyType "choice";
208
- ds:constraints "No-bounce";
209
- ds:defaultValue "Snappy"
210
146
  ];
211
147
  ds:changeLog [
212
148
  a ds:ChangeLogEntry;
@@ -217,8 +153,8 @@ ds:global.component.tooltip a ds:Component;
217
153
  ds:timestamp "2026-05-12T00:00:00.000+02:00";
218
154
  ds:changeType "change"
219
155
  ];
156
+ ds:specializedBy ds:global.component.tooltip_data;
220
157
  ds:hasVariant ds:global.variant.tooltip_dense;
221
- ds:specializedBy ds:global.component.data_tooltip;
222
158
  ds:hasTokenBinding [
223
159
  a ds:TokenBinding;
224
160
  ds:viaBlock ds:global.component.tooltip;
@@ -226,47 +162,47 @@ ds:global.component.tooltip a ds:Component;
226
162
  anatomy:styleKey "appearance.background";
227
163
  anatomy:styleState "default";
228
164
  ds:rank 1;
229
- ds:consumesSymbol dt:surface.color.background
165
+ ds:consumesSymbol dt:color.background.container
230
166
  ], [
231
167
  a ds:TokenBinding;
232
168
  ds:viaBlock ds:global.component.tooltip;
233
169
  ds:node "$root";
234
- anatomy:styleKey "appearance.background";
170
+ anatomy:styleKey "typography.color";
235
171
  anatomy:styleState "default";
236
- ds:rank 2;
237
- ds:consumesSymbol dt:color.background
172
+ ds:rank 1;
173
+ ds:consumesSymbol dt:color.text
238
174
  ], [
239
175
  a ds:TokenBinding;
240
176
  ds:viaBlock ds:global.component.tooltip;
241
177
  ds:node "$root";
242
- anatomy:styleKey "typography.color";
178
+ anatomy:styleKey "appearance.border.color";
243
179
  anatomy:styleState "default";
244
180
  ds:rank 1;
245
- ds:consumesSymbol dt:surface.color.text
181
+ ds:consumesSymbol dt:color.border.muted
246
182
  ], [
247
183
  a ds:TokenBinding;
248
184
  ds:viaBlock ds:global.component.tooltip;
249
185
  ds:node "$root";
250
- anatomy:styleKey "typography.color";
186
+ anatomy:styleKey "appearance.border.width";
251
187
  anatomy:styleState "default";
252
- ds:rank 2;
253
- ds:consumesSymbol dt:color.text
188
+ ds:rank 1;
189
+ ds:consumesSymbol dt:dimension.stroke.thickness.medium
254
190
  ], [
255
191
  a ds:TokenBinding;
256
192
  ds:viaBlock ds:global.component.tooltip;
257
193
  ds:node "$root";
258
- anatomy:styleKey "appearance.border.color";
194
+ anatomy:styleKey "appearance.radius";
259
195
  anatomy:styleState "default";
260
196
  ds:rank 1;
261
- ds:consumesSymbol dt:surface.color.background
197
+ ds:consumesSymbol dt:dimension.radius.small
262
198
  ], [
263
199
  a ds:TokenBinding;
264
200
  ds:viaBlock ds:global.component.tooltip;
265
201
  ds:node "$root";
266
- anatomy:styleKey "appearance.border.color";
202
+ anatomy:styleKey "typography.font";
267
203
  anatomy:styleState "default";
268
- ds:rank 2;
269
- ds:consumesSymbol dt:color.background
204
+ ds:rank 1;
205
+ ds:consumesSymbol dt:typography.text.secondary
270
206
  ], [
271
207
  a ds:TokenBinding;
272
208
  ds:viaBlock ds:global.component.tooltip;
@@ -315,11 +251,27 @@ ds:global.component.tooltip a ds:Component;
315
251
  anatomy:styleState "default";
316
252
  ds:rank 1;
317
253
  ds:consumesSymbol dt:dimension.200
254
+ ], [
255
+ a ds:TokenBinding;
256
+ ds:viaBlock ds:global.component.tooltip;
257
+ ds:node "$root/content row/icon";
258
+ anatomy:styleKey "spacing.internal.block.start";
259
+ anatomy:styleState "default";
260
+ ds:rank 1;
261
+ ds:consumesSymbol dt:dimension.025
262
+ ], [
263
+ a ds:TokenBinding;
264
+ ds:viaBlock ds:global.component.tooltip;
265
+ ds:node "$root/arrow";
266
+ anatomy:styleKey "size.width";
267
+ anatomy:styleState "default";
268
+ ds:rank 1;
269
+ ds:consumesSymbol dt:dimension.175
318
270
  ], [
319
271
  a ds:TokenBinding;
320
272
  ds:viaBlock ds:global.component.tooltip;
321
273
  ds:node "$root/arrow";
322
- anatomy:styleKey "appearance.border.top.width";
274
+ anatomy:styleKey "size.height";
323
275
  anatomy:styleState "default";
324
276
  ds:rank 1;
325
277
  ds:consumesSymbol dt:dimension.100
@@ -327,16 +279,24 @@ ds:global.component.tooltip a ds:Component;
327
279
  a ds:TokenBinding;
328
280
  ds:viaBlock ds:global.component.tooltip;
329
281
  ds:node "$root/arrow";
330
- anatomy:styleKey "appearance.border.color";
282
+ anatomy:styleKey "appearance.background";
331
283
  anatomy:styleState "default";
332
284
  ds:rank 1;
333
- ds:consumesSymbol dt:surface.color.background
285
+ ds:consumesSymbol dt:color.background.container
334
286
  ], [
335
287
  a ds:TokenBinding;
336
288
  ds:viaBlock ds:global.component.tooltip;
337
289
  ds:node "$root/arrow";
338
290
  anatomy:styleKey "appearance.border.color";
339
291
  anatomy:styleState "default";
340
- ds:rank 2;
341
- ds:consumesSymbol dt:color.background
292
+ ds:rank 1;
293
+ ds:consumesSymbol dt:color.border.muted
294
+ ], [
295
+ a ds:TokenBinding;
296
+ ds:viaBlock ds:global.component.tooltip;
297
+ ds:node "$root/arrow";
298
+ anatomy:styleKey "appearance.border.width";
299
+ anatomy:styleState "default";
300
+ ds:rank 1;
301
+ ds:consumesSymbol dt:dimension.stroke.thickness.medium
342
302
  ].