Skip to content

Commit

Permalink
Merge pull request #1304 from Adyen/fix/required-fields
Browse files Browse the repository at this point in the history
Fixes aria-required on required text inputs
  • Loading branch information
m1aw authored Oct 5, 2021
2 parents a08767f + edd1712 commit dcb0483
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 dcb0483

Please sign in to comment.