-
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
Navigation: Add font size attribute #19127
Conversation
Ah, for crying out loud, I sat on this for too long and we already have #19108 open... 😓 I guess this is still valuable for the font size part though. (Discussing at #19108 (comment) about dropping the first two commits of this PR, and only keep the font size parts) |
719afa0
to
616a07e
Compare
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.
@noahtallen Oh, I missed that! EDIT: Ah, never mind, that comes from CoBlocks. 🙂 |
oh my 😁 my bad! That's some good stuff. We should have that |
Who should we ping on this? I think it should be ready to go. I can't think of any reason to not have it. |
@noahtallen I'm not sure, but the codeowners have been automagically pinged already. 🙂 |
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.
This is working nicely, thanks for the addition.
It'd be great to remove that one classname before merging.
@@ -175,9 +183,15 @@ function Navigation( { | |||
> | |||
<BlockNavigationList clientId={ clientId } /> | |||
</PanelBody> | |||
<PanelBody title={ __( 'Text Settings' ) } className="blocks-font-size"> |
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.
The blocks-font-size
class doesn't seem to do anything, so I think it'd be good to remove it. I did a search of the codebase and it looks like it's only used in end-to-end tests in the paragraph block.
Update: I put together a PR (#19208) to remove it entirely from the codebase. It looks like there used to be styles for this class in the paragraph block, but they've been removed. The e2e tests were updated to use a different classname in that PR.
<PanelBody title={ __( 'Text Settings' ) } className="blocks-font-size"> | |
<PanelBody title={ __( 'Text Settings' ) }> |
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.
Oh good catch! Removed in 6789b26.
I'll merge as soon as tests are clear!
Description
Adds the font size style attributes (both named and custom) to the Navigation block.
How has this been tested?
Tested on macOS 10.15.2, Chrome 78, Gutenberg Docker environment, Twenty Twenty theme.
Screenshots
Testing instructions
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: