-
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
Improve Nav block loading and placeholder states #38907
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0343640
Improve all loading statess
getdave 9d35153
Squash and rebase
getdave 1d75aa8
Translate spoken strings
getdave afde8ea
Coerce to Boolean at source
getdave 653175e
Correct typo
getdave a66247b
Refactor to use radio control component for block based menu selector
getdave 1e2dbf5
Group placeholder tests
getdave d128e60
Remove unnecessary usage of classnames util
getdave e31abdf
Fix inner blocks placeholder to be visible by ARIA
getdave b613843
Only set aria-hidden where necessary
getdave 4fa7c43
Remove developer centric term from placeholder announcements
getdave a155cfb
Remove default polite arg to speak function
getdave df1467a
Reverse conditional to aid in clarity
getdave 062068f
Add clarity to test purpose and method via comments
getdave 0f9cbfe
Improve test comprehension via comments
getdave eab4ad4
Qualify test comment to explain purpose
getdave 322ba64
Update snapshots
getdave 8665ec6
Remove early return for loading state
getdave 96d69d4
Reduce verbosity of vars and colocate
getdave 78997b7
Add spacing around spinner when block is selected
getdave a361049
Remove isPlaceholder checks when already confirmed
getdave 7ccc01f
Optimise props
getdave 2886dac
Check for possible empty menus values
getdave 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 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
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.
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.
These complex loading states have been extracted to separate conditionals each of which returns early with a dedicated render.