Skip to content

Commit

Permalink
Merge pull request #612 from jdtorregrosas/SECACC-1862
Browse files Browse the repository at this point in the history
fix(DropDown): Fix aria values
  • Loading branch information
christopheutm authored Nov 7, 2019
2 parents a865814 + b2e5475 commit c2f6237
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Input/DropDown/DropDownGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class DropDownGroup extends React.Component {
<DropDownProvider value={{ ...this.state, isOpen }}>
<StyledKeyboardProvider
role="listbox"
aria-labelledby={hiddenLabelId}
ariaLabelledby={hiddenLabelId}
{...keyboardProviderProps}
navigateOptions={navigateOptions}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/Input/DropDown/DropDownInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DropDownInput extends React.Component {
<StyledDropDownItem
role="option"
tabIndex="-1"
aria-selected={isSelected ? "true" : "false"}
value={value}
index={index}
ref={this.SelectedElement}
Expand Down
Loading

0 comments on commit c2f6237

Please sign in to comment.