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

handle wp.components.Icon size attribute #406

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

ckanitz
Copy link
Collaborator

@ckanitz ckanitz commented Oct 24, 2023

See the docs: https://developer.wordpress.org/block-editor/reference-guides/components/icon/#size

Size will default to 24 which sets width and height attributes to the SVG markup at the backend, resulting in a "square image". That's not what we want for e.g. divider graphics.

We handle --icon-size via a wrapper with class icon.

@ckanitz ckanitz self-assigned this Oct 24, 2023
@ckanitz ckanitz requested a review from Luehrsen October 24, 2023 14:16
@Luehrsen Luehrsen merged commit 2f3f7d4 into main Oct 24, 2023
@Luehrsen Luehrsen deleted the upd/plugin/components/icon/size-attribute-handling branch October 24, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants