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:
sam committed 2026-11-06 21:39:37 +11:00
1 parent dafd426316
commit d3fbb0842f
26 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ function commitRename(event: Event): void {
<div
ref="card"
class="rounded-lg border bg-card text-left shadow-sm transition-[width,box-shadow] duration-200"
:class="[stateClass, data.expanded ? 'w-[26rem] shadow-lg ring-2 ring-ring/60' : 'w-60 hover:border-muted-foreground', data.onToggle && 'cursor-pointer']"
:class="[stateClass, data.expanded ? 'w-[26rem] shadow-lg ring-2 ring-ring' : 'w-60 hover:border-muted-foreground', data.onToggle && 'cursor-pointer']"
>
<Handle v-if="data.kind !== 'workflow'" type="target" :position="Position.Top" />
<Handle id="data-in" type="target" :position="Position.Right" class="!opacity-0" />
+1 -1
View File
@@ -521,7 +521,7 @@ onBeforeUnmount(() => yamlObserver?.disconnect());
screen reader reach.
-->
<div
class="relative overflow-hidden rounded-lg border border-input font-mono max-md:h-full text-label leading-6 focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50"
class="relative overflow-hidden rounded-lg border border-input font-mono max-md:h-full text-label leading-6 focus-within:border-ring focus-within:ring-3 focus-within:ring-ring"
>
<div
aria-hidden="true"