Skip to content

Commit

Permalink
fix: added aria-label to TokenWidget component to better a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Mar 4, 2025
1 parent 4b2d542 commit 936bc61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class TokenWidget extends Component {
noOptionsMessage={() =>
this.props.intl.formatMessage(messages.no_options)
}
aria-label={this.props.title}
/>
</FormFieldWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ exports[`renders a token widget component 1`] = `
>
<input
aria-autocomplete="list"
aria-label="My field"
aria-labelledby="fieldset-default-field-label-my-field"
autoCapitalize="none"
autoComplete="off"
Expand Down

0 comments on commit 936bc61

Please sign in to comment.