From be3a7983f014dd0903aaa0d703014b72c67c1428 Mon Sep 17 00:00:00 2001 From: Alessandra Davila Date: Fri, 10 Jan 2020 11:08:08 -0600 Subject: [PATCH] fix(multi-select): fix DAP violations (#4991) * fix(multi-select): add arialabeledby to menu * fix(list-box): remove role from listbox * chore: remove console log * chore: update snapshots Co-authored-by: TJ Egan --- .../components/Dropdown/__snapshots__/Dropdown-test.js.snap | 6 ------ packages/react/src/components/ListBox/ListBox.js | 2 -- .../ListBox/__tests__/__snapshots__/ListBox-test.js.snap | 4 ---- packages/react/src/components/MultiSelect/MultiSelect.js | 3 +-- .../__snapshots__/FilterableMultiSelect-test.js.snap | 2 -- .../__tests__/__snapshots__/MultiSelect-test.js.snap | 2 -- 6 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/react/src/components/Dropdown/__snapshots__/Dropdown-test.js.snap b/packages/react/src/components/Dropdown/__snapshots__/Dropdown-test.js.snap index f7149c93ed39..abd8bb38cc44 100644 --- a/packages/react/src/components/Dropdown/__snapshots__/Dropdown-test.js.snap +++ b/packages/react/src/components/Dropdown/__snapshots__/Dropdown-test.js.snap @@ -78,8 +78,6 @@ exports[`Dropdown should render 1`] = ` id="test-dropdown" onClick={[Function]} onKeyDown={[Function]} - role="listbox" - tabIndex="-1" >
{isOpen && ( - + {sortItems(items, { selectedItems: { top: selectedItems, diff --git a/packages/react/src/components/MultiSelect/__tests__/__snapshots__/FilterableMultiSelect-test.js.snap b/packages/react/src/components/MultiSelect/__tests__/__snapshots__/FilterableMultiSelect-test.js.snap index 6daa65520edd..1771196cfcb0 100644 --- a/packages/react/src/components/MultiSelect/__tests__/__snapshots__/FilterableMultiSelect-test.js.snap +++ b/packages/react/src/components/MultiSelect/__tests__/__snapshots__/FilterableMultiSelect-test.js.snap @@ -90,8 +90,6 @@ exports[`MultiSelect.Filterable should render 1`] = ` className="bx--multi-select bx--combo-box bx--multi-select--filterable bx--list-box" onClick={[Function]} onKeyDown={[Function]} - role="listbox" - tabIndex="-1" >