www: improve accessbility (#1507)

This commit is contained in:
Tim Hårek Andreassen
2023-07-22 20:23:42 +02:00
committed by GitHub
parent 16453b4dc9
commit 9cae8fdd5c
13 changed files with 61 additions and 30 deletions
+8 -2
View File
@@ -57,7 +57,10 @@ export default function ComponentGallery(props: ComponentGalleryProps) {
Click me
</Button>
<Button class="flex gap-1">
<IconHappy class="w-6 h-6 inline-block text-gray-500" />
<IconHappy
class="w-6 h-6 inline-block text-gray-500"
aria-hidden="true"
/>
<div>
With an Icon
</div>
@@ -81,7 +84,10 @@ export default function ComponentGallery(props: ComponentGalleryProps) {
source={props.sources.LinkButton}
>
<LinkButton>
<IconHeart class="w-5 h-5 mr-1 inline-block text-gray-400" />
<IconHeart
class="w-5 h-5 mr-1 inline-block text-gray-400"
aria-hidden="true"
/>
Like me
</LinkButton>
</Section>