-
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
RNMobile: Remove unneeded/duplicate css #18759
RNMobile: Remove unneeded/duplicate css #18759
Conversation
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.
Changes look good when tested in the wpandroid and wpios, or in the example app. Thanks for looking into that @mchowning
@@ -1,3 +1,5 @@ | |||
$floating-toolbar-height: 44; |
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.
Note: I checked we only used this one here.
@@ -38,10 +37,7 @@ const HeadingEdit = ( { | |||
identifier="content" | |||
tagName={ 'h' + attributes.level } | |||
value={ attributes.content } | |||
style={ { | |||
...style, | |||
minHeight: styles[ 'wp-block-heading' ].minHeight, |
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.
I wonder why we had that in the first place. I searched the file history, and unfortunately it comes from a big merge. Maybe @Tug knows better if this is safe to change.
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.
Yeah it comes from this PR (related gb-mobile PR).
From what I understand it was used to fix a bug/inconsistency in Aztec related to the placeholder not being displayed when no content was given. I'm not sure if this has been fixed in Aztec, maybe @marecar3 knows? Otherwise @mchowning might have tested it and made sure that was not an issue before removing it?
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.
Just double-checked and the placeholders are showing up for headings, paragraphs, etc. for me.
Note a recent PR #18155 for |
Tested and it looks like that |
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.
LGTM - I'll update the gb-mobile PR
29bf5ff
to
b0dd531
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.
Nice job here!
LGTM!
b0dd531
to
0337520
Compare
Description
This is some css cleanup that was included as a part of the fix for wordpress-mobile/gutenberg-mobile#992 in https://github.com/wordpress-mobile/gutenberg-mobile/pull/1560/files.
How has this been tested?
Inusure that the following components display properly with no excess padding:
Checklist: