1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-04 09:34:05 +02:00

Add missing ARIA role to error messages on Web

This commit is contained in:
chylex 2024-04-07 21:38:02 +02:00
parent 62f8c685f0
commit 8c623171f3
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
4 changed files with 4 additions and 4 deletions
Web
Phantom.Web.Components/Forms
Phantom.Web/Pages

View File

@ -1,6 +1,6 @@
@using Phantom.Web.Components.Utils @using Phantom.Web.Components.Utils
@if (messageLines.Length > 0) { @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++) { @for (int i = 0; i < messageLines.Length; i++) {
@messageLines[i] @messageLines[i]
if (i < messageLines.Length - 1) { if (i < messageLines.Length - 1) {

View File

@ -13,7 +13,7 @@
<h1>Audit Log</h1> <h1>Audit Log</h1>
@if (loadError is {} error) { @if (loadError is {} error) {
<p>@error</p> <p role="alert">@error</p>
return; return;
} }

View File

@ -14,7 +14,7 @@
<h1>Event Log</h1> <h1>Event Log</h1>
@if (loadError is {} error) { @if (loadError is {} error) {
<p>@error</p> <p role="alert">@error</p>
return; return;
} }

View File

@ -34,7 +34,7 @@
</PermissionView> </PermissionView>
</div> </div>
@if (lastError != null) { @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"> <PermissionView Permission="Permission.ViewInstanceLogs">