fix: tab sequence of start/end slots in toolbar out of sink when focus brought back to toolbar #4983
Labels
bug
A bug
compliance:a11y
Accessibility compliance.
status:needs-investigation
Needs additional investigation
🐛 Bug Report
In toolbar when any focusable content is slotted in the
start
orend
slots and that content is the last focused content, then when returning focus back to the toolbar the focus is brought to the incorrect slotted item.💻 Repro or Code Sample
stackblits:
https://fast-design-rybc3w.stackblitz.io/
🤔 Expected Behavior
Should tab back to the last focused item if there is focusable content in the start or end slots:
The arrow keys should navigate to all focusable slotted content within the toolbar including start and end. Seen here the arrow key is pressed after tabbing to the end slotted content, which leads to the next default slotted content item being focused.
💁 Possible Solution
Ensure that the focusinHandler only controls focus when focus returns to the default slotted content.
I am working on a PR for this fix now.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: