-
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
Navigation: Close Link UI if cancelled #48029
Conversation
Size Change: +18 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 87a7321. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4164719159
|
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.
LGTM. It would be good if a keyboard user could also check it cc @alexstine...
I tested this with the KBD and it seems OK - focus moves back as it should to the inserter. |
No it doesn't as the changes to the Link UI to use |
What?
Updates the Link UI component usage in the Nav block list view so that when the user hits
Cancel
the Link UI is closed.Closes #48014
Why?
Because currently
Cancel
does precisely nothing in this context.How?
Passes an
onCancel
handler which sets the state to hide the Link UI. Ensures the Link UI component passes the handler.Testing Instructions
Cancel
Testing Instructions for Keyboard
Screenshots or screencast
Screen.Capture.on.2023-02-13.at.14-56-44.mp4