-
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
Site editor: Simplify the template revert snackbar #50626
Conversation
…removes the need to remove the notice
@Mamaduka after fixing the delete templates notice I realised we could simplify the revert template one if we include the template name as delete does. This way we don't need to clear the notice each as time the snackbar updates with the new template name. |
Size Change: -13 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Flaky tests detected in 2725ca2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4976631036
|
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.
A nice update 👍
What?
Adds the template name to the template revert snackbar
Why?
This makes it act the same as the template delete snackbar, and removes the need to remove the snackbar between reverts as the snackbar updates with new template name.
How?
Adds the rendered name from template object to the snackbar notice
Testing Instructions
Clear customizations
option in overflow menu to remove all customizationsScreenshots or screencast
no-remove.mp4