Add role="alertdialog" to generic app error dialog

This commit is contained in:
Sergio Padrino 2023-10-03 11:32:28 +02:00
parent b0b11e7281
commit 48a65c80fd

View file

@ -227,10 +227,14 @@ export class AppError extends React.Component<IAppErrorProps, IAppErrorState> {
className={
isRawGitError(this.state.error) ? 'raw-git-error' : undefined
}
role="alertdialog"
ariaDescribedBy="app-error-description"
>
<DialogContent onRef={this.onDialogContentRef}>
{this.renderErrorMessage(error)}
{this.renderContentAfterErrorMessage(error)}
<div id="app-error-description">
{this.renderErrorMessage(error)}
{this.renderContentAfterErrorMessage(error)}
</div>
</DialogContent>
{this.renderFooter(error)}
</Dialog>