-
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
Update page template picker after design review #20883
Conversation
Size Change: +238 B (0%) Total Size: 857 kB
ℹ️ View Unchanged
|
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! Thanks for the improvements and for the new hook 👏 Tested on both iOS and Android.
const preferredColorScheme = usePreferredColorScheme(); | ||
const containerBackgroundColor = | ||
preferredColorScheme === 'dark' ? 'black' : 'white'; | ||
const previewContainerStyle = usePreferredColorSchemeStyle( |
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.
This way is nicer to see =)
Description
Fixes some of the items in wordpress-mobile/gutenberg-mobile#2012
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#2020
This PR adjusts the modal header bar and adds some padding to the template preview so it aligns with where the editor content would start if it had a title:
It also introduces a new
usePreferredColorSchemeStyle
hook to make dark mode support a bit nicer in functional components.Checklist: