-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(picker): rename is-focused class to is-keyboardFocused (#2377)
* fix(picker): rename is-focused to is-keyboardFocused The .is-focused class was being used as if it was .is-keyboardFocused, in combination with :focus-visible in selectors. Rather than removing the class, keep it in its renamed form in order for SWC to still be able to convert it to an attribute and continue testing it via its Storybook control. This fixes an existing issue on the docs site, where if you click the picker twice, the focus indicator ring will appear. This is because the docs site adding the .is-focused class. Updated the existing story that was labeled "Focused" that was showing keyboard focused to use the play function, for Chromatic coverage ref: https://www.chromatic.com/docs/hoverfocus/
- Loading branch information
Showing
3 changed files
with
16 additions
and
17 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