Skip to content

Commit

Permalink
fix(multiselect): add aria-label to parent element
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jan 17, 2020
1 parent 4f021f6 commit 41355a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/components/MultiSelect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,14 @@ export default class MultiSelect extends React.Component {
<ListBox.MenuItem
key={itemProps.id}
isActive={isChecked}
role="option"
aria-selected={isChecked}
tabIndex={-1}
name={itemText}
isHighlighted={highlightedIndex === index}
role="group"
aria-label={itemProps.id}
aria-label={itemText}
{...itemProps}>
<div
role="group"
aria-label={`${itemProps.id}__checkbox`}
className={`${prefix}--checkbox-wrapper`}>
<div className={`${prefix}--checkbox-wrapper`}>
<span
title={useTitleInItem ? itemText : null}
className={`${prefix}--checkbox-label`}
Expand Down

0 comments on commit 41355a5

Please sign in to comment.