Skip to content

Let search work in any slot: keep the form aligned and continue tab order from its button - #545

Merged
dannyleech merged 2 commits into
mainfrom
search-slots
Sep 29, 2026
Merged

dannyleech merged 2 commits into
mainfrom
search-slots

Conversation

@dannyleech

Copy link
Copy Markdown
Contributor

While search is open, every other item in the top row (buttons, button groups and controls) is taken out of flow as well as hidden, so nothing offsets the form within its column when it isn't in top-left. They stay focusable.

A slot renders its controls before its buttons, so native Tab order left the open form for whatever followed it in the DOM, not the search button. handleTabOut now continues from the button: Tab past the form's last element goes to whatever follows the button, and Shift+Tab past its first returns to the button.

The index and draw demos put search in the top-right on tablet/desktop.

…rder from its button

While search is open, every other item in the top row (buttons, button
groups and controls) is taken out of flow as well as hidden, so nothing
offsets the form within its column when it isn't in top-left. They stay
focusable.

A slot renders its controls before its buttons, so native Tab order left
the open form for whatever followed it in the DOM, not the search button.
handleTabOut now continues from the button: Tab past the form's last
element goes to whatever follows the button, and Shift+Tab past its first
returns to the button.

The index and draw demos put search in the top-right on tablet/desktop.
@sonarqubecloud

Copy link
Copy Markdown

@dannyleech
dannyleech merged commit cb88849 into main Sep 29, 2026
2 checks passed
@dannyleech
dannyleech deleted the search-slots branch September 29, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants