feat(slint-a11y): use focus-ring token for ExpandableSearch focused border
Switch the open field's focused border from Theme.accent to the dedicated Theme.focus-ring token, reusing the existing input.has-focus signal. Stays accent-equal in most palettes but reads distinctly in the a11y themes, so keyboard focus is consistent with every other primitive's ring. cc
This commit is contained in:
1 file changed
+4
-1
@@ -78,7 +78,10 @@ export component ExpandableSearch inherits Rectangle {
|
||||
background: Theme.surface-card;
|
||||
border-radius: 6px;
|
||||
border-width: root.open ? 1px : 0px;
|
||||
border-color: input.has-focus ? Theme.accent : Theme.border-subtle;
|
||||
// Focused border uses the dedicated focus-ring token (accent-equal in
|
||||
// most themes, distinct in the a11y palettes) so keyboard focus reads
|
||||
// consistently with every other primitive's ring.
|
||||
border-color: input.has-focus ? Theme.focus-ring : Theme.border-subtle;
|
||||
clip: true;
|
||||
animate width { duration: 200ms; easing: ease-in-out; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user