Skip to content

Conversation

@marekhrabe
Copy link
Contributor

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

Copy link
Contributor

@cpapazoglou cpapazoglou left a 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?

Figma

This PR

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.
Copy link
Contributor

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 {
Copy link
Contributor

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;
Copy link
Contributor

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

@marekhrabe
Copy link
Contributor Author

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.

@marekhrabe marekhrabe force-pushed the add/social-preview-modal-upgrade-nudge branch from 18a129a to 8ebc9b2 Compare August 11, 2020 09:59
@marekhrabe marekhrabe merged this pull request into add/social-preview-modal Aug 11, 2020
@marekhrabe marekhrabe deleted the add/social-preview-modal-upgrade-nudge branch August 11, 2020 10:00
marekhrabe added a commit that referenced this pull request Aug 11, 2020
* 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]>
marekhrabe added a commit that referenced this pull request Aug 12, 2020
* 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]>
pereirinha pushed a commit that referenced this pull request Sep 10, 2020
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants