mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-04-07 20:15:46 +02:00
Add missing ARIA role to error messages on Web
This commit is contained in:
parent
62f8c685f0
commit
8c623171f3
Web
Phantom.Web.Components/Forms
Phantom.Web/Pages
@ -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) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
<h1>Audit Log</h1>
|
||||
|
||||
@if (loadError is {} error) {
|
||||
<p>@error</p>
|
||||
<p role="alert">@error</p>
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
<h1>Event Log</h1>
|
||||
|
||||
@if (loadError is {} error) {
|
||||
<p>@error</p>
|
||||
<p role="alert">@error</p>
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user