-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Components: Tabs: Improve Controlled Mode Focus Handling (#57696)
* limit focus update to currently selected tab * update unit tests * changelog * changelog. no, really this time. * implement feedback * implement feedback * remove testing changes in storybook * remove focus updating * update tests * update changelog * Rewrite hook to update the active element, this time using ariakit's state to track the active ID * Make sure that keyboard focus goes to the selected tab when tabbing back into the tablist * Update tests * Optimize hook dependencies, no need to rely on `selectedId` to get the active element --------- Co-authored-by: Marco Ciampini <[email protected]>
- Loading branch information
Showing
5 changed files
with
151 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters