Skip to content

Commit

Permalink
fix(combo-box): added arialabel to input field (carbon-design-system#668
Browse files Browse the repository at this point in the history
)
  • Loading branch information
marijohannessen authored and tw15egan committed Mar 2, 2018
1 parent 6155916 commit 3ba8b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ComboBox/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default class ComboBox extends React.Component {
itemToString: defaultItemToString,
shouldFilterItem: defaultShouldFilterItem,
type: 'default',
ariaLabel: 'ListBox input field',
};

constructor(props) {
Expand Down Expand Up @@ -135,6 +136,7 @@ export default class ComboBox extends React.Component {
itemToString,
placeholder,
initialSelectedItem,
ariaLabel,
} = this.props;
const className = cx('bx--combo-box', containerClassName);
return (
Expand Down Expand Up @@ -162,6 +164,7 @@ export default class ComboBox extends React.Component {
<ListBox.Field {...getButtonProps({ disabled })}>
<input
className="bx--text-input"
aria-label={ariaLabel}
{...getInputProps({
disabled,
id,
Expand Down

0 comments on commit 3ba8b6d

Please sign in to comment.