Skip to content

Commit

Permalink
fix(combo-box): address DAP violations (#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
abbeyhrt committed Oct 22, 2019
1 parent 5f540ab commit 1931d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/ComboBox/ComboBox-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const itemToElement = item => {
return (
<div>
<span>{itemAsArray[0]}</span>
<span style={{ color: 'red' }}> {itemAsArray[1]}</span>
<span style={{ color: 'blue' }}> {itemAsArray[1]}</span>
</div>
);
};
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/ComboBox/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ export default class ComboBox extends React.Component {
aria-labelledby={comboBoxA11yId}
tabIndex="0"
aria-disabled={disabled}
aria-controls={`${id}__menu`}
aria-owns={`${id}__menu`}
aria-controls={isOpen ? `${id}__menu` : null}
aria-owns={isOpen ? `${id}__menu` : null}
aria-autocomplete="list"
ref={this.textInput}
{...rest}
Expand Down

0 comments on commit 1931d60

Please sign in to comment.