From b07f103b1dcf6853d230d35f870c65505930adf4 Mon Sep 17 00:00:00 2001 From: Ilia Date: Mon, 16 Oct 2023 00:14:14 +0300 Subject: [PATCH] feat: buttons, links and elements with tooltips now keyboard accessible --- src/components/Main.svelte | 6 ++++-- src/components/atoms/Tooltip.svelte | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Main.svelte b/src/components/Main.svelte index 02c1770..6c204da 100644 --- a/src/components/Main.svelte +++ b/src/components/Main.svelte @@ -33,7 +33,7 @@

{$settings.current_city.name}

- + @@ -43,6 +43,7 @@ href={settingsNotOpened ? '/' : '/settings'} class="settings" alt="settings toggle" + tabindex="0" on:click={() => (settingsNotOpened = !settingsNotOpened)}> @@ -50,7 +51,8 @@ + class="github" + tabindex="0"> diff --git a/src/components/atoms/Tooltip.svelte b/src/components/atoms/Tooltip.svelte index 9ad51ed..69845d9 100644 --- a/src/components/atoms/Tooltip.svelte +++ b/src/components/atoms/Tooltip.svelte @@ -4,9 +4,10 @@ position = 'top' -
+ +
-
{text}
+