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
Fix issue with invisible reset template hover state. #28912
Conversation
Size Change: -3 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
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.
Nice catch @jasmussen! Great testing instructions too! ✨ As an aside, did we intend to stack the buttons in this notice? It feels pretty weighty here.
Before |
---|
After
Kapture.2021-02-23.at.09.05.20.mp4
It does feel pretty heavy. I think the whole notice component needs complete revamp, honestly, so I'm tempted to postpone that refinement until we get a chance to do that. Thanks for the review! |
Description
When you make a custom post template and open the editor, then change the custom post template and reload the editor, you get a notice that the template has changed. Observe how the hover is a bit broken:
That's because the 2nd button is both
primary
andsecondary
.Making it just secondary fixes the issue:
How has this been tested?
Try pasting this in your functions.php:
Then create a new "podcast". Then while that podcast screen is open, edit the block template, save, and reload.
Checklist: