mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(a11y): focus indicators meet the 3:1 non-text contrast bar (#574)
Fixes #568. Adds a real --color-ring token (ink orange #A85518 light / #F0A766 dark) and sweeps all 57 focus-indicator occurrences onto it: soft opacity rings blended to 1.2-1.7:1, border-only indicators sat at 2.6-3.0:1, and four focus:ring-ring sites referenced a token that never existed. Sponsor button keeps pink via pink-700; range sliders and the file list gain their missing keyboard indicators; landing skip link and form borders hardened; the palette contrast guard pins the ring at 3:1 in both themes.
This commit is contained in:
@@ -45,7 +45,7 @@ function renderIcon(iconName: string): string {
|
||||
id="hero-tool-search"
|
||||
autocomplete="off"
|
||||
placeholder={t(locale, "home.hero.searchPlaceholder")}
|
||||
class="w-full rounded-2xl border border-border bg-surface py-4 pe-4 ps-12 text-base shadow-sm outline-none transition-all placeholder:text-muted focus:border-primary focus:shadow-md"
|
||||
class="w-full rounded-2xl border border-border bg-surface py-4 pe-4 ps-12 text-base shadow-sm outline-none transition-all placeholder:text-muted focus:border-primary-ink focus:shadow-md"
|
||||
aria-label={t(locale, "home.hero.searchPlaceholder")}
|
||||
aria-expanded="false"
|
||||
aria-controls="hero-search-results"
|
||||
|
||||
@@ -220,7 +220,7 @@ const safeStringsJson = JSON.stringify(toolGridStrings).replace(/</g, "\\u003c")
|
||||
autocomplete="off"
|
||||
aria-label={t(locale, "home.toolGrid.searchLabel")}
|
||||
placeholder={t(locale, "home.toolGrid.searchPlaceholder")}
|
||||
class="h-13 w-full rounded-lg border border-border bg-surface py-3 ps-12 pe-12 text-base text-foreground outline-none transition-colors placeholder:text-muted focus:border-primary"
|
||||
class="h-13 w-full rounded-lg border border-border bg-surface py-3 ps-12 pe-12 text-base text-foreground outline-none transition-colors placeholder:text-muted focus:border-primary-ink"
|
||||
/>
|
||||
<button
|
||||
id="tool-command-clear"
|
||||
|
||||
Reference in New Issue
Block a user