fix(a11y): the collapsed sidebar's buttons and links aren't nested inside another button (#32930)

This commit is contained in:
G30 2026-10-22 14:56:18 -04:00 • committed by GitHub
parent 855b003b86
commit b1e10f5306
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1073,8 +1073,9 @@
role="navigation"
aria-label={$i18n.t('Chat history')}
>
<button
<div
class="flex flex-col flex-1 {isWindows ? 'cursor-pointer' : 'cursor-[e-resize]'}"
role="presentation"
on:click={async () => {
showSidebar.set(!$showSidebar);
await tick();
@ -1201,7 +1202,7 @@
{/if}
{/each}
</div>
</button>
</div>
<div>
<div>