-
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
Fix the background, arrowUpLeft, keyboardReturn and square icons. #69076
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. |
Size Change: -22 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
I added a fix to add back the
It should work fine now but this should be checked in all the places in the UI mentioned in #59669 , mainly the Link control and the like. I think #59669 wasn't a good solution and the icon size should be determined by the size of the containing Button. Cc @t-hamano The original problem reporteed in #58555 doesn't seem to occurr any longer? |
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.
Thanks, @afercia!
This matches other icon markup in the library.
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 added a fix to add back the
viewBox
of thekeyboardReturn
icon that was removed in #59669
Based on this comment, I checked all the components that use the keyboardReturn
icon and confirmed that there was no misalignment.
What?
Closes #69075
By default, the the background and arrowUpLeft icons aren't visible because of an unexpected
fill="none"
attribute set on their SVG component. Also, they misse the viewbox attribute. The square icon has an unnecessary the background, arrowUpLeft.Why?
Overall, the icons in the icons package should all use consistent props (attributes) passed to the SVG component to avoid unexpected wrong rendering with sizes, default colors etc.
Cc @WordPress/gutenberg-core @WordPress/gutenberg-design
How?
Uses the standard attributes passed to SVG compoent for all the other icons in the icons package.
Testing Instructions
npm run storybook:dev
Testing Instructions for Keyboard
Screenshots or screencast