-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove cruft in Button block editor styles #30950
Conversation
@@ -33,50 +33,6 @@ | |||
} | |||
} | |||
|
|||
.wp-block-button__inline-link { |
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.
No longer applicable since:
a74921d#diff-e335a5733e9910d51f3adb7c21b371b738fdc190e6b9b71b19ba2ad45703fea1L153-L155
} | ||
} | ||
|
||
.wp-button-label__width { |
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.
Introduced here:
fb1cc0e#diff-0fd478f79554ac91f10a7020b813e45f77245ddcde593682bab998b2ce2c232cR70
But looks like it was a leftover from some pre-commit WIP since a matching element cannot be found.
Size Change: -564 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
I came across this PR while checking for PRs that haven't been reviewed in a long time. I think this PR is also valid for the latest trunks. Neither Furthermore, I think that the following z-index definition can also be deleted.
|
eb145c7
to
adb43d6
Compare
Thanks for bringing up old stuff Aki! It looks like you're right about the z-index definition too so I've added a commit to remove it. |
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 👍
The styles we remove in this PR are for the editor UI, so they have no effect on the button block markup. Additionally, the editor UI with these selectors no longer exists.
Just a little clean-up of unused editor styles I noticed in the Button block. I'll add some links in review comments to aid review.
How has this been tested?
Before making the changes, searched for matching elements in both the codebase and the editor using Chrome’s DOM inspector and found none. After making the changes, did a superstitious check in the editor for visible changes 👀 .
Types of changes
decruftification
Checklist:
*.native.js
files for terms that need renaming or removal).