-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
List view: Modify the shortcut to focus while open #45135
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d260440
Modify shortcut to focus list view when it is open.
alexstine 066f0e8
Remove extra state and figure out activeElement from ref.
alexstine 6e32429
Try a sneaky way of making shortcut work even on close button focus.
alexstine 581582e
Fix static checks.
alexstine d640d77
Modify selector.
alexstine c937d41
Export isListViewOpen function.
alexstine 32abd0b
Add E2E test for new functionality.
alexstine ebe6b94
Fix focus events now that list view sidebar contains outline tab.
alexstine a416421
Update E2E.
alexstine ca30209
Update E2E.
alexstine 5c0c934
Do not render ListView if there are no blocks.
alexstine 2ffefe0
Fix focus for no blocks.
alexstine 5593e6d
Fix focus on mount.
alexstine e5605d4
Move functionality to callback function entirely.
alexstine 5d214ff
Fix E2E.
alexstine 40ec3bb
Remove merge artifact.
alexstine 47bbedc
Merge branch 'trunk' of github.com:wordpress/gutenberg into try/list-…
alexstine 34224f3
Fix tests.
alexstine b9821b0
Merge branch 'trunk' of github.com:wordpress/gutenberg into try/list-…
alexstine 7945440
Prevent scroll on focus.
alexstine 3fec919
Rework code.
alexstine fe9aa36
Merge branch 'trunk' of github.com:wordpress/gutenberg into try/list-…
alexstine 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@talldan Is there a reason this was not added previously? I found it really confusing to render an empty list view.