-
Notifications
You must be signed in to change notification settings - Fork 846
Upgrade Nudge: Fix Styling by using @wordpress/editor's Warning component
#12963
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
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: August 6, 2019. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
@wordpress/editor's Warning component
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.
Works well 👍
Ok to merge already, but I wanted to point out these things that you could either fix in this PR or in follow-ups:
|
ockham, Your synced wpcom patch D30168-code has been updated. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
Fixed by e4640ff Fixed by 0bd7b58
Ideally, yeah. However, I've seen a bunch of code and/or styling in core (e.g. in the Edit: E.g. https://github.com/WordPress/gutenberg/blob/21e2dce2b287347e21c3e0618bc8fa8c0c1ef5ca/packages/block-editor/src/components/warning/style.scss#L11-L14 Though that's really just |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
Fixed by e30a44e |
simison
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.
Looking very solid already!
Only things to follow up is I think fine-tuning padding/margins, e.g. there's this on hover:
And the banner seems to jump ~1-2px when selecting the block so it doesn't feel as smooth as it does for "missing block" and similar core alerts.
Multi-selection block styles we can improve in other PR, especially if it's complicated.
Good to merge 👍
|
Not needed for this PR but just noting that we might want to add this colorful border to align visually more with Calypso: We just need to figure out first if it's meant only for banners that are clickable and not for banners that have CTA button separately. It might also just look silly with the thick grey border when hovering to block, let's see... |
|
Can you try with the button vertically centered? |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
|
ockham, Your synced wpcom patch D30168-code has been updated. |
Fixed in 0da343a Also upgraded the copy with a suggestion from #12946 (comment):
The nudge looks like this now: |
zinigor
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.
Works well for me!










Fixes #12946
Changes proposed in this Pull Request:
@wordpress/editor'sWarningcomponentIs this a new feature or does it add/remove features to an existing part of Jetpack?
Screenshots
Testing instructions:
yarn build), and start Docker (yarn docker:up)docker/mu-plugins, e.g. a newly created0-blocks-upgrade.php(needs to start with<?php):define ( 'JETPACK_SHOW_BLOCK_UPGRADE_NUDGE', true );Proposed changelog entry for your changes:
(Covered by whatever we add for #12823)