-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[Mobile] - Font size support for the blocks: Button, Preformatted and Heading levels. #35314
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
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! |
enejb
left a comment
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,Codeas well as extend support for the levels (h1, h2, h3, etc.) of theHeadingblock.theme.jsonsee 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,VerseandPreformatted. This is currently being investigated and hopefully addressed in another PR.How has this been tested?
Test case 1 - Button block
ButtonsblockTest case 2 - Preformatted (Font size)
PreformattedblockTest case 3 - Preformatted (Text and background colors)
PreformattedblockTest case 4 - Heading levels
HeadingblockScreenshots
Types of changes
New feature
Checklist:
*.native.jsfiles for terms that need renaming or removal).