Skip to content
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

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

t-hamano
Copy link
Contributor

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

@t-hamano t-hamano self-assigned this Nov 22, 2024
@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Nov 22, 2024
@t-hamano t-hamano requested a review from a team November 22, 2024 13:36
@t-hamano t-hamano marked this pull request as ready for review November 22, 2024 13:36
Copy link

github-actions bot commented Nov 22, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mirka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link

Flaky tests detected in 79cd524.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11973642853
📝 Reported issues:

Copy link
Member

@mirka mirka left a 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?

@t-hamano
Copy link
Contributor Author

Thanks for the review!

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?

These icons probably exist for backwards compatibility. There are equivalents to these icons.

  • exerpt-view: This is a typo, the equivalent icon to this icon is excerpt-view.
  • editor-distractionfree: Same as editor-expand icon (f211)
  • format-links: Same as admin-links icon (f103)
  • format-standard: Same as admin-post icon (f109)
  • post-trash: Same as trash icon (f182)
  • share1: Same as share icon (f237)
  • welcome-edit-page: Same as welcome-write-blog icon (f119)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants