Added aria-label to things that are otherwise labelled in the UI.

This commit is contained in:
orangemug
2020-06-10 18:16:43 +01:00
parent 6c751fe1c4
commit bfada7cace
8 changed files with 33 additions and 18 deletions

View File

@@ -44,7 +44,7 @@ export default class FieldFont extends React.Component {
key={i}
>
<InputAutocomplete
aria-label={this.props['aria-label']}
aria-label={this.props['aria-label'] || this.props.name}
value={value}
options={this.props.fonts.map(f => [f, f])}
onChange={this.changeFont.bind(this, i)}