-
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
[Mobile] - Font size support for the blocks: Button, Preformatted and Heading levels. #35314
Conversation
… and Heading sublevels
Size Change: -1 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Test case 2 - Worked as expected |
Overall nice work. |
Nice catch! I'll work on a fix for that |
# Conflicts: # packages/block-library/src/button/edit.native.js
…t size units in the PlainText component
This is also fixed now, can you check it again? Thanks! |
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.
Code changes look great!
Nice catch! I'll create an issue to handle this in another PR. Thanks for the review! |
Description
This PR continues to add support for font size to other pending blocks:
Button
,Preformatted
,Code
as well as extend support for the levels (h1, h2, h3, etc.) of theHeading
block.theme.json
see this example.getPxFromCssUnit
.NOTE: On iOS, there's a current issue where changing the font size is not reflected visually for the following blocks:
Heading
,Verse
andPreformatted
. This is currently being investigated and hopefully addressed in another PR.How has this been tested?
Test case 1 - Button block
Buttons
blockTest case 2 - Preformatted (Font size)
Preformatted
blockTest case 3 - Preformatted (Text and background colors)
Preformatted
blockTest case 4 - Heading levels
Heading
blockScreenshots
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).