misc: Improve accessibility

This commit is contained in:
Xyphyn committed 2023-07-07 12:41:32 -07:00
1 parent ce19dd3a17
commit 0cd8fb1165
6 files changed
+28 -10

No files matched your search

+9 -7
View File
@@ -1,15 +1,17 @@
<script lang="ts">
import { Color } from '$lib/ui/colors.js'
import { Color } from '$lib/ui/colors.js'
export let color: Color = Color.secondary
export let href = ''
export let color: Color = Color.secondary
export let href = ''
export let label: string = ''
</script>
<a
{href}
class="px-2 py-1 rounded-md {color} flex flex-row items-center
{href}
class="px-2 py-1 rounded-md {color} flex flex-row items-center
justify-center text-sm transition-all"
aria-label={label}
>
<slot name="icon" />
<slot />
<slot name="icon" />
<slot />
</a>