-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Icons: Add align-item related icons #66242
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: -12 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
It's a shame the text alignment icons weren't namespaced 😅 Do you think it would make sense to name these icons so that they're grouped with the other 'justify...' ones? IE:
|
Yes that makes sense to me :) |
* Icons: Add align-item related icons * Use `justify` prefix Co-authored-by: t-hamano <[email protected]> Co-authored-by: jameskoster <[email protected]>
What?
This PR adds the following five icons:
alignItemBottom
justifyBottom
alignItemCenter
justifyCenterVertical
alignItemSpaceBetween
justifySpaceBetweenVertical
alignItemStretch
justifyStretchVertical
alignItemTop
justifyTop
Why?
Since we already have icons related to justify, I thought it would make sense to add icons related to align as well:
How?
There are already icons with the
align
prefix:The four icons other than
alignNone
should ideally have thetextAlign
prefix instead of the alignprefix
, but this cannot be changed to ensure backward compatibility.Therefore, I used theI added thealignItem
prefix for the newly added icons.justify
prefix to the newly added icon to group it with other justify-related icons. However, because there are name conflicts with the three iconscenter
,spaceBetween
, andstretch
, I added the suffixvertical
.Testing Instructions
npm run storybook:dev
Screenshots or screencast