From 28bfbe5257ea9e3aa43a1838d5937efd5c93f88a Mon Sep 17 00:00:00 2001 From: mkelvers Date: Mon, 25 May 2026 01:31:05 +0200 Subject: [PATCH] fix: improve accessibility and keyboard navigation --- templates/base.gohtml | 4 +++- templates/components/anime_card.gohtml | 11 +++++++---- templates/components/continue_watching.gohtml | 12 ++++++------ templates/components/filter_bar.gohtml | 10 +++++----- templates/components/navigation.gohtml | 16 ++++++++-------- 5 files changed, 29 insertions(+), 24 deletions(-) diff --git a/templates/base.gohtml b/templates/base.gohtml index 15b914f..eb67256 100644 --- a/templates/base.gohtml +++ b/templates/base.gohtml @@ -144,7 +144,9 @@
- {{template "content" .}} + {{block "page_container" .}} + {{template "content" .}} + {{end}}
diff --git a/templates/components/anime_card.gohtml b/templates/components/anime_card.gohtml index eecb164..19a5447 100644 --- a/templates/components/anime_card.gohtml +++ b/templates/components/anime_card.gohtml @@ -17,13 +17,16 @@ {{$displayTitle := $anime.DisplayTitle}}
- + {{$displayTitle}} {{if $withActions}}
{{if not $isWatchlist}} -

+

{{$displayTitle}}

{{end}} @@ -40,7 +43,7 @@ data-watchlist-toggle data-mal-id="{{$anime.MalID}}" data-watchlist-title="{{$anime.DisplayTitle}}" - class="text-accent hover:text-accent/80 transition-colors focus:outline-none disabled:opacity-50 {{if $isWatchlist}}in-watchlist{{end}}" + class="text-accent hover:text-accent/80 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:opacity-50 {{if $isWatchlist}}in-watchlist{{end}}" aria-label="{{if $isWatchlist}}Remove from Watchlist{{else}}Add to Watchlist{{end}}" > @@ -49,7 +52,7 @@
{{else}}
-

+

{{$displayTitle}}

{{if not $compact}} diff --git a/templates/components/continue_watching.gohtml b/templates/components/continue_watching.gohtml index 28046de..5909e10 100644 --- a/templates/components/continue_watching.gohtml +++ b/templates/components/continue_watching.gohtml @@ -1,6 +1,6 @@ {{define "continue_watching"}}
-

Continue Watching

+

Continue Watching

{{range .}} @@ -9,13 +9,13 @@
- + {{$title}}
-
@@ -29,11 +29,11 @@
- -

+ +

{{$title}}

-

+

{{if .CurrentEpisode.Valid}}Episode {{.CurrentEpisode.Int64}}{{end}}

diff --git a/templates/components/filter_bar.gohtml b/templates/components/filter_bar.gohtml index 335d60c..51e094a 100644 --- a/templates/components/filter_bar.gohtml +++ b/templates/components/filter_bar.gohtml @@ -21,7 +21,7 @@

-
+ {{if .Type}}{{end}} {{if .Status}}{{end}} @@ -31,7 +31,7 @@ {{range $g := .Genres}}{{end}}