fix(a11y): a folder's options button is named and not nested inside another button (#33093)

This commit is contained in:
G30 2026-10-24 15:42:00 -04:00 • committed by GitHub
parent 6774b79a69
commit 3a46f629f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 8 deletions

View file

@ -261,13 +261,9 @@
showCreateSubFolderModal = true;
}}
>
<button
class="p-1.5 dark:hover:bg-gray-850 rounded-full touch-auto"
aria-label={$i18n.t('Folder options')}
on:click={(e) => {}}
>
<div class="inline-flex p-1.5 dark:hover:bg-gray-850 rounded-full touch-auto">
<EllipsisHorizontal className="size-4" strokeWidth="2.5" />
</button>
</div>
</FolderMenu>
</div>
{/if}

View file

@ -38,6 +38,7 @@
>
<Tooltip content={$i18n.t('More')}>
<button
aria-label={$i18n.t('Folder options')}
on:click={(e) => {
e.stopPropagation();
show = !show;

View file

@ -914,8 +914,9 @@
</div>
{#if isWritable}
<button
<div
class="absolute z-10 right-2 hover-reveal self-center flex items-center dark:text-gray-300"
role="presentation"
on:pointerdown={() => (openPreview = false)}
>
<FolderMenu
@ -941,7 +942,7 @@
<MoreHorizontal className="size-3.5" strokeWidth="2" />
</div>
</FolderMenu>
</button>
</div>
{/if}
</div>
</div>