-
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
Edit Post: Fix revision button misalignment #55659
Conversation
Size Change: +4 B (0%) Total Size: 1.7 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.
It's a shame we need an override here, but I think this works fine until we revisit the document Inspector more holistically.
Thanks for the review, @jameskoster!
Yes, there may be better approaches in the future 😅 |
What?
This PR fixes the misalignment of the revision button icon and text in the post editor.
Before
After
Why?
The CSS for the Post Editor revision button shouldn't have changed in several years. Perhaps some enhancement to the Button component caused the CSS to have a lower priority than the button component's default style.
How?
Added
.components-button
class to increase CSS specificity. This approach can be seen for example here and here.Testing Instructions