Skip to content

Commit

Permalink
fix(multiselect): remove aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jan 21, 2020
1 parent 806d162 commit 5691507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/react/src/components/ListBox/ListBoxMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const ListBoxMenu = ({ children, id, ...rest }) => (
id={`${id}__menu`}
className={`${prefix}--list-box__menu`}
role="listbox"
aria-multiselectable="true"
{...rest}>
{children}
</div>
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/components/MultiSelect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ export default class MultiSelect extends React.Component {
/>
</ListBox.Field>
{isOpen && (
<ListBox.Menu aria-labelledby={`${labelId}`} id={id}>
<ListBox.Menu
aria-multiselectable="true"
aria-labelledby={`${labelId}`}
id={id}>
{sortItems(items, {
selectedItems: {
top: selectedItems,
Expand All @@ -382,7 +385,6 @@ export default class MultiSelect extends React.Component {
tabIndex={-1}
isHighlighted={highlightedIndex === index}
title={itemText}
aria-label={itemText}
{...itemProps}>
<div className={`${prefix}--checkbox-wrapper`}>
<span
Expand Down

0 comments on commit 5691507

Please sign in to comment.