@adobe/spectrum-design-data 3.3.0 → 3.5.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/components/accordion.json +32 -102
  2. package/components/action-bar.json +9 -23
  3. package/components/action-button.json +52 -92
  4. package/components/action-group.json +18 -129
  5. package/components/alert-banner.json +8 -27
  6. package/components/alert-dialog.json +45 -55
  7. package/components/avatar-group.json +20 -50
  8. package/components/avatar.json +44 -123
  9. package/components/badge.json +66 -160
  10. package/components/breadcrumbs.json +26 -100
  11. package/components/button-group.json +32 -63
  12. package/components/button.json +74 -105
  13. package/components/calendar.json +8 -67
  14. package/components/cards.json +31 -46
  15. package/components/checkbox-group.json +22 -84
  16. package/components/checkbox.json +33 -96
  17. package/components/close-button.json +31 -73
  18. package/components/coach-indicator.json +14 -44
  19. package/components/coach-mark.json +8 -26
  20. package/components/color-area.json +20 -93
  21. package/components/color-handle.json +25 -38
  22. package/components/color-loupe.json +18 -18
  23. package/components/color-slider.json +26 -122
  24. package/components/color-wheel.json +17 -84
  25. package/components/combo-box.json +56 -188
  26. package/components/contextual-help.json +87 -126
  27. package/components/date-picker.json +24 -120
  28. package/components/divider.json +25 -38
  29. package/components/drop-zone.json +25 -37
  30. package/components/field-label.json +22 -59
  31. package/components/help-text.json +16 -53
  32. package/components/illustrated-message.json +21 -72
  33. package/components/in-line-alert.json +13 -53
  34. package/components/link.json +31 -63
  35. package/components/list-view.json +15 -73
  36. package/components/menu.json +51 -180
  37. package/components/meter.json +35 -76
  38. package/components/number-field.json +34 -168
  39. package/components/picker.json +48 -187
  40. package/components/popover.json +47 -123
  41. package/components/progress-bar.json +33 -105
  42. package/components/progress-circle.json +25 -55
  43. package/components/radio-button.json +14 -67
  44. package/components/radio-group.json +34 -131
  45. package/components/rating.json +9 -38
  46. package/components/search-field.json +40 -125
  47. package/components/segmented-control.json +27 -69
  48. package/components/select-box.json +29 -96
  49. package/components/side-navigation.json +28 -69
  50. package/components/slider.json +45 -154
  51. package/components/standard-dialog.json +16 -88
  52. package/components/status-light.json +51 -133
  53. package/components/steplist.json +5 -24
  54. package/components/swatch-group.json +19 -55
  55. package/components/swatch.json +24 -79
  56. package/components/switch.json +42 -79
  57. package/components/table.json +26 -73
  58. package/components/tabs.json +35 -52
  59. package/components/tag-field.json +14 -60
  60. package/components/tag-group.json +22 -55
  61. package/components/tag.json +27 -77
  62. package/components/takeover-dialog.json +10 -61
  63. package/components/text-area.json +55 -204
  64. package/components/text-field.json +48 -169
  65. package/components/thumbnail.json +22 -63
  66. package/components/toast.json +30 -47
  67. package/components/tooltip.json +37 -84
  68. package/components/tree-view.json +51 -146
  69. package/fields/structure.json +1 -2
  70. package/guidelines/ai-resource-guide.json +42 -0
  71. package/guidelines/app-frame-overview.json +45 -44
  72. package/guidelines/applying-the-type-system.json +71 -0
  73. package/guidelines/attention-hierarchy.json +13 -22
  74. package/guidelines/background-layers.json +84 -10
  75. package/guidelines/bi-directionality.json +57 -0
  76. package/guidelines/border-width.json +70 -0
  77. package/guidelines/brand.json +24 -12
  78. package/guidelines/cognitive.json +229 -0
  79. package/guidelines/colors.json +55 -17
  80. package/guidelines/component-spacing.json +65 -0
  81. package/guidelines/contact-us.json +27 -0
  82. package/guidelines/containers.json +21 -28
  83. package/guidelines/content-area-browsing-context.json +73 -0
  84. package/guidelines/creating-bluelines-browsing-context.json +71 -0
  85. package/guidelines/design-tokens.json +186 -0
  86. package/guidelines/developer-overview.json +33 -9
  87. package/guidelines/drop-shadow.json +76 -0
  88. package/guidelines/faqs.json +100 -9
  89. package/guidelines/fonts.json +33 -14
  90. package/guidelines/grammar-and-mechanics.json +276 -0
  91. package/guidelines/grays.json +17 -44
  92. package/guidelines/header-browsing-context.json +40 -0
  93. package/guidelines/icon-fundamentals.json +7 -18
  94. package/guidelines/illustration.json +120 -0
  95. package/guidelines/in-product-word-list.json +25 -0
  96. package/guidelines/inclusive-design.json +101 -0
  97. package/guidelines/inclusive-ux-writing.json +34 -0
  98. package/guidelines/internationalization.json +103 -0
  99. package/guidelines/layout-spacing.json +39 -0
  100. package/guidelines/manifest.json +280 -16
  101. package/guidelines/motion.json +18 -13
  102. package/guidelines/object-styles-overview.json +17 -0
  103. package/guidelines/principles.json +7 -8
  104. package/guidelines/resources.json +29 -15
  105. package/guidelines/rounding.json +85 -0
  106. package/guidelines/side-navigation-browsing-context.json +74 -0
  107. package/guidelines/spacing-overview.json +78 -0
  108. package/guidelines/states.json +16 -11
  109. package/guidelines/support.json +125 -0
  110. package/guidelines/typography-overview.json +39 -0
  111. package/guidelines/typography-system.json +212 -0
  112. package/guidelines/using-icons.json +32 -47
  113. package/guidelines/voice-and-tone.json +51 -0
  114. package/guidelines/whats-new.json +21 -0
  115. package/guidelines/writing-about-people.json +99 -0
  116. package/guidelines/writing-for-errors.json +140 -0
  117. package/guidelines/writing-for-onboarding.json +123 -0
  118. package/guidelines/writing-for-readability.json +66 -0
  119. package/guidelines/writing-with-visuals.json +78 -0
  120. package/llms.txt +27 -0
  121. package/package.json +3 -2
  122. package/tokens/layout.tokens.json +88 -0
@@ -67,81 +67,35 @@
67
67
  "size": {
68
68
  "type": "string",
69
69
  "default": "m",
70
- "values": [
71
- {
72
- "value": "s"
73
- },
74
- {
75
- "value": "m"
76
- },
77
- {
78
- "value": "l"
79
- }
80
- ]
70
+ "values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
81
71
  },
82
72
  "style": {
83
73
  "type": "string",
84
74
  "default": "keyword",
85
75
  "values": [
86
- {
87
- "value": "keyword"
88
- },
89
- {
90
- "value": "icon"
91
- },
92
- {
93
- "value": "thumbnail"
94
- },
95
- {
96
- "value": "avatar"
97
- }
76
+ { "value": "keyword" },
77
+ { "value": "icon" },
78
+ { "value": "thumbnail" },
79
+ { "value": "avatar" }
98
80
  ]
99
81
  },
100
- "isDisabled": {
101
- "type": "boolean",
102
- "default": false
103
- },
104
- "hideLabel": {
105
- "type": "boolean",
106
- "default": false
107
- }
82
+ "isDisabled": { "type": "boolean", "default": false },
83
+ "hideLabel": { "type": "boolean", "default": false }
108
84
  },
109
85
  "states": [
110
- {
111
- "name": "hover",
112
- "trigger": "interaction"
113
- },
114
- {
115
- "name": "focus-+-hover",
116
- "trigger": "prop"
117
- },
118
- {
119
- "name": "focus-+-not-hover",
120
- "trigger": "prop"
121
- },
122
- {
123
- "name": "keyboard-focus",
124
- "trigger": "interaction"
125
- }
86
+ { "name": "hover", "trigger": "interaction" },
87
+ { "name": "focus-+-hover", "trigger": "prop" },
88
+ { "name": "focus-+-not-hover", "trigger": "prop" },
89
+ { "name": "keyboard-focus", "trigger": "interaction" }
126
90
  ],
127
- "lifecycle": {
128
- "introduced": "1.0.0-draft"
129
- },
91
+ "lifecycle": { "introduced": "1.0.0-draft" },
130
92
  "accessibility": {
131
93
  "intents": ["input", "select"],
132
94
  "focusable": true,
133
95
  "keyboardIntents": ["navigate-items", "activate"],
134
96
  "wcag": [
135
- {
136
- "criterion": "1.3.1",
137
- "level": "A",
138
- "title": "Info and Relationships"
139
- },
140
- {
141
- "criterion": "4.1.2",
142
- "level": "A",
143
- "title": "Name, Role, Value"
144
- }
97
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
98
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
145
99
  ]
146
100
  }
147
101
  }
@@ -9,13 +9,6 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/tag-group/"
11
11
  },
12
- "implementations": [
13
- {
14
- "platform": "web",
15
- "componentName": "TagGroup",
16
- "package": "@react-spectrum/s2"
17
- }
18
- ],
19
12
  "documentBlocks": [
20
13
  {
21
14
  "type": "purpose",
@@ -23,96 +16,70 @@
23
16
  },
24
17
  {
25
18
  "type": "guideline",
26
- "content": "Tag groups organize multiple tags into a single visual group. They’re used to categorize content like keywords or names that describe an item or search query. Tags within the group can be added, removed, or styled to reflect different types of content."
19
+ "content": "Tag group overflow.\n\nWhen horizontal space is limited in a tag group, the individual tags wrap to form another line."
27
20
  },
28
21
  {
29
22
  "type": "guideline",
30
- "content": "Tag groups come in three different sizes: small, medium, and large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page."
23
+ "content": "Focus between tags.\n\nIf the order of tags within the group matters, the user must be able to click or use keyboard focus between tags to add more."
31
24
  },
32
25
  {
33
26
  "type": "guideline",
34
- "content": "Labels can be placed either on top or on the side of a group of tags. Top labels are the default and are recommended because they work better with long copy, localization, and responsive layouts. Side labels are most useful when vertical space is limited."
27
+ "content": "Allow bulk actions.\n\nIn some instances, it's possible to add an action next to a group of tags to provide a way to easily act on the entire group at once. Reveal the action only when more than one tag is displayed."
35
28
  },
36
29
  {
37
- "type": "guideline",
38
- "content": "The label of the tag group can be hidden if the context for the tags is sufficient without the title — for example, when the page title or section title applies to the group of tags."
30
+ "type": "do-dont",
31
+ "content": "Avoid disabling a large group of tags",
32
+ "dont": "In cases where users cannot interact with a large group of tags, consider hiding the group and its broader construct rather than disabling all the individual tags."
39
33
  },
40
34
  {
41
35
  "type": "guideline",
42
- "content": "Define an action label to include a link-style button to perform an action on the entire group of tags. This button always appears at the end of the tag group."
36
+ "content": "RTL.\n\nFor RTL (right-to-left) languages, the group of tags is mirrored. The first tag will appear on the left instead of the right and flow from there."
43
37
  },
44
38
  {
45
39
  "type": "guideline",
46
- "content": "When horizontal space is limited in a tag group, the individual tags wrap to form another line."
40
+ "content": "Keyboard interactions.\n\nKey Interaction Tab Tabbing into a group of tags places the focus on the first tag (only one tag receives the keyboard focus at a time). Arrow keys Moves focus through the group of tags. Page Up or Page Down Moves focus to the previous or next tag in the group (last becomes first, and first becomes last). Home or End Moves focus to the first or last tag in the group. Backspace or Delete Removes the tag in focus from the group. Space If the tag is selectable, the space bar will toggle selection. Ctrl / Cmd + A Selects all tags."
47
41
  },
48
42
  {
49
43
  "type": "guideline",
50
- "content": "If the order of tags within the group matters, the user must be able to click or use keyboard focus between tags to add more."
44
+ "content": "Cursor guidelines.\n\nCursor Description Default (Arrow) Use the default cursor for non-interactive tags. Pointer Use the pointer cursor for interactive tags, such as tags that are removable or can be used to filter content. Grab hand Use the grab hand cursor when the order of tags can be rearranged. Grab fist Use the grab fist cursor when holding a tag."
51
45
  },
52
46
  {
53
47
  "type": "guideline",
54
- "content": "In some instances, it's possible to add an action next to a group of tags to provide a way to easily act on the entire group at once. Reveal the action only when more than one tag is displayed."
55
- },
48
+ "content": "WCAG 2.2 compliance.\n\nAny criterion not mention in the below table are not applicable to this component or are resolved with underlying requirements, engineering, and styles of the entire system. 1. Perceivable Requirement Criterion Level Compliance Non-text content 1.1.1 A Non‑text elements—such as icons used in tags—must provide a text alternative that communicates the control’s purpose. All controls, especially icon‑only controls, need an accessible name (for example, via a title, aria‑label, or associated text) so screen readers can announce their function. Info and relationships, Identify purpose 1.3.1, 1.3.6 A, AAA Tags should be understandable by assistive technologies like screen readers. This means the proper semantic HTML or ARIA role should be utilized. Text contrast 1.4.3 AA Large text has a contrast ratio of at least 3:1, and small text has a contrast ratio of at least 4.5:1. Incidental text such as disabled, hidden, or decorative text has no contrast requirement. Resize text 1.4.4 AA Tag groups should be built in such a way that they can be resized without assistive technology up to 200%. Non-text contrast 1.4.11 AA The visual presentation of icons and various states have a contrast ratio of at least 3:1. Text spacing 1.4.12 AA Line height of text is at least 1.5x the font size when wrapped. 2. Operable Requirement Criterion Level Compliance Keyboard 2.1.1, 2.1.3 A, AAA All functionality of the component is operable through a keyboard without specific timing for keystrokes. Keyboard traps 2.1.2 A Focus can be moved away from the component using only a keyboard. Seizures and physical reactions 2.3.1, 2.3.2, 2.3.3 A, AAA, AAA There is no flashing content or unnecessary motion or animation in this component. Focus order 2.4.3 A Navigation sequences receive focus in an order that preserves meaning and operability. Focus visible 2.4.7 AA Keyboard states use an indicator that is visible with at least 3:1 contrast."
49
+ }
50
+ ],
51
+ "implementations": [
56
52
  {
57
- "type": "guideline",
58
- "content": "In cases where users cannot interact with a large group of tags, consider hiding the group and its broader construct rather than disabling all the individual tags."
53
+ "platform": "web",
54
+ "componentName": "TagGroup",
55
+ "package": "@react-spectrum/s2"
59
56
  }
60
57
  ],
61
58
  "options": {
62
59
  "size": {
63
60
  "type": "string",
64
61
  "default": "m",
65
- "values": [
66
- {
67
- "value": "s"
68
- },
69
- {
70
- "value": "m"
71
- },
72
- {
73
- "value": "l"
74
- }
75
- ]
62
+ "values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
76
63
  },
77
64
  "labelPosition": {
78
65
  "type": "string",
79
66
  "default": "top",
80
- "values": [
81
- {
82
- "value": "top"
83
- },
84
- {
85
- "value": "side"
86
- }
87
- ]
88
- },
89
- "hideLabel": {
90
- "type": "boolean",
91
- "default": false
67
+ "values": [{ "value": "top" }, { "value": "side" }]
92
68
  },
69
+ "hideLabel": { "type": "boolean", "default": false },
93
70
  "actionLabel": {
94
71
  "type": "string",
95
72
  "description": "If undefined, this button does not appear."
96
73
  }
97
74
  },
98
- "lifecycle": {
99
- "introduced": "1.0.0-draft"
100
- },
75
+ "lifecycle": { "introduced": "1.0.0-draft" },
101
76
  "accessibility": {
102
77
  "intents": ["select"],
103
78
  "focusable": true,
104
79
  "keyboardIntents": ["navigate-items", "activate"],
105
80
  "wcag": [
106
- {
107
- "criterion": "1.3.1",
108
- "level": "A",
109
- "title": "Info and Relationships"
110
- },
111
- {
112
- "criterion": "4.1.2",
113
- "level": "A",
114
- "title": "Name, Role, Value"
115
- }
81
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
82
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
116
83
  ]
117
84
  }
118
85
  }
@@ -9,13 +9,6 @@
9
9
  "category": "navigation",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/tag/"
11
11
  },
12
- "implementations": [
13
- {
14
- "platform": "web",
15
- "componentName": "Tag",
16
- "package": "@react-spectrum/s2"
17
- }
18
- ],
19
12
  "documentBlocks": [
20
13
  {
21
14
  "type": "purpose",
@@ -23,108 +16,65 @@
23
16
  },
24
17
  {
25
18
  "type": "guideline",
26
- "content": "Tags categorize content such as keywords or names. They’re often grouped to represent a search query or describe an item."
19
+ "content": "Text overflow.\n\nWhen the tag text is too long for the available horizontal space or when a tag reaches its maximum width, it truncates. Hovering over the tag shows a tooltip with the full text."
27
20
  },
28
21
  {
29
- "type": "guideline",
30
- "content": "Tags should always include a label. These can represent search terms, filters, or keywords."
22
+ "type": "do-dont",
23
+ "content": "Avoid conflicting tag actions",
24
+ "dont": "A tag can either trigger navigation or filtering, or act as a dismissible chip. Combining both interactions disrupts focus order and accessibility states. Choose one behavior — navigation or dismissal — and apply it consistently."
31
25
  },
32
26
  {
33
27
  "type": "guideline",
34
- "content": "Tags have the option to include an avatar in addition to the label. These should be used to represent entities."
28
+ "content": "RTL.\n\nFor RTL (right-to-left) languages, the layout of the tag is mirrored. The avatar is right-aligned and the close button is left-aligned."
35
29
  },
36
30
  {
37
31
  "type": "guideline",
38
- "content": "Tags have the option to be removable or not. Removable tags have a small close (“x”) button."
32
+ "content": "Keyboard interactions.\n\nKey Interaction Tab Tabbing into a group of tags places the focus on the first tag (only one tag receives the keyboard focus at a time). Arrow keys Moves focus through the group of tags. Page Up or Page Down Moves focus to the previous or next tag in the group (last becomes first, and first becomes last). Home or End Moves focus to the first or last tag in the group. Backspace or Delete Removes the tag in focus from the group. Space If the tag is selectable, the space bar will toggle selection."
39
33
  },
40
34
  {
41
35
  "type": "guideline",
42
- "content": "A tag can be marked as having an error to show that it has become invalid."
36
+ "content": "Cursor guidelines.\n\nCursor Description Default (Arrow) Use the default cursor for non-interactive tags. Pointer Use the pointer cursor for interactive tags, such as tags that are removable or can be used to filter content. Grab hand Use the grab hand cursor when the order of tags can be rearranged. Grab fist Use the grab fist cursor when holding a tag."
43
37
  },
44
38
  {
45
39
  "type": "guideline",
46
- "content": "A tag in a disabled state shows that a tag exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a tag may become available later."
47
- },
48
- {
49
- "type": "guideline",
50
- "content": "Tags have a read-only option for when content in the disabled state still needs to be shown. This allows for content to be copied, but not interacted with or changed."
51
- },
52
- {
53
- "type": "guideline",
54
- "content": "When the tag text is too long for the available horizontal space or when a tag reaches its maximum width, it truncates. Hovering over the tag shows a tooltip with the full text."
55
- },
40
+ "content": "WCAG 2.2 compliance.\n\nAny criterion not mention in the below table are not applicable to this component or are resolved with underlying requirements, engineering, and styles of the entire system. 1. Perceivable Requirement Criterion Level Compliance Non-text content 1.1.1 A Non‑text elements—such as icons used in tags—must provide a text alternative that communicates the control’s purpose. All controls, especially icon‑only controls, need an accessible name (for example, via a title, aria‑label, or associated text) so screen readers can announce their function. Info and relationships, Identify purpose 1.3.1, 1.3.6 AA Tags should be understandable by assistive technologies like screen readers. This means the proper semantic HTML or ARIA role should be utilized. Text contrast 1.4.3 AA Large text has a contrast ratio of at least 3:1, and small text has a contrast ratio of at least 4.5:1. Incidental text such as disabled, hidden, or decorative text has no contrast requirement. Resize text 1.4.4 AA Tags should be built in such a way that they can be resized without assistive technology up to 200%. Non-text contrast 1.4.11 AA The visual presentation of icons and various states have a contrast ratio of at least 3:1. Text spacing 1.4.12 AA Line height of text is at least 1.5x the font size. 2. Operable Requirement Criterion Level Compliance Keyboard 2.1.1, 2.1.3 A, AAA All functionality of the component is operable through a keyboard without specific timing for keystrokes. Keyboard traps 2.1.2 A Focus can be moved away from the component using only a keyboard. Seizures and physical reactions 2.3.1, 2.3.2, 2.3.3 A, AAA, AAA There is no flashing content or unnecessary motion or animation in this component. Focus order 2.4.3 A Navigation sequences receive focus in an order that preserves meaning and operability. Focus visible 2.4.7 AA Keyboard states use an indicator that is visible with at least 3:1 contrast."
41
+ }
42
+ ],
43
+ "implementations": [
56
44
  {
57
- "type": "guideline",
58
- "content": "A tag can either trigger navigation or filtering, or act as a dismissible chip. Combining both interactions disrupts focus order and accessibility states. Choose one behavior — navigation or dismissal — and apply it consistently."
45
+ "platform": "web",
46
+ "componentName": "Tag",
47
+ "package": "@react-spectrum/s2"
59
48
  }
60
49
  ],
61
50
  "options": {
62
- "label": {
63
- "type": "string"
64
- },
65
- "hasAvatar": {
66
- "type": "boolean",
67
- "default": false
68
- },
69
- "isRemovable": {
70
- "type": "boolean",
71
- "default": false
72
- },
73
- "isError": {
74
- "type": "boolean",
75
- "default": false
76
- },
77
- "isDisabled": {
78
- "type": "boolean",
79
- "default": false
80
- },
81
- "isReadOnly": {
82
- "type": "boolean",
83
- "default": false
84
- }
51
+ "label": { "type": "string" },
52
+ "hasAvatar": { "type": "boolean", "default": false },
53
+ "isRemovable": { "type": "boolean", "default": false },
54
+ "isError": { "type": "boolean", "default": false },
55
+ "isDisabled": { "type": "boolean", "default": false },
56
+ "isReadOnly": { "type": "boolean", "default": false }
85
57
  },
86
58
  "anatomy": [
87
59
  {
88
60
  "name": "clear-icon",
89
61
  "description": "Icon affordance that removes the tag."
90
62
  },
91
- {
92
- "name": "cross-icon",
93
- "description": "Cross/X icon shown on the tag."
94
- }
63
+ { "name": "cross-icon", "description": "Cross/X icon shown on the tag." }
95
64
  ],
96
65
  "states": [
97
- {
98
- "name": "hover",
99
- "trigger": "interaction"
100
- },
101
- {
102
- "name": "down",
103
- "trigger": "interaction"
104
- },
105
- {
106
- "name": "keyboard-focus",
107
- "trigger": "interaction"
108
- }
66
+ { "name": "hover", "trigger": "interaction" },
67
+ { "name": "down", "trigger": "interaction" },
68
+ { "name": "keyboard-focus", "trigger": "interaction" }
109
69
  ],
110
- "lifecycle": {
111
- "introduced": "1.0.0-draft"
112
- },
70
+ "lifecycle": { "introduced": "1.0.0-draft" },
113
71
  "accessibility": {
114
72
  "intents": ["dismiss"],
115
73
  "focusable": true,
116
74
  "keyboardIntents": ["activate"],
117
75
  "wcag": [
118
- {
119
- "criterion": "2.1.1",
120
- "level": "A",
121
- "title": "Keyboard"
122
- },
123
- {
124
- "criterion": "4.1.2",
125
- "level": "A",
126
- "title": "Name, Role, Value"
127
- }
76
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
77
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
128
78
  ]
129
79
  }
130
80
  }
@@ -16,67 +16,26 @@
16
16
  },
17
17
  {
18
18
  "type": "guideline",
19
- "content": "Takeover dialogs are full-screen modals used for complex or immersive workflows. They block access to the rest of the interface and are typically used when multiple steps or tools need focused attention. Use when the task requires the entire screen and shouldn’t be interrupted."
19
+ "content": "Title text overflow.\n\nWhen the title is too long for the available horizontal space, it wraps to form another line."
20
20
  },
21
21
  {
22
22
  "type": "guideline",
23
- "content": "The takeover dialog supports two slots—one in the header and one in the body—where other components can be inserted."
23
+ "content": "Header content overflow.\n\nTakeover dialogs can optionally include additional elements in the header custom content area. When horizontal space is limited, the header custom content will be displayed underneath the title."
24
24
  },
25
25
  {
26
26
  "type": "guideline",
27
- "content": "Takeover dialogs support two layout variants: dialog and full-screen."
28
- },
29
- {
30
- "type": "guideline",
31
- "content": "All takeover dialogs must include a title. The title appears at the top of the dialog and should briefly describe the expected outcome if the user proceeds with the primary action."
32
- },
33
- {
34
- "type": "guideline",
35
- "content": "A takeover dialog must include at least one button. The primary action label refers to the rightmost button in the dialog footer for languages that read left to right. It should use a short, actionable phrase that clearly communicates the result of selecting the action—whether that means taking action, progressing through a workflow, or dismissing the dialog."
36
- },
37
- {
38
- "type": "guideline",
39
- "content": "Takeover dialogs can include up to three buttons if a secondary outline button label is defined. If no label is defined, the button won’t appear. The secondary outline button should use a short, actionable phrase that clearly communicates the result of selecting the action—typically describing the previous step or an alternative choice."
40
- },
41
- {
42
- "type": "guideline",
43
- "content": "By default, a takeover dialog that includes a button to cancel or go back will be labeled “Cancel.”"
44
- },
45
- {
46
- "type": "guideline",
47
- "content": "When the title is too long for the available horizontal space, it wraps to form another line."
48
- },
49
- {
50
- "type": "guideline",
51
- "content": "Takeover dialogs can optionally include additional elements in the header custom content area. When horizontal space is limited, the header custom content will be displayed underneath the title."
52
- },
53
- {
54
- "type": "guideline",
55
- "content": "Most dialog titles should communicate the primary action of the dialog. When possible, the button label should use the same language as the action mentioned in the title. For example, if the title is “Delete conversation,” the primary action button label should be “Delete.”"
27
+ "content": "Use similar language for dialog titles and actions.\n\nMost dialog titles should communicate the primary action of the dialog. When possible, the button label should use the same language as the action mentioned in the title. For example, if the title is \"Delete conversation,\" the primary action button label should be \"Delete."
56
28
  }
57
29
  ],
58
30
  "options": {
59
- "title": {
60
- "type": "string"
61
- },
62
- "description": {
63
- "type": "string"
64
- },
31
+ "title": { "type": "string" },
32
+ "description": { "type": "string" },
65
33
  "variant": {
66
34
  "type": "string",
67
35
  "default": "dialog",
68
- "values": [
69
- {
70
- "value": "dialog"
71
- },
72
- {
73
- "value": "full screen"
74
- }
75
- ]
76
- },
77
- "primaryActionLabel": {
78
- "type": "string"
36
+ "values": [{ "value": "dialog" }, { "value": "full screen" }]
79
37
  },
38
+ "primaryActionLabel": { "type": "string" },
80
39
  "secondaryActionLabel": {
81
40
  "type": "string",
82
41
  "description": "If undefined, this button does not appear."
@@ -105,25 +64,15 @@
105
64
  }
106
65
  }
107
66
  },
108
- "lifecycle": {
109
- "introduced": "1.0.0-draft"
110
- },
67
+ "lifecycle": { "introduced": "1.0.0-draft" },
111
68
  "accessibility": {
112
69
  "role": "dialog",
113
70
  "intents": ["dismiss"],
114
71
  "focusable": false,
115
72
  "keyboardIntents": ["dismiss"],
116
73
  "wcag": [
117
- {
118
- "criterion": "2.4.3",
119
- "level": "A",
120
- "title": "Focus Order"
121
- },
122
- {
123
- "criterion": "4.1.2",
124
- "level": "A",
125
- "title": "Name, Role, Value"
126
- }
74
+ { "criterion": "2.4.3", "level": "A", "title": "Focus Order" },
75
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
127
76
  ]
128
77
  }
129
78
  }