-
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
Remove unused CSS from LinkControl Apply button #48431
Conversation
Size Change: +1.08 kB (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in a9be052. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4265319783
|
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.
I searched the codebase and couldn't find any situation in the JS where the CSS .block-editor-link-control__search-submit
was used. I also searched for any instances of xblock-editor-link-control__search-submit
and couldn't find anything in the codebase. This seems safe.
I did find a reference to block-editor-link-control__search-submit
in the LinkControl README.md
. Is it worth removing it from there too?
Alternatively I guess we could reinstate the class but just ensure no CSS is applied. That way any 3rd party targetting that class still gets the styles. |
@jeryj Thanks for review. I made a change. Now seeking a 👍 |
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.
Seems very safe 👍🏻
What?
Removes an unused, legacy
classnameCSS code from the submit/apply buton in Link Control.Why?
Because it's not in use.
How?
Remove
class andany CSS references.Testing Instructions
Check Link Control appears as per
trunk
.Testing Instructions for Keyboard
Screenshots or screencast