fix(a11y): shortcut notes on the Keyboard tab can be reached with Tab and are read out (#33160)

This commit is contained in:
G30 2026-10-25 03:44:45 -04:00 • committed by GitHub
parent 9a0d7dd65e
commit d61bdfb791
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,9 +122,13 @@
>
{#if shortcut.tooltip}
<Tooltip content={$i18n.t(shortcut.tooltip)}>
<span class="inline-flex max-w-full items-baseline gap-1">
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
<span class="inline-flex max-w-full items-baseline gap-1" tabindex="0">
<span class="truncate whitespace-pre-line">{shortcut.name($i18n.t)}</span>
<span class="text-[0.625rem] text-gray-400 dark:text-gray-600">*</span>
<span class="text-[0.625rem] text-gray-400 dark:text-gray-600" aria-hidden="true"
>*</span
>
<span class="sr-only">{$i18n.t(shortcut.tooltip)}</span>
</span>
</Tooltip>
{:else}