From 387550086a00b5a1b8221c1528e6f616430e7b3c Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 22 Nov 2024 18:17:57 +0100 Subject: frontend: Improve highlighting of current focus Elements now have a consistent style applied to them when in focus. Additionally, select elements will now have an outline when focused, making it easier to notice the currently selected element. --- frontend/src/lib/components/Card.svelte | 2 +- frontend/src/lib/components/Titlebar.svelte | 2 +- frontend/src/lib/gallery/GalleryPage.svelte | 2 +- frontend/src/lib/navigation/Link.svelte | 2 +- frontend/src/lib/scraper/components/SelectorGroup.svelte | 2 +- frontend/src/lib/tabs/Tab.svelte | 2 +- frontend/src/lib/tabs/Tabs.svelte | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'frontend/src/lib') diff --git a/frontend/src/lib/components/Card.svelte b/frontend/src/lib/components/Card.svelte index 2384799..d209517 100644 --- a/frontend/src/lib/components/Card.svelte +++ b/frontend/src/lib/components/Card.svelte @@ -34,7 +34,7 @@ dispatch('favourite')} > diff --git a/frontend/src/lib/gallery/GalleryPage.svelte b/frontend/src/lib/gallery/GalleryPage.svelte index 449321c..f40b889 100644 --- a/frontend/src/lib/gallery/GalleryPage.svelte +++ b/frontend/src/lib/gallery/GalleryPage.svelte @@ -57,7 +57,7 @@ class:dim role="button" tabindex="0" - class="{span} relative overflow-hidden rounded" + class="{span} focus-thick focus-blue relative overflow-hidden rounded" on:click={press} on:keydown={press} > diff --git a/frontend/src/lib/navigation/Link.svelte b/frontend/src/lib/navigation/Link.svelte index 7297a69..be09a36 100644 --- a/frontend/src/lib/navigation/Link.svelte +++ b/frontend/src/lib/navigation/Link.svelte @@ -12,7 +12,7 @@
  • - +
    diff --git a/frontend/src/lib/scraper/components/SelectorGroup.svelte b/frontend/src/lib/scraper/components/SelectorGroup.svelte index ae7287a..1fdb8f2 100644 --- a/frontend/src/lib/scraper/components/SelectorGroup.svelte +++ b/frontend/src/lib/scraper/components/SelectorGroup.svelte @@ -19,7 +19,7 @@

    {title}