diff --git a/Web/Phantom.Web.Components/Forms/FormSubmitError.razor b/Web/Phantom.Web.Components/Forms/FormSubmitError.razor index 2f8ce4c..3c90ec1 100644 --- a/Web/Phantom.Web.Components/Forms/FormSubmitError.razor +++ b/Web/Phantom.Web.Components/Forms/FormSubmitError.razor @@ -1,6 +1,6 @@ @using Phantom.Web.Components.Utils @if (messageLines.Length > 0) { - <div class="form-submit-errors text-danger"> + <div class="form-submit-errors text-danger" role="alert"> @for (int i = 0; i < messageLines.Length; i++) { @messageLines[i] if (i < messageLines.Length - 1) { diff --git a/Web/Phantom.Web/Pages/Audit.razor b/Web/Phantom.Web/Pages/Audit.razor index f1b471b..59f0378 100644 --- a/Web/Phantom.Web/Pages/Audit.razor +++ b/Web/Phantom.Web/Pages/Audit.razor @@ -13,7 +13,7 @@ <h1>Audit Log</h1> @if (loadError is {} error) { - <p>@error</p> + <p role="alert">@error</p> return; } diff --git a/Web/Phantom.Web/Pages/Events.razor b/Web/Phantom.Web/Pages/Events.razor index 7ab5f21..e6ce383 100644 --- a/Web/Phantom.Web/Pages/Events.razor +++ b/Web/Phantom.Web/Pages/Events.razor @@ -14,7 +14,7 @@ <h1>Event Log</h1> @if (loadError is {} error) { - <p>@error</p> + <p role="alert">@error</p> return; } diff --git a/Web/Phantom.Web/Pages/InstanceDetail.razor b/Web/Phantom.Web/Pages/InstanceDetail.razor index 5a8796d..d075087 100644 --- a/Web/Phantom.Web/Pages/InstanceDetail.razor +++ b/Web/Phantom.Web/Pages/InstanceDetail.razor @@ -34,7 +34,7 @@ </PermissionView> </div> @if (lastError != null) { - <p class="text-danger mt-2">@lastError</p> + <p class="text-danger mt-2" role="alert">@lastError</p> } <PermissionView Permission="Permission.ViewInstanceLogs">