-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix Buton Group Font settings #2233
Conversation
Bundle Size Diff
|
Plugin build for 46a2891 is ready 🛎️!
|
E2E TestsPlaywright Test Status: Performance ResultsserverResponse: 223.8, firstPaint: 130.15, domContentLoaded: 1594.4, loaded: 1594.95, firstContentfulPaint: 3749.85, firstBlock: 5758.35, type: 13.33, minType: 12.09, maxType: 15.98, typeContainer: 8.51, minTypeContainer: 7.08, maxTypeContainer: 11.4, focus: 43.51, minFocus: 34.31, maxFocus: 56.66, inserterOpen: 27.43, minInserterOpen: 24.99, maxInserterOpen: 33.98, inserterSearch: 6.28, minInserterSearch: 5.9, maxInserterSearch: 6.85, inserterHover: 3.86, minInserterHover: 3.52, maxInserterHover: 4.66, listViewOpen: 149.17, minListViewOpen: 136.7, maxListViewOpen: 169.71 |
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.
Looks good, left a small comment to confirm you have tested that part.
@@ -157,7 +157,7 @@ public function render_css( $block ) { | |||
'property' => 'line-height', | |||
'value' => 'lineHeight', | |||
'format' => function( $value, $attrs ) { | |||
return is_numeric( $value ) ? $value . 'px' : $value; | |||
return ! is_string( $value ) && is_numeric( $value ) ? $value . 'px' : $value; |
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.
Did you test it with legacy blocks to confirm this works as well with everything?
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.
By legacy, I will refer to the first version, which used the int
as values. Those will be the same since they will be pixels.
The more recent version, which uses the unit input field, is now fixed when using the unitless mode.
@Soare-Robert-Daniel tested and everything works well 👍 |
🎉 This PR is included in version 2.6.13 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #2163
Summary
Note
Be aware of #2177
Screenshots
Test instructions
Checklist before the final review