fix(ui): focus rings at full strength for 3:1 contrast (#1737)
The shared components used focus-visible:ring-ring/50 (and the base outline-ring/50), which measured 2.1:1 on light and 2.4:1 on dark -- under the 3:1 WCAG 2.4.11/1.4.11 requires. All ring-ring and outline-ring tokens in ui/src now render at full strength (5.3:1 light, 5.7:1 dark), matching the :focus-visible outline floor in style.css.
This commit is contained in:
26 files changed
+26
-26
No files matched your search
@@ -22,7 +22,7 @@ onBeforeUnmount(() => clearTimeout(fold));
|
||||
<template>
|
||||
<RouterLink
|
||||
to="/"
|
||||
class="flex items-center gap-2 rounded-md px-1 py-1 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
|
||||
class="flex items-center gap-2 rounded-md px-1 py-1 outline-none focus-visible:ring-[3px] focus-visible:ring-ring"
|
||||
@mouseenter="hovered = true"
|
||||
@mouseleave="hovered = false"
|
||||
@focus="hovered = true"
|
||||
|
||||
Reference in new issue
Block a user