-
Notifications
You must be signed in to change notification settings - Fork 189
refactor: use css outline
& new useFocusVisibleClassName()
hook to draw visible focus
#5876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9c4a9b7
fix(SegmentedControlOption): fix hover state
eugpoloz aec879e
feat(hooks): create useFocusVisibleClassName()
eugpoloz 35395c5
test(hooks): useFocusVisibleClassName()
eugpoloz 7f835ba
refactor(SegmentedControl): useFocusVisibleClassName()
eugpoloz d1f8c5b
refactor(Clickable): useFocusVisibleClassName()
eugpoloz a9140a3
refactor(FormField): useFocusVisibleClassName()
eugpoloz 96e5701
refactor(Tappable): useFocusVisibleClassName()
eugpoloz 010cb83
e2e(Tappable): add focus visible state visual test
eugpoloz 4493895
refactor(Link): useFocusVisibleClassName()
eugpoloz f514a21
e2e(Link): add focus visible state visual test
eugpoloz fed15dd
refactor(Slider): useFocusVisibleClassName()
eugpoloz 9897746
e2e(Slider): adjust visual test for reduced motion
eugpoloz 04e41b2
refactor(Switch): useFocusVisibleClassName()
eugpoloz 258824c
e2e(Switch): add focus visible state visual test
eugpoloz a9b4151
e2e(Textarea): update test & add focus state
eugpoloz 5065bea
e2e(CustomSelect): update screenshots
eugpoloz 99dd9b7
refactor(Image): useFocusVisibleClassName()
eugpoloz a4c04c6
e2e(Image): add focus visible state visual tests
eugpoloz a16a1a5
fix(css): reset outline the smart way
eugpoloz d1690ec
refactor: rm FocusVisible component
eugpoloz 7604fca
test(hooks): useFocusVisibleClassName()
eugpoloz b69bef6
fix(focusVisible): adjust css classes
eugpoloz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
.Clickable__host { | ||
cursor: pointer; | ||
} | ||
|
||
.Clickable__host:focus, | ||
.Clickable__host:focus-visible { | ||
outline: none; | ||
} |
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
.../__image_snapshots__/customselect-no-max-height-vkcom-chromium-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...t/__image_snapshots__/customselect-no-max-height-vkcom-firefox-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ct/__image_snapshots__/customselect-no-max-height-vkcom-webkit-light-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 0 additions & 98 deletions
98
packages/vkui/src/components/FocusVisible/FocusVisible.module.css
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
packages/vkui/src/components/FocusVisible/FocusVisible.tsx
SevereCloud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.