mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
Add role="alertdialog"
to generic app error dialog
This commit is contained in:
parent
b0b11e7281
commit
48a65c80fd
1 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue