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

Prefer @wordpress/icons over dashicons in docs and tests #20094

Merged
merged 2 commits into from
Feb 7, 2020

Conversation

youknowriad
Copy link
Contributor

Should be a harmless PR just updating icons used in docs and tests

@youknowriad youknowriad self-assigned this Feb 7, 2020
@youknowriad youknowriad added the [Type] Code Quality Issues or PRs that relate to code quality label Feb 7, 2020
packages/components/src/icon/README.md Show resolved Hide resolved
focusable="false"
height={20}
role="img"
viewBox="0 0 20 20"
Copy link
Member

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 😅

Copy link
Contributor Author

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

Copy link
Member

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 :)

Copy link
Contributor Author

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.

@gziolo
Copy link
Member

gziolo commented Feb 7, 2020

Nice. What’s the plan for server- side registration of icons? It looks like we are deprecating strings as a way to list them.

@youknowriad youknowriad merged commit a7fbd6e into master Feb 7, 2020
@youknowriad youknowriad deleted the updaaate/docs-test-icons branch February 7, 2020 13:28
@github-actions github-actions bot added this to the Gutenberg 7.5 milestone Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[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