fix(web): stop settle controls overlapping the status label #4574
Merged
ipanasenko(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/4574/head·merged by maria-rcks View on GitHubShowing 1 changed file with 8 additions and 3 deletions.
x
@@ -938,7 +938,7 @@
- actions on hover/focus or while the popover is open. Keeping
+ actions on hover/keyboard focus or while the popover is open. Keeping
@@ -947,7 +947,7 @@
- "pointer-events-none self-center justify-self-end tabular-nums text-muted-foreground/65 transition-opacity group-focus-within/v2-status-slot:absolute group-focus-within/v2-status-slot:right-0 group-hover/v2-row:absolute group-hover/v2-row:right-0 group-hover/v2-row:opacity-0",
+ "pointer-events-none self-center justify-self-end tabular-nums text-muted-foreground/65 transition-opacity group-has-[:focus-visible]/v2-status-slot:absolute group-has-[:focus-visible]/v2-status-slot:right-0 group-has-[:focus-visible]/v2-status-slot:opacity-0 group-hover/v2-row:absolute group-hover/v2-row:right-0 group-hover/v2-row:opacity-0",
@@ -982,7 +982,12 @@
- "absolute inset-y-0 right-0 flex items-stretch opacity-0 transition-opacity focus-within:static focus-within:opacity-100 group-hover/v2-row:static group-hover/v2-row:opacity-100",
+ // focus-visible, not focus-within: a mouse click leaves
+ // the Settle button focused, and a plain focus-within
+ // would keep the controls pinned over the status label
+ // once the pointer moves away (e.g. after a failed
+ // settle) instead of cross-fading back.