-
Notifications
You must be signed in to change notification settings - Fork 847
Social Previews: Upgrade Nudge in Modal #16744
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
Social Previews: Upgrade Nudge in Modal #16744
Conversation
cpapazoglou
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.
Thanks @marekhrabe for your efforts on this! Generally is seems and works as expected. I just left some minor comments so that we can make it perfect 🎉 !
It seems that the image should be vertically centered?
Also, I am not sure if I would prefer the image being centered or full width (since it is an SVG) in mobile
| * availabile. | ||
| */ | ||
| const extensionAvailableOnPlan = getJetpackExtensionAvailability( 'social-previews' ); | ||
| // TODO: remove before submitting PR for a review. |
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.
It seems the false here should be removed (after testing & before merging)?
| margin-bottom: 2em; | ||
| padding-left: 1em; | ||
|
|
||
| li { |
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 would suggest adding
line-height: 20px;
font-size: 14px;in order to match the design
| } | ||
|
|
||
| .jetpack-social-previews__upgrade-heading { | ||
| font-size: 1.9em; |
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 for me learning up... How do you manage effortlessly using em when the design has px ❓
|
Truly fullwidth image started pushing the text content much lower, I’ve decided to put a max-width on it so the text stays reasonably above the fold. |
18a129a to
8ebc9b2
Compare
* add ability for extensions to load images from the jetpack dir * add temporary override for availability check * add first iteration of the upgrade nudge * Update styles * fix typo Co-authored-by: Michael P. Pfeiffer <[email protected]>
* update social-previews dependency * add basic modal functionality * add prop overrides for individual previews * connect modal to post data * rewrite upgrade nudge placeholder * remove unused select * upgrade nudge compat * Update extensions/blocks/social-previews/modal.js Co-authored-by: Damián Suárez <[email protected]> * [not verified] extracted the upgrade component to avoid future conflicts * extracted featured image url logic * use optional chaining * Update/social preview modal styles (#16745) * Social Previews: update modal styles * Social Previews: add icons to modal * Social Previews: make icon gray * Social Previews: updates styles for mobile * Social Previews: refactor modal to inject the icon Co-authored-by: cpap <[email protected]> * Use Gutenberg breakpoints * Remove color-studio dependency in favor of Gutenberg colors * Remove atoms colors dependency in favor of Gutenberg colors * Social Previews: Upgrade Nudge in Modal (#16744) * add ability for extensions to load images from the jetpack dir * add temporary override for availability check * add first iteration of the upgrade nudge * Update styles * fix typo Co-authored-by: Michael P. Pfeiffer <[email protected]> * change approach for including image * Restructure styles for improved maintainability * Fix upgrade nudge modal padding * removed debug code * Adjust font sizes in nudge modal * Change TabPanel orientation to vertical for correct arrow key navigation Co-authored-by: Damián Suárez <[email protected]> Co-authored-by: Harris Papazolgou <[email protected]> Co-authored-by: cpap <[email protected]> Co-authored-by: Michael P. Pfeiffer <[email protected]>
* update social-previews dependency * add basic modal functionality * add prop overrides for individual previews * connect modal to post data * rewrite upgrade nudge placeholder * remove unused select * upgrade nudge compat * Update extensions/blocks/social-previews/modal.js Co-authored-by: Damián Suárez <[email protected]> * [not verified] extracted the upgrade component to avoid future conflicts * extracted featured image url logic * use optional chaining * Update/social preview modal styles (#16745) * Social Previews: update modal styles * Social Previews: add icons to modal * Social Previews: make icon gray * Social Previews: updates styles for mobile * Social Previews: refactor modal to inject the icon Co-authored-by: cpap <[email protected]> * Use Gutenberg breakpoints * Remove color-studio dependency in favor of Gutenberg colors * Remove atoms colors dependency in favor of Gutenberg colors * Social Previews: Upgrade Nudge in Modal (#16744) * add ability for extensions to load images from the jetpack dir * add temporary override for availability check * add first iteration of the upgrade nudge * Update styles * fix typo Co-authored-by: Michael P. Pfeiffer <[email protected]> * change approach for including image * Restructure styles for improved maintainability * Fix upgrade nudge modal padding * removed debug code * Adjust font sizes in nudge modal * Change TabPanel orientation to vertical for correct arrow key navigation Co-authored-by: Damián Suárez <[email protected]> Co-authored-by: Harris Papazolgou <[email protected]> Co-authored-by: cpap <[email protected]> Co-authored-by: Michael P. Pfeiffer <[email protected]>
Fixes #16729
Changes proposed in this Pull Request:
Jetpack product discussion
—
Does this pull request change what data or activity we track or use?
no
Testing instructions:
Proposed changelog entry for your changes:
none