fix(wizard): focus next step content#2372
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements automatic focus management when navigating between wizard steps. When moving to the next step, the wizard now attempts to focus the first interactive (tabbable) element within that step, falling back to focusing the next button if no interactive elements are found. Unit tests have been added to verify this behavior. The reviewer suggested optimizing the DOM traversal in getFirstTabbableElement by using querySelectorAll('*') instead of recursive traversal.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
0a40708 to
ccf4902
Compare
Focus the first tabbable control after advancing a step, falling back to the next button when the step has no tabbable control. Closes #2346
ccf4902 to
517af60
Compare
Focus the first tabbable control after advancing a step, falling back to the next button when the step has no tabbable control.\n\nCloses #2346
Documentation.
Examples.
Dashboards Demo.
Playwright report.
Coverage Reports: