@adobe/spectrum-design-data 3.2.3 → 3.3.0-beta.1
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 +15 -54
- package/components/action-bar.json +9 -23
- package/components/action-button.json +39 -79
- package/components/action-group.json +18 -129
- package/components/alert-banner.json +8 -27
- package/components/alert-dialog.json +34 -48
- package/components/avatar-group.json +9 -28
- package/components/avatar.json +29 -92
- package/components/badge.json +56 -150
- package/components/breadcrumbs.json +26 -100
- package/components/button-group.json +19 -50
- package/components/button.json +61 -92
- package/components/calendar.json +8 -67
- package/components/cards.json +31 -46
- package/components/checkbox-group.json +16 -78
- package/components/checkbox.json +27 -90
- package/components/close-button.json +20 -62
- package/components/coach-indicator.json +14 -44
- package/components/coach-mark.json +8 -26
- package/components/color-area.json +20 -93
- package/components/color-handle.json +25 -38
- package/components/color-loupe.json +2 -6
- package/components/color-slider.json +26 -122
- package/components/color-wheel.json +17 -84
- package/components/combo-box.json +50 -182
- package/components/contextual-help.json +80 -119
- package/components/date-picker.json +24 -120
- package/components/divider.json +12 -25
- package/components/drop-zone.json +18 -30
- package/components/field-label.json +21 -62
- package/components/help-text.json +16 -53
- package/components/illustrated-message.json +21 -72
- package/components/in-line-alert.json +13 -53
- package/components/link.json +24 -56
- package/components/list-view.json +15 -73
- package/components/menu.json +45 -174
- package/components/meter.json +24 -65
- package/components/number-field.json +34 -168
- package/components/picker.json +42 -181
- package/components/popover.json +37 -113
- package/components/progress-bar.json +23 -95
- package/components/progress-circle.json +12 -42
- package/components/radio-button.json +14 -67
- package/components/radio-group.json +28 -125
- package/components/rating.json +9 -38
- package/components/search-field.json +34 -119
- package/components/segmented-control.json +21 -63
- package/components/select-box.json +29 -96
- package/components/side-navigation.json +28 -69
- package/components/slider.json +39 -148
- package/components/standard-dialog.json +16 -88
- package/components/status-light.json +41 -123
- package/components/steplist.json +5 -24
- package/components/swatch-group.json +19 -55
- package/components/swatch.json +24 -79
- package/components/switch.json +31 -72
- package/components/table.json +26 -73
- package/components/tabs.json +22 -39
- package/components/tag-field.json +14 -60
- package/components/tag-group.json +16 -49
- package/components/tag.json +21 -71
- package/components/takeover-dialog.json +10 -61
- package/components/text-area.json +49 -198
- package/components/text-field.json +42 -163
- package/components/thumbnail.json +22 -63
- package/components/toast.json +29 -50
- package/components/tooltip.json +27 -74
- package/components/tree-view.json +45 -140
- package/guidelines/ai-resource-guide.json +50 -0
- package/guidelines/app-frame-overview.json +44 -50
- package/guidelines/applying-the-type-system.json +63 -0
- package/guidelines/attention-hierarchy.json +12 -21
- package/guidelines/background-layers.json +44 -10
- package/guidelines/bi-directionality.json +57 -0
- package/guidelines/border-width.json +42 -0
- package/guidelines/brand.json +30 -10
- package/guidelines/cognitive.json +197 -0
- package/guidelines/colors.json +35 -17
- package/guidelines/component-spacing.json +49 -0
- package/guidelines/contact-us.json +67 -0
- package/guidelines/content-area-browsing-context.json +65 -0
- package/guidelines/creating-bluelines-browsing-context.json +91 -0
- package/guidelines/design-tokens.json +122 -0
- package/guidelines/developer-overview.json +25 -9
- package/guidelines/drop-shadow.json +56 -0
- package/guidelines/faqs.json +96 -9
- package/guidelines/fonts.json +29 -14
- package/guidelines/grammar-and-mechanics.json +252 -0
- package/guidelines/grays.json +17 -44
- package/guidelines/header-browsing-context.json +37 -0
- package/guidelines/icon-fundamentals.json +7 -18
- package/guidelines/illustration.json +109 -0
- package/guidelines/in-product-word-list.json +29 -0
- package/guidelines/inclusive-design.json +93 -0
- package/guidelines/inclusive-ux-writing.json +30 -0
- package/guidelines/internationalization.json +87 -0
- package/guidelines/introduction.json +2 -2
- package/guidelines/layout-and-structure-containers.json +47 -0
- package/guidelines/layout-spacing.json +39 -0
- package/guidelines/manifest.json +252 -60
- package/guidelines/motion.json +17 -16
- package/guidelines/object-styles-overview.json +17 -0
- package/guidelines/principles.json +2 -2
- package/guidelines/resources.json +21 -15
- package/guidelines/rounding.json +61 -0
- package/guidelines/side-navigation-browsing-context.json +71 -0
- package/guidelines/spacing-overview.json +45 -0
- package/guidelines/states.json +15 -10
- package/guidelines/typography-overview.json +39 -0
- package/guidelines/typography-system.json +168 -0
- package/guidelines/using-icons.json +33 -44
- package/guidelines/visual-language-containers.json +36 -0
- package/guidelines/voice-and-tone.json +47 -0
- package/guidelines/writing-about-people.json +103 -0
- package/guidelines/writing-for-errors.json +120 -0
- package/guidelines/writing-for-onboarding.json +119 -0
- package/guidelines/writing-for-readability.json +54 -0
- package/guidelines/writing-with-visuals.json +70 -0
- package/package.json +1 -1
- package/guidelines/app-frame-content-area.json +0 -81
- package/guidelines/app-frame-creating-bluelines.json +0 -58
- package/guidelines/app-frame-header.json +0 -72
- package/guidelines/app-frame-side-navigation.json +0 -138
- package/guidelines/containers.json +0 -62
- package/guidelines/illustrations.json +0 -111
- package/guidelines/object-styles.json +0 -102
- package/guidelines/spacing.json +0 -25
- package/guidelines/typography-fundamentals.json +0 -142
|
@@ -16,253 +16,138 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
19
|
+
"content": "Minimum width.\n\nThe minimum width for a combo box is combo-box-minimum-width-multiplier (2.5× the height of the field button for standard style). This minimum width guarantees that small combo boxes are readable and easy to target on touch devices."
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "Text overflow.\n\nWhen the field label and menu text are too long for the available horizontal space, they wrap to form another line. The field text itself truncates at the end, but the text can be shown in full in the menu."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
27
|
+
"content": "Help text overflow.\n\nWhen the help text is too long for the available horizontal space, it wraps to form another line."
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
31
|
+
"content": "Menu height.\n\nThe combo box menu can be as tall as necessary to show as many options as possible in the available space. There is no maximum height."
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
35
|
+
"content": "Combo box, picker, or radio buttons?\n\nThe text input functionality of the combo box is meant to make large lists easier to search. If you have fewer than 6 items, use radio buttons. If you have more than 6 items, consider whether your list of selections is complex enough to merit searching and filtering. If it's not complex enough for a combo box, you can use a picker."
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"type": "guideline",
|
|
39
|
-
"content": "
|
|
39
|
+
"content": "Suppressing the popover.\n\nIt's okay to suppress the popover when the combo box contains entries the user is familiar with, and when autocomplete is enabled. A suppressed popover can still be opened when the field button containing the chevron is clicked."
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"type": "guideline",
|
|
43
|
-
"content": "
|
|
43
|
+
"content": "Immediate popover launch.\n\nLaunch the popover immediately if your user is highly unfamiliar with the content in the combo box, or if the data is especially complex."
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"type": "guideline",
|
|
47
|
-
"content": "
|
|
47
|
+
"content": "Delayed popover launch.\n\nLaunch the popover on text change if your user can get started typing without seeing a long list of options."
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"type": "guideline",
|
|
51
|
-
"content": "
|
|
51
|
+
"content": "Saving suggestions.\n\nWhen a suggestion is appended to the end of typed text, it remains the selected value when focus leaves the field. This guards against the scenario when a user sees a word completed in a field, continues to another form component, and the failure to commit changes erases the suggestion. When autocomplete is disabled, best matches get a hover style in the popover, but don't get saved as a value unless they're clicked on or \"Enter\" is pressed."
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"type": "guideline",
|
|
55
|
-
"content": "
|
|
55
|
+
"content": "Include a label.\n\nEvery combo box should have a label. A combo box without a label is ambiguous and not accessible. In rare cases where a label could be absent, make sure to have the design reviewed and approved by an accessibility expert."
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"type": "guideline",
|
|
59
|
-
"content": "
|
|
59
|
+
"content": "Keep menu items concise.\n\nKeep menu items short and concise. Long menu items that cause text to wrap to multiple lines are discouraged. If text wrapping becomes a frequent concern, consider revising the text or use alternative UI patterns that will give your content more space."
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"type": "guideline",
|
|
63
|
-
"content": "
|
|
63
|
+
"content": "Truncation.\n\nChoose a width for your combo boxes that is likely to accommodate the majority of selections available within it. When a combo box is in focus and the typed input exceeds the width of the field, push the leftmost text out of sight while allowing text to continue to be entered towards the chevron. When a combo box is deselected, truncate the selected entry with ellipsis before it collides with the chevron button."
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"type": "guideline",
|
|
67
|
-
"content": "
|
|
67
|
+
"content": "Follow capitalization rules.\n\nField labels, placeholder text, and menu items should be in sentence case."
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"type": "guideline",
|
|
71
|
-
"content": "
|
|
71
|
+
"content": "Marking required vs. optional combo boxes in forms.\n\nWhen labeling combo boxes in a form, only mark the minority type—either required or optional—to reduce visual clutter: If most combo boxes are optional, mark only the required ones (e.g., add an asterisk or \"(required)\"). If most combo boxes are required, mark only the optional ones (e.g., append \"(optional)\" to their labels). Important: Never use an asterisk to indicate an optional combo box."
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"type": "guideline",
|
|
75
|
-
"content": "
|
|
75
|
+
"content": "Use help text to show hints, formatting, and requirements.\n\nThe description in the help text is flexible and encompasses a range of guidance. Sometimes this guidance is about what to input, and sometime it's about how to input. This includes information such as: An overall description of the input field Hints for what kind of information needs to be input Specific formatting examples or requirements The help text's message should not simply restate the same information in the label in order to prompt someone to interact with it. Don't add help text if it isn't actually relevant or meaningful to a user in order to try to maintain layout continuity with other inputs that require help text."
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"type": "
|
|
79
|
-
"content": "
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
"type": "guideline",
|
|
83
|
-
"content": "When the field label and menu text are too long for the available horizontal space, they wrap to form another line. The field text itself truncates at the end, but the text can be shown in full in the menu."
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"type": "guideline",
|
|
87
|
-
"content": "When the help text is too long for the available horizontal space, it wraps to form another line."
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "guideline",
|
|
91
|
-
"content": "The combo box menu can be as tall as necessary to show as many options as possible in the available space. There is no maximum height."
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "guideline",
|
|
95
|
-
"content": "The text input functionality of the combo box is meant to make large lists easier to search. If you have fewer than 6 items, use radio buttons. If you have more than 6 items, consider whether your list of selections is complex enough to merit searching and filtering. If it's not complex enough for a combo box, you can use a picker."
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"type": "guideline",
|
|
99
|
-
"content": "It’s okay to suppress the popover when the combo box contains entries the user is familiar with, and when autocomplete is enabled. A suppressed popover can still be opened when the field button containing the chevron is clicked."
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"type": "guideline",
|
|
103
|
-
"content": "Launch the popover immediately if your user is highly unfamiliar with the content in the combo box, or if the data is especially complex."
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"type": "guideline",
|
|
107
|
-
"content": "Launch the popover on text change if your user can get started typing without seeing a long list of options."
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"type": "guideline",
|
|
111
|
-
"content": "When a suggestion is appended to the end of typed text, it remains the selected value when focus leaves the field. This guards against the scenario when a user sees a word completed in a field, continues to another form component, and the failure to commit changes erases the suggestion."
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"type": "guideline",
|
|
115
|
-
"content": "When autocomplete is disabled, best matches get a hover style in the popover, but don’t get saved as a value unless they’re clicked on or \"Enter\" is pressed."
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "guideline",
|
|
119
|
-
"content": "Every combo box should have a label. A combo box without a label is ambiguous and not accessible. In rare cases where a label could be absent, make sure to have the design reviewed and approved by an accessibility expert."
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"type": "guideline",
|
|
123
|
-
"content": "Keep menu items short and concise. Long menu items that cause text to wrap to multiple lines are discouraged. If text wrapping becomes a frequent concern, consider revising the text or use alternative UI patterns that will give your content more space."
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"type": "guideline",
|
|
127
|
-
"content": "Choose a width for your combo boxes that is likely to accommodate the majority of selections available within it. When a combo box is in focus and the typed input exceeds the width of the field, push the leftmost text out of sight while allowing text to continue to be entered towards the chevron. When a combo box is deselected, truncate the selected entry with ellipsis before it collides with the chevron button."
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"type": "guideline",
|
|
131
|
-
"content": "Field labels, placeholder text, and menu items should be in sentence case."
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "guideline",
|
|
135
|
-
"content": "When labeling combo boxes in a form, only mark the minority type—either required or optional—to reduce visual clutter:"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "guideline",
|
|
139
|
-
"content": "Important: Never use an asterisk to indicate an optional combo box."
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"type": "guideline",
|
|
143
|
-
"content": "The help text’s message should not simply restate the same information in the label in order to prompt someone to interact with it. Don’t add help text if it isn’t actually relevant or meaningful to a user in order to try to maintain layout continuity with other inputs that require help text."
|
|
78
|
+
"type": "do-dont",
|
|
79
|
+
"content": "Don't use placeholder text",
|
|
80
|
+
"dont": "Putting instructions for how to complete an input, requirements, or any other essential information into placeholder text is not accessible. Once a value is entered, placeholder text is no longer viewable; if someone is using an automatic form filler, they will never get the information in the placeholder text. Instead of placeholder text, use the help text description to convey requirements or to show any formatting examples that would help user comprehension. If there's placeholder text and help text at the same time, it becomes redundant and distracting, especially if they're communicating the same thing."
|
|
144
81
|
},
|
|
145
82
|
{
|
|
146
83
|
"type": "guideline",
|
|
147
|
-
"content": "
|
|
84
|
+
"content": "Switch help text with error text.\n\nThe help text area also displays an error message. When a combo box already includes help text and an error is triggered, the help text is replaced with error text. Once the error is resolved, the help text description reappears below the field. Since one gets replaced by the other, the language of the help text and error text need to work together to convey the same messaging. Help text explains the requirement or adds supplementary context for how to successfully complete the input. Error text tells a user how to fix the error by re-stating the input requirements or describing the necessary interaction. Make sure that the help text and the error text include the same essential information so that it isn't lost if one replaces the other like minimum requirements."
|
|
148
85
|
},
|
|
149
86
|
{
|
|
150
87
|
"type": "guideline",
|
|
151
|
-
"content": "
|
|
88
|
+
"content": "Write error text that shows a solution.\n\nWrite error messaging in a human-centered way by guiding a user and showing them a solution — don't simply state what's wrong and then leave them guessing as to how to resolve it. Ambiguous error messages can be frustrating and even shame-inducing for users. Also, keep in mind that something that a system may deem an error may not actually be perceived as an error to a user. Error text should be written in 1-2 short, complete sentences and in a clear and straightforward way. End sentences with a period, and never with an exclamation point. For combo boxes, the nature of the error is often related to something that needs to be fixed for in-line validation, so a helpful tone is most appropriate. For example, if someone were to miss filling out a combo box that asks for them to choose a topic, write the error text like you're offering a hint or a tip to help guide them to understand what needs to go in the missing field: \"Choose at least one topic."
|
|
152
89
|
},
|
|
153
90
|
{
|
|
154
91
|
"type": "guideline",
|
|
155
|
-
"content": "
|
|
92
|
+
"content": "RTL.\n\nFor RTL (right-to-left) languages, the layout of a combo box is mirrored. The label is right-aligned and various decorations (e.g., character count, validation icon, error icon) are left-aligned. Make sure to consider that some types of content (e.g., email addresses) are not translated."
|
|
156
93
|
},
|
|
157
94
|
{
|
|
158
95
|
"type": "guideline",
|
|
159
|
-
"content": "
|
|
96
|
+
"content": "Keyboard interactions.\n\nKey Interaction TypingInitiates autocomplete or popover (unless suppressed).Down ArrowIf the popover is unsuppressed and not already open, the down arrow opens the popover menu.Up or Down ArrowsMove through selection of options in popover or autocomplete.EscIf the popover is open, close the popover.EnterAccept highlighted suggestion.TabCommit current value and move focus.Alt + Down Arrow (optional)Open popup without moving focus.Alt + Up Arrow (optional)Close popup and return to input."
|
|
160
97
|
},
|
|
161
98
|
{
|
|
162
99
|
"type": "guideline",
|
|
163
|
-
"content": "
|
|
100
|
+
"content": "Cursor guidelines.\n\nCursor Description TextUse text cursor over editable fields in all states.PointerAny interactive control that is part of the field (e.g., clear/reveal/help icon) uses the pointer cursor."
|
|
164
101
|
},
|
|
165
102
|
{
|
|
166
103
|
"type": "guideline",
|
|
167
|
-
"content": "
|
|
104
|
+
"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 ANon-text elements, such as icons paired with a combo box (validation icons, clear-input icons), must provide a text alternative. All combo boxes need an accessible name (via a visible label, title, aria-label, or associated text) so screen readers can announce their purpose.Info and relationships, Identify purpose 1.3.1, 1.3.6 A, AAACombo boxes should be understandable by assistive technologies. The label, help text, error message, and required state must be programmatically associated with the field using semantic HTML or ARIA.Contrast 1.4.3 AAThe visual presentation of text has a contrast ratio of at least 4.5:1.Resize text 1.4.4 AACombo boxes can be resized up to 200% without loss of content or functionality and without assistive technology.Visual presentation 1.4.8 AAAThe width of text blocks is no more than 80 characters (40 for CJK languages), and text is never justified.Non-text contrast 1.4.11 AAThe visual presentation of illustrations, icons, and component states have a contrast ratio of at least 3:1. Not applicable for empty fields.Text spacing 1.4.12 AALine height of text is at least 1.5x the font size. 2. Operable RequirementCriterionLevel Compliance Keyboard 2.1.1, 2.1.3 A, AAAAll functionality of the component is operable through a keyboard without specific timing for keystrokes.Keyboard traps 2.1.2 AFocus 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, AAAThere is no flashing content or unnecessary motion or animation in this component.Focus order 2.4.3 ANavigation sequences receive focus in an order that preserves meaning and operability.Focus visible 2.4.7 AAKeyboard states use an indicator that is visible with at least 3:1 contrast."
|
|
168
105
|
}
|
|
169
106
|
],
|
|
170
107
|
"options": {
|
|
171
|
-
"label": {
|
|
172
|
-
"type": "string"
|
|
173
|
-
},
|
|
108
|
+
"label": { "type": "string" },
|
|
174
109
|
"labelPosition": {
|
|
175
110
|
"type": "string",
|
|
176
111
|
"default": "top",
|
|
177
112
|
"values": [
|
|
178
|
-
{
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
{
|
|
182
|
-
"value": "side"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"value": "in line"
|
|
186
|
-
}
|
|
113
|
+
{ "value": "top" },
|
|
114
|
+
{ "value": "side" },
|
|
115
|
+
{ "value": "in line" }
|
|
187
116
|
]
|
|
188
117
|
},
|
|
189
|
-
"value": {
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
"width": {
|
|
193
|
-
"type": "number"
|
|
194
|
-
},
|
|
118
|
+
"value": { "type": "string" },
|
|
119
|
+
"width": { "type": "number" },
|
|
195
120
|
"size": {
|
|
196
121
|
"type": "string",
|
|
197
122
|
"default": "m",
|
|
198
123
|
"values": [
|
|
199
|
-
{
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"value": "m"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"value": "l"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"value": "xl"
|
|
210
|
-
}
|
|
124
|
+
{ "value": "s" },
|
|
125
|
+
{ "value": "m" },
|
|
126
|
+
{ "value": "l" },
|
|
127
|
+
{ "value": "xl" }
|
|
211
128
|
]
|
|
212
129
|
},
|
|
213
|
-
"isRequired": {
|
|
214
|
-
"type": "boolean",
|
|
215
|
-
"default": false
|
|
216
|
-
},
|
|
130
|
+
"isRequired": { "type": "boolean", "default": false },
|
|
217
131
|
"necessityIndicator": {
|
|
218
132
|
"type": "string",
|
|
219
133
|
"default": "icon",
|
|
220
|
-
"values": [
|
|
221
|
-
{
|
|
222
|
-
"value": "text"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"value": "icon"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
"hasAutocomplete": {
|
|
230
|
-
"type": "boolean",
|
|
231
|
-
"default": false
|
|
134
|
+
"values": [{ "value": "text" }, { "value": "icon" }]
|
|
232
135
|
},
|
|
136
|
+
"hasAutocomplete": { "type": "boolean", "default": false },
|
|
233
137
|
"menuTrigger": {
|
|
234
138
|
"type": "string",
|
|
235
139
|
"default": "input",
|
|
236
140
|
"values": [
|
|
237
|
-
{
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
{
|
|
241
|
-
"value": "focus"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"value": "manual"
|
|
245
|
-
}
|
|
141
|
+
{ "value": "input" },
|
|
142
|
+
{ "value": "focus" },
|
|
143
|
+
{ "value": "manual" }
|
|
246
144
|
]
|
|
247
145
|
},
|
|
248
|
-
"isError": {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
"
|
|
253
|
-
"type": "boolean",
|
|
254
|
-
"default": false
|
|
255
|
-
},
|
|
256
|
-
"isReadOnly": {
|
|
257
|
-
"type": "boolean",
|
|
258
|
-
"default": false
|
|
259
|
-
},
|
|
260
|
-
"description": {
|
|
261
|
-
"type": "string"
|
|
262
|
-
},
|
|
263
|
-
"errorMessage": {
|
|
264
|
-
"type": "string"
|
|
265
|
-
}
|
|
146
|
+
"isError": { "type": "boolean", "default": false },
|
|
147
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
148
|
+
"isReadOnly": { "type": "boolean", "default": false },
|
|
149
|
+
"description": { "type": "string" },
|
|
150
|
+
"errorMessage": { "type": "string" }
|
|
266
151
|
},
|
|
267
152
|
"states": [
|
|
268
153
|
{
|
|
@@ -285,35 +170,18 @@
|
|
|
285
170
|
"trigger": "prop",
|
|
286
171
|
"description": "Focus without hover, when the field is focused but the pointer is not over it."
|
|
287
172
|
},
|
|
288
|
-
{
|
|
289
|
-
"name": "keyboard-focus",
|
|
290
|
-
"trigger": "interaction"
|
|
291
|
-
}
|
|
173
|
+
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
292
174
|
],
|
|
293
|
-
"lifecycle": {
|
|
294
|
-
"introduced": "1.0.0-draft"
|
|
295
|
-
},
|
|
175
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
296
176
|
"accessibility": {
|
|
297
177
|
"role": "combobox",
|
|
298
178
|
"intents": ["input", "select", "expand"],
|
|
299
179
|
"focusable": true,
|
|
300
180
|
"keyboardIntents": ["expand", "collapse", "navigate-options"],
|
|
301
181
|
"wcag": [
|
|
302
|
-
{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
"title": "Info and Relationships"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"criterion": "2.1.1",
|
|
309
|
-
"level": "A",
|
|
310
|
-
"title": "Keyboard"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"criterion": "4.1.2",
|
|
314
|
-
"level": "A",
|
|
315
|
-
"title": "Name, Role, Value"
|
|
316
|
-
}
|
|
182
|
+
{ "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
|
|
183
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
184
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
317
185
|
]
|
|
318
186
|
}
|
|
319
187
|
}
|