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:
vicrodh committed 2026-06-20 15:51:04 -06:00
1 parent b4aa514653
commit 0512b97d2c
1 file changed
+4 -1
@@ -78,7 +78,10 @@ export component ExpandableSearch inherits Rectangle {
background: Theme.surface-card; background: Theme.surface-card;
border-radius: 6px; border-radius: 6px;
border-width: root.open ? 1px : 0px; 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; clip: true;
animate width { duration: 200ms; easing: ease-in-out; } animate width { duration: 200ms; easing: ease-in-out; }