-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Dashicons: Remove non-existent icons from type #67235
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Flaky tests detected in 79cd524. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11973642853
|
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 double-checked that the ids in the CSS file match the types. They match except for the manually added (?) ones at the end of the CSS file:
editor-distractionfree
exerpt-view
format-links
format-standard
post-trash
share1
welcome-edit-page
I don't know much about Dashicons and why these are "manually added" at the bottom, but those ids do seem to work as expected (as tested on Storybook). Maybe we should add them to the types as well?
Thanks for the review!
These icons probably exist for backwards compatibility. There are equivalents to these icons.
|
Ah ok, makes sense. Let's keep it out of the types then. |
What?
I noticed that there were two types of dashicons included that didn't have CSS defined, so I'm going to remove them.
https://github.com/t-hamano/wordpress-develop/blob/a27e6a8ecd5279a45e47ef88d048643740d07b5a/src/wp-includes/css/dashicons.css
Why?
Because these two icon strings don't display anything.
Testing Instructions
npm run build:package-types
gutenberg/packages/block-editor/src/components/block-variation-picker/index.js
Lines 26 to 27 in b4c614f