@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.
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +3 -73
- package/data/apps/pattern/page_header.ttl +50 -5
- package/data/apps/subcomponent/data_table-action_bar.ttl +2 -2
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +2 -2
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
- package/data/apps/subcomponent/data_views-filters.ttl +13 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +13 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +13 -0
- package/data/apps/subcomponent/side_panel-footer.ttl +1 -1
- package/data/apps_launchpad/component/modal.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +4 -4
- package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -2
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +0 -1
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +1 -2
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +0 -1
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +0 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +2 -2
- package/data/global/component/accordion.ttl +2 -2
- package/data/global/component/announcement.ttl +2 -1
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +2 -2
- package/data/global/component/breadcrumbs.ttl +3 -3
- package/data/global/component/button.ttl +3 -3
- package/data/global/component/button_link.ttl +1 -1
- package/data/global/component/card.ttl +3 -7
- package/data/global/component/chip.ttl +1 -0
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +1 -1
- package/data/global/component/dropdown_button.ttl +2 -2
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/icon.ttl +1 -1
- package/data/global/component/icon_button.ttl +26 -4
- package/data/{apps → global}/component/key_value_pair.ttl +2 -2
- package/data/global/{subcomponent/markdown_input.ttl → component/markdown_editor_field.ttl} +3 -3
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/number_field.ttl +1 -1
- package/data/global/component/range_field.ttl +0 -80
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tile.ttl +1 -1
- package/data/global/component/tooltip.ttl +51 -91
- package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
- package/data/global/component/tooltip_wrapper.ttl +70 -14
- package/data/global/group/cards.ttl +1 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +2 -2
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -1
- package/data/global/pattern/modal.ttl +1 -1
- package/data/global/pattern/timeline.ttl +1 -1
- package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -2
- package/data/global/subcomponent/chart_legend.ttl +1 -1
- package/data/global/subcomponent/chart_legend_item.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
- package/data/global/subcomponent/modal-footer.ttl +1 -1
- package/data/global/subcomponent/number_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +3 -84
- package/data/global/{component/markdown_field.ttl → subcomponent/text_editor_input.ttl} +3 -3
- package/data/global/variant/tooltip_dense.ttl +86 -5
- package/data/global_dataviews/component/filter_button.ttl +487 -0
- package/data/global_dataviews/component/query_bar.ttl +1639 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +565 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +186 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +241 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1287 -0
- package/data/global_dataviews.ttl +6 -0
- package/data/sites/component/store_card.ttl +1 -1
- package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +11 -0
- package/skills/adoption-a2-components/SKILL.md +82 -2
- package/skills/anatomy-author/SKILL.md +278 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/skills/map-journeys/SKILL.md +395 -0
- package/skills/map-journeys/journey-graph.example.html +298 -0
- package/skills/model-domains/SKILL.md +502 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/modifier/editable.ttl +0 -8
- package/data/global/modifier/focused.ttl +0 -8
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/loading.ttl +0 -8
- package/data/global/modifier/muted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -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:global.subcomponent.markdown_editor_input a ds:Subcomponent;
|
|
6
|
+
ds:name "MarkdownEditorInput";
|
|
7
|
+
ds:summary "";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:global;
|
|
13
|
+
ds:documentationStage ds:tag.triagedbacklog.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
ds:global.subcomponent.modal-footer a ds:Subcomponent;
|
|
6
6
|
ds:name "Modal.Footer";
|
|
7
7
|
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/pattern/Modal/common/Footer/styles.css on .ds.modal-footer and its\n# ::before rule.\nnode:\n uri: global.subcomponent.modal-footer\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.justify: flex-
|
|
8
|
+
ds:anatomyDsl "---\n\n# Authored 2026-09-13 from @canonical/react-ds-global\n\n# src/lib/pattern/Modal/common/Footer/styles.css on .ds.modal-footer and its\n\n# ::before rule.\n\nnode:\n\n uri: global.subcomponent.modal-footer\n\n styles:\n\n layout.type: flex\n\n layout.direction: row\n\n layout.align: center\n\n layout.justify: flex-start\n\n # Never shrink: only the content pane gives way.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.flex.basis: auto\n\n # Positions the inset rule below.\n\n layout.position: relative\n\n # The inline padding --modal-padding-inline is shared with the header and\n\n # the content, so the three sections align.\n\n spacing.gap: dimension.100 # --modal-footer-gap, the inline gap between actions\n\n spacing.internal.block.start: dimension.200 # --modal-footer-padding-block, a surface inset\n\n spacing.internal.block.end: dimension.200 # --modal-footer-padding-block, a surface inset\n\n spacing.internal.inline.start: dimension.300 # --modal-padding-inline, a surface inset\n\n spacing.internal.inline.end: dimension.300 # --modal-padding-inline, a surface inset\n\n edges:\n\n - node:\n\n uri: global.component.button\n\n relation:\n\n cardinality: \"0..*\"\n\n slotName: default\n\n - node:\n\n role: divider rule\n\n styles:\n\n layout.position: absolute\n\n # Inset to the footer's own inline padding so it aligns with the\n\n # actions and the content. inset-block-start is a raw 0, which the\n\n # block-axis offset keys take a token only for.\n\n layout.offset.inline.start: dimension.300\n\n size.block: dimension.stroke.thickness.medium\n\n appearance.background: color.border.muted\n\n # The second of the two rules bounding the content. Drawn as ::before\n\n # rather than a border so it can be inset to the footer's inline\n\n # padding and align with the actions and the content.\n\n relation:\n\n cardinality: \"1\"\n\n";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
@@ -5,90 +5,9 @@
|
|
|
5
5
|
ds:global.subcomponent.range_input a ds:Subcomponent;
|
|
6
6
|
ds:name "RangeInput";
|
|
7
7
|
ds:summary "The slider part a host field places in context: a track the user drags to set a value within bounds, paired with a live readout of the current value. Consumed by controls such as RangeField; not used on its own.";
|
|
8
|
-
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/RangeInput/styles.css on .ds.range (with its\n# ::-webkit-slider-runnable-track / ::-moz-range-track and\n# ::-webkit-slider-thumb / ::-moz-range-thumb) and on .ds.range-output. The\n# component renders a FRAGMENT — the slider and its live <output> readout are\n# siblings, with no wrapper element between them — so the root of this anatomy\n# is the subcomponent itself and carries no styles: `@implements` sits on the\n# component, and the .ds.range declarations belong to the slider child below.\nnode:\n uri: global.subcomponent.range_input\n edges:\n - node:\n role: track\n styles:\n appearance.native: none\n size.width: 100%\n # The element box is as tall as the THUMB, so neither the thumb nor its\n # focus ring is ever clipped in a flex row; the visible bar is painted\n # by the track pseudo-elements and centred within this box.\n size.height: dimension.200\n appearance.background: transparent\n appearance.border.style: none\n appearance.outline.style: none\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n edges:\n - node:\n role: bar\n styles:\n # The vendor track pseudo-element keeps a user-agent border even\n # after `appearance: none`, so the flat bar is painted here, 8px\n # tall, in both the WebKit and the Firefox spelling.\n size.height: dimension.100\n appearance.background: color.foreground.slider.track\n appearance.background@disabled: color.foreground.slider.track.disabled\n appearance.border.style: none\n appearance.radius: dimension.radius.small\n relation:\n cardinality: \"1\"\n - node:\n role: thumb\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.radius: 50%\n appearance.background: color.foreground.slider.progress\n appearance.background@disabled: color.foreground.slider.progress.disabled\n appearance.border.style: none\n interaction.cursor: pointer\n # margin-top re-centres the 16px thumb on the 8px bar as a calc()\n # over the two dimension tokens, and the focus ring is a\n # box-shadow at color.focusRing: neither has a roster key.\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: value readout\n styles:\n layout.type: block\n typography.align: center\n typography.color: color.text.muted\n # Font-size, line-height and the baseline nudges come from the `.p`\n # class on the <output>, not from this rule.\n relation:\n cardinality: \"1\"";
|
|
8
|
+
ds:anatomyDsl "---\n\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n\n# src/lib/subcomponent/RangeInput/styles.css on .ds.range (with its\n\n# ::-webkit-slider-runnable-track / ::-moz-range-track and\n\n# ::-webkit-slider-thumb / ::-moz-range-thumb) and on .ds.range-output. The\n\n# component renders a FRAGMENT — the slider and its live <output> readout are\n\n# siblings, with no wrapper element between them — so the root of this anatomy\n\n# is the subcomponent itself and carries no styles: `@implements` sits on the\n\n# component, and the .ds.range declarations belong to the slider child below.\n\n```\nnode:\n uri: global.subcomponent.range_input\n edges:\n - node:\n role: track\n styles:\n appearance.native: none\n size.width: 100%\n # The element box is as tall as the THUMB, so neither the thumb nor its\n # focus ring is ever clipped in a flex row; the visible bar is painted\n # by the track pseudo-elements and centred within this box.\n size.height: dimension.200\n appearance.background: transparent\n appearance.border.style: none\n appearance.outline.style: none\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n edges:\n - node:\n role: bar\n styles:\n # The vendor track pseudo-element keeps a user-agent border even\n # after `appearance: none`, so the flat bar is painted here, 8px\n # tall, in both the WebKit and the Firefox spelling.\n size.height: dimension.100\n appearance.background: color.foreground.slider.track\n appearance.background@disabled: color.foreground.slider.track.disabled\n appearance.border.style: none\n appearance.radius: dimension.radius.small\n relation:\n cardinality: \"1\"\n - node:\n role: thumb\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.radius: 50%\n appearance.background: color.foreground.slider.progress\n appearance.background@disabled: color.foreground.slider.progress.disabled\n appearance.border.style: none\n interaction.cursor: pointer\n # margin-top re-centres the 16px thumb on the 8px bar as a calc()\n # over the two dimension tokens, and the focus ring is a\n # box-shadow at color.focusRing: neither has a roster key.\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: value readout\n styles:\n layout.type: block\n typography.align: center\n typography.color: color.text.muted\n # Font-size, line-height and the baseline nudges come from the `.p`\n # class on the <output>, not from this rule.\n relation:\n cardinality: \"1\"\n```\n\n";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "The bounded-quantity entry part a host places in context when a value is selected along a continuous span.\n\n\n\n### When to use\n\n- A host collects a numeric value between a known minimum and maximum.\n\n- Approximate, relative selection along a scale matters more than an exact figure.\n\n\n\n### When not to use\n\n- A precise number or arbitrary text is needed — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .\n\n- The value is one option from a labelled set — compose [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EVwqNhd3WH) or [RadioInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-x_sKubP8Qh) .";
|
|
11
|
-
ds:guidelines "";
|
|
11
|
+
ds:guidelines "\n\nReference\n\n[Canonical internal] [DE080](https://docs.google.com/document/d/19k-5YOuQc6B82mYPEwvmlJpui3Oex4o8ACwKBbo-d44/edit?usp=sharing) - Accessibility consideration for syncing a slider and an input to control one value\n\n";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation
|
|
14
|
-
ds:hasTokenBinding [
|
|
15
|
-
a ds:TokenBinding;
|
|
16
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
17
|
-
ds:node "$root/track";
|
|
18
|
-
anatomy:styleKey "size.height";
|
|
19
|
-
anatomy:styleState "default";
|
|
20
|
-
ds:rank 1;
|
|
21
|
-
ds:consumesSymbol dt:dimension.200
|
|
22
|
-
], [
|
|
23
|
-
a ds:TokenBinding;
|
|
24
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
25
|
-
ds:node "$root/track/bar";
|
|
26
|
-
anatomy:styleKey "size.height";
|
|
27
|
-
anatomy:styleState "default";
|
|
28
|
-
ds:rank 1;
|
|
29
|
-
ds:consumesSymbol dt:dimension.100
|
|
30
|
-
], [
|
|
31
|
-
a ds:TokenBinding;
|
|
32
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
33
|
-
ds:node "$root/track/bar";
|
|
34
|
-
anatomy:styleKey "appearance.background";
|
|
35
|
-
anatomy:styleState "default";
|
|
36
|
-
ds:rank 1;
|
|
37
|
-
ds:consumesSymbol dt:color.foreground.slider.track
|
|
38
|
-
], [
|
|
39
|
-
a ds:TokenBinding;
|
|
40
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
41
|
-
ds:node "$root/track/bar";
|
|
42
|
-
anatomy:styleKey "appearance.background";
|
|
43
|
-
anatomy:styleState "disabled";
|
|
44
|
-
ds:rank 1;
|
|
45
|
-
ds:consumesSymbol dt:color.foreground.slider.track.disabled
|
|
46
|
-
], [
|
|
47
|
-
a ds:TokenBinding;
|
|
48
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
49
|
-
ds:node "$root/track/bar";
|
|
50
|
-
anatomy:styleKey "appearance.radius";
|
|
51
|
-
anatomy:styleState "default";
|
|
52
|
-
ds:rank 1;
|
|
53
|
-
ds:consumesSymbol dt:dimension.radius.small
|
|
54
|
-
], [
|
|
55
|
-
a ds:TokenBinding;
|
|
56
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
57
|
-
ds:node "$root/track/thumb";
|
|
58
|
-
anatomy:styleKey "size.width";
|
|
59
|
-
anatomy:styleState "default";
|
|
60
|
-
ds:rank 1;
|
|
61
|
-
ds:consumesSymbol dt:dimension.200
|
|
62
|
-
], [
|
|
63
|
-
a ds:TokenBinding;
|
|
64
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
65
|
-
ds:node "$root/track/thumb";
|
|
66
|
-
anatomy:styleKey "size.height";
|
|
67
|
-
anatomy:styleState "default";
|
|
68
|
-
ds:rank 1;
|
|
69
|
-
ds:consumesSymbol dt:dimension.200
|
|
70
|
-
], [
|
|
71
|
-
a ds:TokenBinding;
|
|
72
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
73
|
-
ds:node "$root/track/thumb";
|
|
74
|
-
anatomy:styleKey "appearance.background";
|
|
75
|
-
anatomy:styleState "default";
|
|
76
|
-
ds:rank 1;
|
|
77
|
-
ds:consumesSymbol dt:color.foreground.slider.progress
|
|
78
|
-
], [
|
|
79
|
-
a ds:TokenBinding;
|
|
80
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
81
|
-
ds:node "$root/track/thumb";
|
|
82
|
-
anatomy:styleKey "appearance.background";
|
|
83
|
-
anatomy:styleState "disabled";
|
|
84
|
-
ds:rank 1;
|
|
85
|
-
ds:consumesSymbol dt:color.foreground.slider.progress.disabled
|
|
86
|
-
], [
|
|
87
|
-
a ds:TokenBinding;
|
|
88
|
-
ds:viaBlock ds:global.subcomponent.range_input;
|
|
89
|
-
ds:node "$root/value readout";
|
|
90
|
-
anatomy:styleKey "typography.color";
|
|
91
|
-
anatomy:styleState "default";
|
|
92
|
-
ds:rank 1;
|
|
93
|
-
ds:consumesSymbol dt:color.text.muted
|
|
94
|
-
].
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation.
|
|
@@ -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.
|
|
6
|
-
ds:name "
|
|
5
|
+
ds:global.subcomponent.text_editor_input a ds:Subcomponent;
|
|
6
|
+
ds:name "TextEditorInput";
|
|
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.
|
|
13
|
+
ds:documentationStage ds:tag.triagedbacklog.
|
|
@@ -4,13 +4,94 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.variant.tooltip_dense a ds:Variant;
|
|
6
6
|
ds:name "Tooltip+Dense";
|
|
7
|
-
ds:summary "
|
|
8
|
-
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "";
|
|
7
|
+
ds:summary "The dense tooltip is a compact tooltip variant intended for interfaces where space is limited or information needs to be delivered efficiently. Its primary purpose is to provide brief, essential guidance while maintaining a smaller footprint than the standard tooltip.\n\nVariant of [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW).";
|
|
8
|
+
ds:anatomyDsl "---\n# The compact tooltip: text only, with no icon and no arrow. Its variable mode\n# is set to dark, so it is dark on a light page by default and its colours are\n# bound directly, not through surface channels.\nnode:\n uri: global.variant.tooltip_dense\n styles:\n layout.type: flex\n layout.direction: row\n # Clips its content so the text never draws outside the border.\n layout.overflow: hidden\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 typography.font: typography.text.tertiary\n size.max.width: 284px\n spacing.internal.inline.start: dimension.100\n spacing.internal.inline.end: dimension.100\n spacing.internal.block.start: dimension.050\n spacing.internal.block.end: dimension.050\n edges:\n - node:\n role: text\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14521-1929&t=pA5l7Omuxa3ATwVS-1\n\n1. **Container**\n\nCompact, inverted surface that holds the text. No arrow.\n\n1. **Text**\n\nShort supplementary copy that explains or clarifies the trigger.\n\n## Styling\n\n**Layout and spacing**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14521-2082&t=pA5l7Omuxa3ATwVS-1\n\n**Colors**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14521-2217&t=pA5l7Omuxa3ATwVS-1\n\n**Typography**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14521-2270&t=pA5l7Omuxa3ATwVS-1\n\n**Oveflow**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14521-7598&t=pA5l7Omuxa3ATwVS-1";
|
|
10
|
+
ds:usage "### When 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\n### When 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-20dWwIHYhx/_rui-ONb9LwkGvW) for improved readability\n- When content is descriptive or longer than a short phrase\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-20dWwIHYhx/_rui-ONb9LwkGvW) \n- When content is complex or structured\n - Incorrect: A dense tooltip includes multiple elements such as icons and key-value pairs\n - Remediation: Use [TooltipWrapper](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9)\n- When used on touch interfaces, where small hover targets reduce usability\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
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasSubcomponent ds:global.variant.tooltip_dense;
|
|
15
15
|
ds:variantOf ds:global.component.tooltip;
|
|
16
|
-
ds:parentComponent ds:global.variant.tooltip_dense
|
|
16
|
+
ds:parentComponent ds:global.variant.tooltip_dense;
|
|
17
|
+
ds:hasTokenBinding [
|
|
18
|
+
a ds:TokenBinding;
|
|
19
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
20
|
+
ds:node "$root";
|
|
21
|
+
anatomy:styleKey "appearance.background";
|
|
22
|
+
anatomy:styleState "default";
|
|
23
|
+
ds:rank 1;
|
|
24
|
+
ds:consumesSymbol dt:color.background.container
|
|
25
|
+
], [
|
|
26
|
+
a ds:TokenBinding;
|
|
27
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
28
|
+
ds:node "$root";
|
|
29
|
+
anatomy:styleKey "typography.color";
|
|
30
|
+
anatomy:styleState "default";
|
|
31
|
+
ds:rank 1;
|
|
32
|
+
ds:consumesSymbol dt:color.text
|
|
33
|
+
], [
|
|
34
|
+
a ds:TokenBinding;
|
|
35
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
36
|
+
ds:node "$root";
|
|
37
|
+
anatomy:styleKey "appearance.border.color";
|
|
38
|
+
anatomy:styleState "default";
|
|
39
|
+
ds:rank 1;
|
|
40
|
+
ds:consumesSymbol dt:color.border.muted
|
|
41
|
+
], [
|
|
42
|
+
a ds:TokenBinding;
|
|
43
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
44
|
+
ds:node "$root";
|
|
45
|
+
anatomy:styleKey "appearance.border.width";
|
|
46
|
+
anatomy:styleState "default";
|
|
47
|
+
ds:rank 1;
|
|
48
|
+
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
49
|
+
], [
|
|
50
|
+
a ds:TokenBinding;
|
|
51
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
52
|
+
ds:node "$root";
|
|
53
|
+
anatomy:styleKey "appearance.radius";
|
|
54
|
+
anatomy:styleState "default";
|
|
55
|
+
ds:rank 1;
|
|
56
|
+
ds:consumesSymbol dt:dimension.radius.small
|
|
57
|
+
], [
|
|
58
|
+
a ds:TokenBinding;
|
|
59
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
60
|
+
ds:node "$root";
|
|
61
|
+
anatomy:styleKey "typography.font";
|
|
62
|
+
anatomy:styleState "default";
|
|
63
|
+
ds:rank 1;
|
|
64
|
+
ds:consumesSymbol dt:typography.text.tertiary
|
|
65
|
+
], [
|
|
66
|
+
a ds:TokenBinding;
|
|
67
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
68
|
+
ds:node "$root";
|
|
69
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
70
|
+
anatomy:styleState "default";
|
|
71
|
+
ds:rank 1;
|
|
72
|
+
ds:consumesSymbol dt:dimension.100
|
|
73
|
+
], [
|
|
74
|
+
a ds:TokenBinding;
|
|
75
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
76
|
+
ds:node "$root";
|
|
77
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
78
|
+
anatomy:styleState "default";
|
|
79
|
+
ds:rank 1;
|
|
80
|
+
ds:consumesSymbol dt:dimension.100
|
|
81
|
+
], [
|
|
82
|
+
a ds:TokenBinding;
|
|
83
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
84
|
+
ds:node "$root";
|
|
85
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
86
|
+
anatomy:styleState "default";
|
|
87
|
+
ds:rank 1;
|
|
88
|
+
ds:consumesSymbol dt:dimension.050
|
|
89
|
+
], [
|
|
90
|
+
a ds:TokenBinding;
|
|
91
|
+
ds:viaBlock ds:global.variant.tooltip_dense;
|
|
92
|
+
ds:node "$root";
|
|
93
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
94
|
+
anatomy:styleState "default";
|
|
95
|
+
ds:rank 1;
|
|
96
|
+
ds:consumesSymbol dt:dimension.050
|
|
97
|
+
].
|