fix(a11y): three buttons' names include the text they show (#33593)

This commit is contained in:
G30 authored and GitHub committed 2026-11-03 07:52:39 +09:00
1 parent 2176bb7bd2
commit f773e057e2
3 files changed
+3 -4

No files matched your search

@@ -657,7 +657,6 @@
type="button"
class="flex min-w-0 max-w-full items-center gap-1.5 py-1 text-left hover:text-gray-900 dark:hover:text-gray-100"
style:opacity={selectedModel && selectedModel !== id ? 0.45 : 1}
aria-label={`${name(id)} — ${$i18n.t('Select to isolate model')}`}
aria-pressed={selectedModel === id}
on:click={() => isolate(id)}
>
@@ -669,6 +668,7 @@
$i18n.language
)}>{number(hovered ? (hoveredModels?.[id] ?? 0) : (totals[id] ?? 0))}</span
>
<span class="sr-only">{$i18n.t('Select to isolate model')}</span>
</button>
{/each}
</div>
@@ -403,12 +403,12 @@
<td class="px-3 py-1 min-w-[5rem] w-20">
<button
class="text-xs font-normal leading-4 capitalize transition {roleClass(user.role)}"
aria-label={$i18n.t('Change User Role')}
on:click={() => {
selectedUser = user;
showEditUserModal = !showEditUserModal;
}}
>
<span class="sr-only">{$i18n.t('Change User Role')}</span>
{$i18n.t(user.role)}
</button>
</td>