Skip to content

Commit

Permalink
Fixed narration of TextField labels (#1970)
Browse files Browse the repository at this point in the history
* Add condition to aria-labelledby in TextField

* Update arialabelby default value
  • Loading branch information
denscollo authored and tonyanziano committed Nov 7, 2019
1 parent a070872 commit e7f4c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/ui-react/src/widget/textField/textField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class TextField extends Component<TextFieldProps, {}> {
<div className={`${styles.inputContainer} ${inputContainerClassName}`}>
{this.labelNode}
<input
aria-labelledby="errormessagesub"
aria-labelledby={errorMessage ? 'errormessagesub' : undefined}
className={inputClassName}
id={this.inputId}
ref={this.setInputRef}
Expand Down

0 comments on commit e7f4c3b

Please sign in to comment.