Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Improve a11y of the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Mar 1, 2024
1 parent 628e1a2 commit 62b656f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/src/components/home/info-tile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@
export let href;
</script>

<div class="info-tile" on:click={() => goto(href)}>
<div
class="info-tile"
role="button"
on:click={() => goto(href)}
tabindex="0"
on:keydown={e => {
if (e.key == ' ' || e.key == 'Enter') {
goto(href);
}
}}
>
<Card>
<div class="icon">
<svelte:component this={icon} size="24" />
Expand Down

0 comments on commit 62b656f

Please sign in to comment.