Merge pull request #16556 from desktop/alert-errors

This commit is contained in:
Sergio Padrino 2023-04-20 08:57:39 +02:00 committed by GitHub
commit c9690411b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,10 @@ interface IErrorsProps {
export class Errors extends React.Component<IErrorsProps, {}> {
public render() {
const className = classNames('errors-component', this.props.className)
return <div className={className}>{this.props.children}</div>
return (
<div className={className} role="alert">
{this.props.children}
</div>
)
}
}