From c8af048473ef6221fc8a8fdfbe1db6b70b818522 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Wed, 16 Jul 2025 20:32:46 +0200 Subject: [PATCH] fix: further improve navigation and visiblity of selected buttons --- package.json | 4 ++-- src/lib/components/ui/banner/full-banner.svelte | 5 ++++- src/lib/components/ui/button/index.ts | 6 +++--- src/lib/components/ui/sidebar/SidebarButton.svelte | 6 +++--- src/routes/+layout.svelte | 2 +- src/routes/setup/Footer.svelte | 6 +++--- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 553bca8..8b97c32 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "ui", - "version": "6.4.44", + "version": "6.4.45", "license": "BUSL-1.1", "private": true, - "packageManager": "pnpm@9.14.4", + "packageManager": "pnpm@9.15.5", "scripts": { "dev": "vite dev --open", "build": "vite build && scopy ./build/index.html ./build/offline.html", diff --git a/src/lib/components/ui/banner/full-banner.svelte b/src/lib/components/ui/banner/full-banner.svelte index 3a4906a..733064c 100644 --- a/src/lib/components/ui/banner/full-banner.svelte +++ b/src/lib/components/ui/banner/full-banner.svelte @@ -59,6 +59,9 @@ current = media timeout = schedule(currentIndex() + 1) } + function tabindex (node: HTMLElement) { + node.tabIndex = -1 + }
@@ -96,7 +99,7 @@
{#each shuffled as media (media.id)} {@const active = current === media} -
setCurrent(media)}> +
setCurrent(media)} use:tabindex>
diff --git a/src/lib/components/ui/button/index.ts b/src/lib/components/ui/button/index.ts index 8d7e14b..e24beac 100644 --- a/src/lib/components/ui/button/index.ts +++ b/src/lib/components/ui/button/index.ts @@ -8,11 +8,11 @@ const buttonVariants = tv({ base: 'focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50', variants: { variant: { - default: 'bg-primary text-primary-foreground select:bg-primary/90 shadow', + default: 'bg-primary text-primary-foreground select:bg-primary/70 shadow', destructive: 'bg-destructive text-destructive-foreground select:bg-destructive/90 shadow-sm', outline: 'border-input bg-background select:bg-accent select:text-accent-foreground border shadow-sm', - secondary: 'bg-secondary text-secondary-foreground select:bg-secondary/80 shadow-sm', - ghost: 'select:bg-secondary-foreground/10 select:text-accent-foreground', + secondary: 'bg-secondary text-secondary-foreground select:bg-secondary/70 shadow-sm', + ghost: 'select:bg-secondary-foreground/30 select:text-accent-foreground', link: 'text-primary underline-offset-4 select:underline' }, size: { diff --git a/src/lib/components/ui/sidebar/SidebarButton.svelte b/src/lib/components/ui/sidebar/SidebarButton.svelte index ecdbe8e..80c59a6 100644 --- a/src/lib/components/ui/sidebar/SidebarButton.svelte +++ b/src/lib/components/ui/sidebar/SidebarButton.svelte @@ -28,11 +28,11 @@ $: isActive = href && matchPath(href, $page) - diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index beb9611..29d82ba 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -36,7 +36,7 @@ - +
diff --git a/src/routes/setup/Footer.svelte b/src/routes/setup/Footer.svelte index 03031ad..12b75b2 100644 --- a/src/routes/setup/Footer.svelte +++ b/src/routes/setup/Footer.svelte @@ -67,17 +67,17 @@
- + {#await settled} - +

Wait for all checks to settle

{:then _} - + {/await}