@thecb/components 8.4.11-beta.10 → 8.4.11-beta.11
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/package.json
CHANGED
|
@@ -288,9 +288,9 @@ const Dropdown = ({
|
|
|
288
288
|
as="input"
|
|
289
289
|
aria-multiline="false"
|
|
290
290
|
aria-autocomplete="list"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
aria-activedescendant="focused_option"
|
|
292
|
+
aria-owns={`${ariaLabelledby}_listbox`}
|
|
293
|
+
aria-controls={`${ariaLabelledby}_listbox`}
|
|
294
294
|
aria-haspopup="listbox"
|
|
295
295
|
aria-labelledby={ariaLabelledby}
|
|
296
296
|
aria-describedby={ariaDescribedby}
|
|
@@ -315,7 +315,7 @@ const Dropdown = ({
|
|
|
315
315
|
minHeight="48px"
|
|
316
316
|
minWidth="100%"
|
|
317
317
|
name={autocompleteValue}
|
|
318
|
-
|
|
318
|
+
aria-expanded={isOpen}
|
|
319
319
|
onChange={e => {
|
|
320
320
|
// support autofill and copy/paste
|
|
321
321
|
if (e.target.value !== inputValue) {
|
|
@@ -326,6 +326,7 @@ const Dropdown = ({
|
|
|
326
326
|
padding="12px"
|
|
327
327
|
placeholder={getSelection()}
|
|
328
328
|
themeValues={themeValues}
|
|
329
|
+
role="combobox"
|
|
329
330
|
title={hasTitles ? getSelection() : null}
|
|
330
331
|
type="text"
|
|
331
332
|
tabIndex={0}
|
|
@@ -390,14 +391,14 @@ const Dropdown = ({
|
|
|
390
391
|
: MINESHAFT_GREY
|
|
391
392
|
}
|
|
392
393
|
extraStyles={`padding-left: 16px;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
394
|
+
cursor: ${
|
|
395
|
+
disabledValues.includes(choice.value)
|
|
396
|
+
? "default"
|
|
397
|
+
: "pointer"
|
|
398
|
+
};
|
|
399
|
+
white-space: nowrap;
|
|
400
|
+
overflow: hidden;
|
|
401
|
+
text-overflow: ellipsis;`}
|
|
401
402
|
>
|
|
402
403
|
{choice.text}
|
|
403
404
|
</Text>
|