fix(client): keep pointer focus silent through descendant and editable rings
Pointer suppression previously cleared `outline-color` on the focused element alone, so a ring painted by a descendant, a pseudo-element, or a `box-shadow` stayed visible, and editable text controls lost the focus feedback they need on click. Ring colour now flows through `--dsw-focus-ring-color`, which component outlines and focus-ring shadows read alongside the brand token. Every ring that inherits the variable is suppressed together, and `body :focus-visible:not(:read-write)` limits the suppression to rings while editable controls keep their own feedback. Keyboard modality returns on Tab, Home, End, PageUp, or PageDown, and on focus reaching a different control after a non-composing key. IME composition keys, refocusing the same control, and window blur leave rings silent. The desktop preload menubar suppresses its own ring inside its shadow root, where the document-level attribute does not reach.
This commit is contained in:
1 parent
65ba30ab4f
commit
bca9cecc7d
50 files changed
+669
-141
No files matched your search
@@ -56,7 +56,7 @@
|
||||
}
|
||||
|
||||
.warning:focus-visible {
|
||||
outline: var(--dsw-focus-ring-width) solid var(--dsw-alias-brand-primary);
|
||||
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary));
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user