-
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
Prefer @wordpress/icons over dashicons in docs and tests #20094
Conversation
packages/edit-post/src/components/header/plugin-more-menu-item/index.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/header/plugin-more-menu-item/index.js
Outdated
Show resolved
Hide resolved
focusable="false" | ||
height={20} | ||
role="img" | ||
viewBox="0 0 20 20" |
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.
Do we have changes that adjust CSS for a different size?
Ignore if yes. I’m on mobile and it’s hard to scroll 😅
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 don't get the question :) I changed the icon here so it's a different viexbox
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.
Lol, it's hard to explain. Dashicons have a different size than SVG icon but I think it's handled by the fact that you no longer use Dashicon here. Ignore me :)
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.
Yes, for dashicons that are still used we use a trick in viewport (-2) to center them properly even if they're smaller.
Nice. What’s the plan for server- side registration of icons? It looks like we are deprecating strings as a way to list them. |
Should be a harmless PR just updating icons used in docs and tests