-
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
Add new HeadingLevel
icons
#50856
Add new HeadingLevel
icons
#50856
Conversation
Size Change: 0 B Total Size: 1.4 MB ℹ️ View Unchanged
|
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.
Since this just adds the icons, which they already should have been, thanks for the PR.
the alignemnt of icon to text doesn't seem that balanced, though, with the "Heading" text sitting a little low. It's probably best to avoid using these icons next to text in that manner, or it may be an issue with the button component.
I believe the mobile apps also use these icons, or variants thereof, so it could be good to look for any duplicates there. Thanks again!
@jasmussen
It's definitely a bit distracting. Perhaps this is a font-family issue. Changing the font-family of the document to Anyway, since this PR is not the cause, I would like to merge 👍 |
Part of ##50520;
Related to: #46003, #50402
What?
This PR adds the following six icons to the
icons
package:HeadingLevel1
HeadingLevel2
HeadingLevel3
HeadingLevel4
HeadingLevel5
HeadingLevel6
Why?
As noted in this comment, the icons representing the heading level are used in the Heading block and the Site Title block. These icons are hard coded and not optimized for size 24.
Since these icons already exist in the Figma library, it would make sense to add this to the
icons
package and apply it to these blocks.How?
I used this SVG data provided by @jasmussen 🙏
Testing Instructions
npm run storybook:dev
packages/block-library/src/code/edit.js
).Code
Related Issue/PR
In the heading block where these icons are used, there is an associated issue/PR:
Once this PR is merged, I believe that these icons can also be used in #46003 to remove the hard-coded heading icon data.
I think we need to continue to discuss the heading dropdown UI changes that are on the agenda for #50402.