Improve buttons accessibility

This commit is contained in:
pheralb 2024-04-20 23:46:44 +01:00
parent 5e349a68a0
commit c5dc547e3f

View File

@ -128,6 +128,7 @@
<Popover.Root open={optionsOpen} onOpenChange={(isOpen) => (optionsOpen = isOpen)}> <Popover.Root open={optionsOpen} onOpenChange={(isOpen) => (optionsOpen = isOpen)}>
<Popover.Trigger <Popover.Trigger
title="Copy SVG element as svg file, React TSX code, or React JSX code"
class="flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40" class="flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40"
> >
{#if optionsOpen} {#if optionsOpen}
@ -166,4 +167,4 @@
<span>Copy JSX</span> <span>Copy JSX</span>
</button> </button>
</Popover.Content> </Popover.Content>
</Popover.Root> </Popover.Root>