Skip to content

Commit

Permalink
Fixes aria label on required text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
m1aw committed Oct 1, 2021
1 parent e26fdac commit edd1712
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { h } from 'preact';
import InputBase from './InputBase';

export default function InputText(props) {
return <InputBase classNameModifiers={['large']} {...props} type="text" />;
return <InputBase classNameModifiers={['large']} {...props} aria-required={props.required} type="text" />;
}

0 comments on commit edd1712

Please sign in to comment.