-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Fix media upload placeholder #19497
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.
Looks and works great! Thank you for this @cameronvoell 🎉
Added a small code comment but it's just a small detail. 👍
.iconUploadDark { | ||
fill: $gray-70; | ||
width: 100%; | ||
height: 100%; |
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.
In the dark version of the style we don't need to re-define other than the color properties. All properties that are the same will be copied from the light version.
(Same for all other Dark style definitions)
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.
Ah I see, thanks! Updated f32aab3
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.
Thank you for the update @cameronvoell
Great job! 🎉
Description
Fixes gutenberg-mobile #1544
This change refines the mobile image and video block placeholder shown during upload.
How has this been tested?
See gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#1757
Uploading images can be tested using the WordPress Android and iOS apps using the following steps:
Screenshots
Placeholders before the change:
After Change
Video:
Types of changes
This change is introducing deliberate, consistent styles for both light and dark mode for image and video placeholder icons and backgrounds during upload.
There is also a small refactor for fetching icons in an easier to comprehend way and removing unreachable code.
Checklist: