@adobe/spectrum-design-data 3.3.0-beta.1 → 3.3.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/components/accordion.json +67 -15
- package/components/action-bar.json +30 -9
- package/components/action-button.json +92 -39
- package/components/action-group.json +137 -18
- package/components/alert-banner.json +27 -8
- package/components/alert-dialog.json +55 -34
- package/components/avatar-group.json +35 -9
- package/components/avatar.json +105 -29
- package/components/badge.json +163 -56
- package/components/breadcrumbs.json +107 -26
- package/components/button-group.json +63 -19
- package/components/button.json +105 -61
- package/components/calendar.json +74 -8
- package/components/card.json +13 -0
- package/components/cards.json +46 -31
- package/components/checkbox-group.json +85 -16
- package/components/checkbox.json +97 -27
- package/components/close-button.json +75 -20
- package/components/coach-indicator.json +44 -14
- package/components/coach-mark.json +26 -8
- package/components/color-area.json +100 -20
- package/components/color-handle.json +46 -25
- package/components/color-loupe.json +14 -2
- package/components/color-slider.json +129 -26
- package/components/color-wheel.json +91 -17
- package/components/combo-box.json +189 -50
- package/components/contextual-help.json +126 -80
- package/components/date-field.json +7 -0
- package/components/date-picker.json +127 -24
- package/components/divider.json +38 -12
- package/components/drop-zone.json +37 -18
- package/components/field-label.json +62 -21
- package/components/heading.json +7 -0
- package/components/help-text.json +53 -16
- package/components/illustrated-message.json +85 -21
- package/components/in-line-alert.json +53 -13
- package/components/link.json +63 -24
- package/components/list-view.json +80 -15
- package/components/menu.json +181 -45
- package/components/meter.json +78 -24
- package/components/number-field.json +175 -34
- package/components/picker.json +188 -42
- package/components/popover.json +126 -37
- package/components/progress-bar.json +108 -23
- package/components/progress-circle.json +55 -12
- package/components/radio-button.json +67 -14
- package/components/radio-group.json +132 -28
- package/components/rating.json +38 -9
- package/components/search-field.json +126 -34
- package/components/segmented-control.json +70 -21
- package/components/select-box.json +103 -29
- package/components/side-navigation.json +69 -28
- package/components/slider.json +155 -39
- package/components/standard-dialog.json +88 -16
- package/components/status-light.json +136 -41
- package/components/steplist.json +24 -5
- package/components/swatch-group.json +55 -19
- package/components/swatch.json +79 -24
- package/components/switch.json +79 -31
- package/components/table.json +73 -26
- package/components/tabs.json +52 -22
- package/components/tag-field.json +60 -14
- package/components/tag-group.json +56 -16
- package/components/tag.json +78 -21
- package/components/takeover-dialog.json +61 -10
- package/components/text-area.json +205 -49
- package/components/text-field.json +170 -42
- package/components/thumbnail.json +63 -22
- package/components/time-field.json +7 -0
- package/components/toast.json +50 -29
- package/components/tooltip.json +87 -27
- package/components/tree-view.json +147 -45
- package/components/user-card.json +7 -0
- package/guidelines/app-frame-content-area.json +81 -0
- package/guidelines/app-frame-creating-bluelines.json +58 -0
- package/guidelines/app-frame-header.json +72 -0
- package/guidelines/app-frame-overview.json +50 -44
- package/guidelines/app-frame-side-navigation.json +138 -0
- package/guidelines/attention-hierarchy.json +21 -12
- package/guidelines/background-layers.json +10 -44
- package/guidelines/brand.json +10 -30
- package/guidelines/colors.json +17 -35
- package/guidelines/containers.json +62 -0
- package/guidelines/developer-overview.json +9 -25
- package/guidelines/faqs.json +9 -96
- package/guidelines/fonts.json +14 -29
- package/guidelines/grays.json +44 -17
- package/guidelines/icon-fundamentals.json +18 -7
- package/guidelines/illustrations.json +111 -0
- package/guidelines/introduction.json +2 -2
- package/guidelines/manifest.json +60 -252
- package/guidelines/motion.json +16 -17
- package/guidelines/object-styles.json +102 -0
- package/guidelines/principles.json +2 -2
- package/guidelines/resources.json +15 -21
- package/guidelines/spacing.json +25 -0
- package/guidelines/states.json +10 -15
- package/guidelines/typography-fundamentals.json +142 -0
- package/guidelines/using-icons.json +44 -33
- package/package.json +2 -2
- package/registry/platform-implementations.json +30 -0
- package/guidelines/ai-resource-guide.json +0 -50
- package/guidelines/applying-the-type-system.json +0 -63
- package/guidelines/bi-directionality.json +0 -57
- package/guidelines/border-width.json +0 -42
- package/guidelines/cognitive.json +0 -197
- package/guidelines/component-spacing.json +0 -49
- package/guidelines/contact-us.json +0 -67
- package/guidelines/content-area-browsing-context.json +0 -65
- package/guidelines/creating-bluelines-browsing-context.json +0 -91
- package/guidelines/design-tokens.json +0 -122
- package/guidelines/drop-shadow.json +0 -56
- package/guidelines/grammar-and-mechanics.json +0 -252
- package/guidelines/header-browsing-context.json +0 -37
- package/guidelines/illustration.json +0 -109
- package/guidelines/in-product-word-list.json +0 -29
- package/guidelines/inclusive-design.json +0 -93
- package/guidelines/inclusive-ux-writing.json +0 -30
- package/guidelines/internationalization.json +0 -87
- package/guidelines/layout-and-structure-containers.json +0 -47
- package/guidelines/layout-spacing.json +0 -39
- package/guidelines/object-styles-overview.json +0 -17
- package/guidelines/rounding.json +0 -61
- package/guidelines/side-navigation-browsing-context.json +0 -71
- package/guidelines/spacing-overview.json +0 -45
- package/guidelines/typography-overview.json +0 -39
- package/guidelines/typography-system.json +0 -168
- package/guidelines/visual-language-containers.json +0 -36
- package/guidelines/voice-and-tone.json +0 -47
- package/guidelines/writing-about-people.json +0 -103
- package/guidelines/writing-for-errors.json +0 -120
- package/guidelines/writing-for-onboarding.json +0 -119
- package/guidelines/writing-for-readability.json +0 -54
- package/guidelines/writing-with-visuals.json +0 -70
- package/registry/platform-extensions/web-components-states.json +0 -58
package/components/slider.json
CHANGED
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
"category": "inputs",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/slider/"
|
|
11
11
|
},
|
|
12
|
+
"implementations": [
|
|
13
|
+
{
|
|
14
|
+
"platform": "web",
|
|
15
|
+
"componentName": "Slider",
|
|
16
|
+
"package": "@react-spectrum/s2"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
12
19
|
"documentBlocks": [
|
|
13
20
|
{
|
|
14
21
|
"type": "purpose",
|
|
@@ -16,77 +23,130 @@
|
|
|
16
23
|
},
|
|
17
24
|
{
|
|
18
25
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
26
|
+
"content": "Sliders select a value along a continuous range. They’re ideal when upper and lower limits are fixed. Use when approximate or fast selection is more important than precision."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "guideline",
|
|
30
|
+
"content": "Labels can be placed either on top or on the side. Top labels are the default and are recommended because they work better with long text, localization, and responsive layouts. Side labels are most useful when vertical space is limited."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "guideline",
|
|
34
|
+
"content": "The value is the number selected within the slider’s range, from the min value to max value."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "guideline",
|
|
38
|
+
"content": "The min and max values can also be customized appropriately for whatever the slider is showing. By default, the min value starts at 0 and the max value is set to 100."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "guideline",
|
|
42
|
+
"content": "More information about a design scenario, to use this option in the component."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "guideline",
|
|
46
|
+
"content": "The step is the increment by which these values increase or decrease. A step value of 1 (the default) lets a user only select whole numbers within the min and max range."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "guideline",
|
|
50
|
+
"content": "Sometimes a value needs to be formatted for localization or for clearer communication such as currencies or percentages. Formatting can involve rounding, mathematical transformations, number formatting, or displaying a prefix or suffix, such as “+/-” or “px.”"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "guideline",
|
|
54
|
+
"content": "Sliders use a linear progression scale by default which means that value is directly correlated to the position of the handle along the track. In some cases, sliders can use a logarithmic (log) progression scale, which is helpful when users need finer control over small values."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "guideline",
|
|
58
|
+
"content": "The width of a slider can be customized appropriately for its context."
|
|
20
59
|
},
|
|
21
60
|
{
|
|
22
61
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
62
|
+
"content": "The track of the slider can have a fill. By default, the fill originates from the left side of the track."
|
|
24
63
|
},
|
|
25
64
|
{
|
|
26
65
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
66
|
+
"content": "If the value represents an offset, the fill start can be set to represent the point of origin. This allows the slider fill to start from inside the track."
|
|
28
67
|
},
|
|
29
68
|
{
|
|
30
69
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
70
|
+
"content": "A gradient can be added to the track of any slider to give more meaning to the range of values. Tracks with a gradient can also have a fill. A gradient track should not be used for choosing a precise color; use a color slider, color area, or color wheel instead."
|
|
32
71
|
},
|
|
33
72
|
{
|
|
34
73
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
74
|
+
"content": "In situations where users should be able to precisely input a value, the value can be editable within a text field."
|
|
36
75
|
},
|
|
37
76
|
{
|
|
38
77
|
"type": "guideline",
|
|
39
|
-
"content": "
|
|
78
|
+
"content": "A disabled slider shows that an input exists but is not available in the current context. This helps maintain layout continuity and signals that the slider may become available later."
|
|
40
79
|
},
|
|
41
80
|
{
|
|
42
81
|
"type": "guideline",
|
|
43
|
-
"content": "
|
|
82
|
+
"content": "A slider can be navigated using a keyboard. The keyboard focus state takes the slider’s visual hover state and adds a blue ring to the slider handle in focus."
|
|
44
83
|
},
|
|
45
84
|
{
|
|
46
85
|
"type": "guideline",
|
|
47
|
-
"content": "
|
|
86
|
+
"content": "A slider representing multiple non-identical values appears as indeterminate, with an en dash (–) in place of the value. The handle position corresponds to the first selected value."
|
|
48
87
|
},
|
|
49
88
|
{
|
|
50
89
|
"type": "guideline",
|
|
51
|
-
"content": "
|
|
90
|
+
"content": "When the label is too long for the available horizontal space, it wraps to form another line."
|
|
52
91
|
},
|
|
53
92
|
{
|
|
54
93
|
"type": "guideline",
|
|
55
|
-
"content": "
|
|
94
|
+
"content": "After a slider has been adjusted, it can be reset to the default value by double-clicking the handle."
|
|
56
95
|
},
|
|
57
96
|
{
|
|
58
97
|
"type": "guideline",
|
|
59
|
-
"content": "
|
|
98
|
+
"content": "Every slider should have a label. A slider without a label is ambiguous and not accessible. Write the label in sentence case."
|
|
60
99
|
},
|
|
61
100
|
{
|
|
62
101
|
"type": "guideline",
|
|
63
|
-
"content": "
|
|
102
|
+
"content": "In addition to dragging the handle, sliders can offer other ways to change the value, known as “hot text.” Users can click the value text and drag up or down, or scroll up or down while hovering over the value text."
|
|
64
103
|
},
|
|
65
104
|
{
|
|
66
105
|
"type": "guideline",
|
|
67
|
-
"content": "
|
|
106
|
+
"content": "Slider values can include a unit when it adds context, such as “%” or “px.” When the value is shown within a text field, the unit disappears on focus."
|
|
68
107
|
},
|
|
69
108
|
{
|
|
70
109
|
"type": "guideline",
|
|
71
|
-
"content": "
|
|
110
|
+
"content": "If the value ranges from negative to positive, prefix the value with a plus (+) or minus (-) sign. When the sign is shown within a text field, it remains visible on focus. When the sign is shown outside the text field, there should be a space between the sign and the numerical value for readability."
|
|
72
111
|
}
|
|
73
112
|
],
|
|
74
113
|
"options": {
|
|
75
|
-
"label": {
|
|
114
|
+
"label": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
76
117
|
"labelPosition": {
|
|
77
118
|
"type": "string",
|
|
78
119
|
"default": "top",
|
|
79
|
-
"values": [
|
|
120
|
+
"values": [
|
|
121
|
+
{
|
|
122
|
+
"value": "top"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"value": "side"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"value": {
|
|
130
|
+
"type": "number",
|
|
131
|
+
"description": "from minValue to maxValue"
|
|
132
|
+
},
|
|
133
|
+
"minValue": {
|
|
134
|
+
"type": "number",
|
|
135
|
+
"default": 0
|
|
136
|
+
},
|
|
137
|
+
"maxValue": {
|
|
138
|
+
"type": "number",
|
|
139
|
+
"default": 100
|
|
80
140
|
},
|
|
81
|
-
"value": { "type": "number", "description": "from minValue to maxValue" },
|
|
82
|
-
"minValue": { "type": "number", "default": 0 },
|
|
83
|
-
"maxValue": { "type": "number", "default": 100 },
|
|
84
141
|
"isRange": {
|
|
85
142
|
"type": "boolean",
|
|
86
143
|
"default": false,
|
|
87
144
|
"description": "If true, the slider will allow selection of a range of values by displaying two handles."
|
|
88
145
|
},
|
|
89
|
-
"step": {
|
|
146
|
+
"step": {
|
|
147
|
+
"type": "number",
|
|
148
|
+
"default": 1
|
|
149
|
+
},
|
|
90
150
|
"valueFormat": {
|
|
91
151
|
"type": "string",
|
|
92
152
|
"description": "This will vary depending on implementation."
|
|
@@ -94,36 +154,92 @@
|
|
|
94
154
|
"progressionScale": {
|
|
95
155
|
"type": "string",
|
|
96
156
|
"default": "linear",
|
|
97
|
-
"values": [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
157
|
+
"values": [
|
|
158
|
+
{
|
|
159
|
+
"value": "linear"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "log"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"width": {
|
|
167
|
+
"type": "number"
|
|
168
|
+
},
|
|
169
|
+
"hasFill": {
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"default": false
|
|
172
|
+
},
|
|
173
|
+
"fillStart": {
|
|
174
|
+
"type": "number",
|
|
175
|
+
"default": 0
|
|
176
|
+
},
|
|
177
|
+
"hasGradient": {
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"default": false
|
|
180
|
+
},
|
|
181
|
+
"isEditable": {
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"default": false
|
|
184
|
+
},
|
|
185
|
+
"isDisabled": {
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"default": false
|
|
188
|
+
}
|
|
105
189
|
},
|
|
106
190
|
"anatomy": [
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
191
|
+
{
|
|
192
|
+
"name": "text-field",
|
|
193
|
+
"description": "Editable numeric value field."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "handle"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "track"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "control"
|
|
203
|
+
}
|
|
111
204
|
],
|
|
112
205
|
"states": [
|
|
113
|
-
{
|
|
114
|
-
|
|
115
|
-
|
|
206
|
+
{
|
|
207
|
+
"name": "hover",
|
|
208
|
+
"trigger": "interaction"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "down",
|
|
212
|
+
"trigger": "interaction"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "keyboard-focus",
|
|
216
|
+
"trigger": "interaction"
|
|
217
|
+
}
|
|
116
218
|
],
|
|
117
|
-
"lifecycle": {
|
|
219
|
+
"lifecycle": {
|
|
220
|
+
"introduced": "1.0.0-draft"
|
|
221
|
+
},
|
|
118
222
|
"accessibility": {
|
|
119
223
|
"role": "slider",
|
|
120
224
|
"intents": ["choose"],
|
|
121
225
|
"focusable": true,
|
|
122
226
|
"keyboardIntents": ["increment", "decrement"],
|
|
123
227
|
"wcag": [
|
|
124
|
-
{
|
|
125
|
-
|
|
126
|
-
|
|
228
|
+
{
|
|
229
|
+
"criterion": "1.3.1",
|
|
230
|
+
"level": "A",
|
|
231
|
+
"title": "Info and Relationships"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"criterion": "2.1.1",
|
|
235
|
+
"level": "A",
|
|
236
|
+
"title": "Keyboard"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"criterion": "4.1.2",
|
|
240
|
+
"level": "A",
|
|
241
|
+
"title": "Name, Role, Value"
|
|
242
|
+
}
|
|
127
243
|
]
|
|
128
244
|
}
|
|
129
245
|
}
|
|
@@ -16,33 +16,80 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
19
|
+
"content": "Standard dialogs are containers that appear over the interface to present contextual information, tasks, or workflows. They’re centered on the screen and used for moderately complex actions that require focused attention. Interactions outside the dialog are blocked until it's dismissed or completed."
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "By default, an alert dialog that includes a button to cancel or go back will be labeled “Cancel.”"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
27
|
+
"content": "Standard 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."
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
31
|
+
"content": "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 moving forward or dismissing the dialog."
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"type": "
|
|
35
|
-
"content": "
|
|
36
|
-
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "The presence of a close button determines whether a dialog is dismissible."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "In both cases, pressing the Escape key should close the dialog and return the page to its previous state. This action should behave the same as clicking a close or cancel button."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "Standard dialogs are available in three widths:"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "Dialogs automatically scale down to 90% of the screen width on smaller viewports. Height is flexible and adjusts to fit the content."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "Standard dialogs can include a full-bleed cover image at the top. Dialogs with a cover image should not be dismissible and rely on buttons in the footer area to close the dialog."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "guideline",
|
|
55
|
+
"content": "Standard dialogs can include an optional description. Use the description to briefly provide additional context or information that helps users make an informed decision based on the available actions."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "guideline",
|
|
59
|
+
"content": "All standard 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. If a cover image is shown, the title will appear below it."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "guideline",
|
|
63
|
+
"content": "Standard dialogs appear in the center of the screen."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "guideline",
|
|
67
|
+
"content": "When the title and description text are too long for the available horizontal space, they wrap to form another line."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "guideline",
|
|
71
|
+
"content": "Standard dialogs can include up to three buttons. When horizontal space is limited, the buttons stack vertically. Buttons should be ordered by ascending importance, with the most critical action placed at the end or bottom of the stack."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "guideline",
|
|
75
|
+
"content": "Avoid using a dismissible dialog when the user needs to confirm an action or make a decision. Instead, use a dismissible dialog for information that is optional or nice to know—content that can be quickly dismissed without requiring user action."
|
|
37
76
|
},
|
|
38
77
|
{
|
|
39
78
|
"type": "guideline",
|
|
40
|
-
"content": "
|
|
79
|
+
"content": "A dismissible dialog should not include buttons in the footer. Instead, the dialog is dismissed by clicking the close button or the background overlay."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "guideline",
|
|
83
|
+
"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.”"
|
|
41
84
|
}
|
|
42
85
|
],
|
|
43
86
|
"options": {
|
|
44
|
-
"title": {
|
|
45
|
-
|
|
87
|
+
"title": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"description": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
46
93
|
"hideImage": {
|
|
47
94
|
"type": "boolean",
|
|
48
95
|
"default": false,
|
|
@@ -51,14 +98,29 @@
|
|
|
51
98
|
"size": {
|
|
52
99
|
"type": "string",
|
|
53
100
|
"default": "m",
|
|
54
|
-
"values": [
|
|
101
|
+
"values": [
|
|
102
|
+
{
|
|
103
|
+
"value": "s"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "m"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": "l"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"hideCloseButton": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": false
|
|
55
116
|
},
|
|
56
|
-
"hideCloseButton": { "type": "boolean", "default": false },
|
|
57
117
|
"footerContent": {
|
|
58
118
|
"type": "string",
|
|
59
119
|
"description": "Optional footer content to display in the dialog footer like a checkbox."
|
|
60
120
|
},
|
|
61
|
-
"primaryActionLabel": {
|
|
121
|
+
"primaryActionLabel": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
62
124
|
"secondaryActionLabel": {
|
|
63
125
|
"type": "string",
|
|
64
126
|
"description": "If undefined, this button does not appear."
|
|
@@ -69,15 +131,25 @@
|
|
|
69
131
|
"description": "If undefined, this button does not appear."
|
|
70
132
|
}
|
|
71
133
|
},
|
|
72
|
-
"lifecycle": {
|
|
134
|
+
"lifecycle": {
|
|
135
|
+
"introduced": "1.0.0-draft"
|
|
136
|
+
},
|
|
73
137
|
"accessibility": {
|
|
74
138
|
"role": "dialog",
|
|
75
139
|
"intents": ["dismiss"],
|
|
76
140
|
"focusable": false,
|
|
77
141
|
"keyboardIntents": ["dismiss"],
|
|
78
142
|
"wcag": [
|
|
79
|
-
{
|
|
80
|
-
|
|
143
|
+
{
|
|
144
|
+
"criterion": "2.4.3",
|
|
145
|
+
"level": "A",
|
|
146
|
+
"title": "Focus Order"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"criterion": "4.1.2",
|
|
150
|
+
"level": "A",
|
|
151
|
+
"title": "Name, Role, Value"
|
|
152
|
+
}
|
|
81
153
|
]
|
|
82
154
|
}
|
|
83
155
|
}
|