Skip to content
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

Position Jumpstart dialog close button same as upgrade dialog close button #8961

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

gravityrail
Copy link
Contributor

@gravityrail gravityrail commented Mar 1, 2018

Fixes #7666 and #8744

Changes proposed in this Pull Request:

Important design note

Because this page now reuses the Jetpack Dialogue component that powers other modals, it doesn't have the gap between the top two cards.

This could be implemented by making the Dialogue component transparent, and requiring wrapped components to implement cards where they want translucency. I didn't do this because I wasn't sure if anyone cared either way. Let me know if you need this refinement.

Testing instructions:

  • On a Jetpack site that is already connected
  • Open wp shell and run Jetpack_Options::update_option( 'jumpstart', 'new_connection' )
  • Open /wp-admin/admin.php?page=jetpack#/jumpstart
  • Dialog should have close button inside dialog frame; hitting esc, clicking background, or clicking close button should all close the dialog.
  • Dialog should also work properly with assistive devices/programs like screen readers.

Screenshot

Before:

jumpstart-before

After:

jumpstart-after

After, mobile (Pixel XL):

screenshot_20180301-160433

Proposed changelog entry for your changes:

Moved the button for closing the Jumpstart modal closer to the dialog so it's more visible.

@gravityrail gravityrail requested a review from a team as a code owner March 1, 2018 21:05
@gravityrail gravityrail added [Focus] FixTheFlows [Status] Needs Design Review Design has been added. Needs a review! labels Mar 1, 2018
@gravityrail gravityrail self-assigned this Mar 1, 2018
@gravityrail gravityrail added the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Mar 1, 2018
@rickybanister
Copy link

The new location of the X looks great. This is ready to merge.

We might want to consider adding an italic link that says 'not right now' below the call to action button for explicitness. I know there's been some debate about redundancy in the past, but when you want a modal to go away I think a 'belt & suspenders' approach makes sense.

@designsimply
Copy link

Tested and confirmed using https://jurassic.ninja/create?jetpack-beta&nojetpack&branch=fix/jumpstart-dialog-close-button that I can see a dismiss "x" on the jumpstart dialog on mobile.

Seen at https://relieved-roborovski.jurassic.ninja/wp-admin/ running WordPRess 4.9.4 and Jetpack 5.9-beta-17752-bea5674-fix_jumpstart-dialog-close-button using Safari on iPhone 6S, iOS 11.2.6.

screen shot 2018-03-05 at mon mar 5 3 23 01 pm
Seen at https://relieved-roborovski.jurassic.ninja/wp-admin/admin.php?page=jetpack#/jumpstart running WordPRess 4.9.4 and Jetpack 5.9-beta-17752-bea5674-fix_jumpstart-dialog-close-button using Firefox 58.0.2 on macOS 10.13.3.

@Viper007Bond Viper007Bond self-requested a review March 7, 2018 00:46
Copy link
Contributor

@Viper007Bond Viper007Bond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Viper007Bond Viper007Bond merged commit b9ddc11 into master Mar 7, 2018
@Viper007Bond Viper007Bond deleted the fix/jumpstart-dialog-close-button branch March 7, 2018 00:57
Copy link
Contributor

@jaswrks jaswrks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Found just two minor issues.

@@ -163,7 +163,6 @@ function jetpack_get_module_i18n( $key ) {
'seo-tools' => array(
'name' => _x( 'SEO Tools', 'Module Name', 'jetpack' ),
'description' => _x( 'Better results on search engines and social media.', 'Module Description', 'jetpack' ),
'recommended description' => _x( 'Better results on search engines and social media.', 'Jumpstart Description', 'jetpack' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to revert this file to avoid having it show up in this PR. See: #8981

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the previous upstream change in master, this didn't actually make it into the merge: b9ddc11

top: rem( 100px );
opacity: .90;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No newline at end of file.

@jeherve jeherve removed the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Mar 7, 2018
@oskosk oskosk added this to the 6.0 milestone Mar 9, 2018
oskosk added a commit that referenced this pull request Mar 16, 2018
dereksmart pushed a commit that referenced this pull request Mar 27, 2018
* Changelog 6.0: create base for changelog.

* Add #8938 to changelog

* Add #8962 to changelog

* Add #8974 to changelog

* Add #8975 to changelog

* Add #8978 to changelog

* Add #8867 to changelog

* Add #8937 to changelog

* Add #8961 to changelog

* Add #8855 to changelog

* Add #8944 to changelog

* Add #8973 to changelog

* Add #8977 to changelog

* Add #8979 to changelog

* Add #8980 to changelog

* Add #8982 to changelog

* Add #8983 to changelog

* Add #8984 to changelog

* Add #8986 to changelog

* Add #9005 to changelog

* Add #9010 to changelog

* Add #9012 to changelog

* Add #9021 to changelog

* Add #9022 to changelog

* Add #9056 to changelog

* Add #9061 to changelog

* Add #9079 to changelog

* Add #9080 to changelog

* Add #9088 to changelog

* Add #9096 to changelog

* Add #9097 to changelog

* Add #9100 to changelog

* Add #9107 to changelog

* Add #8969 to changelog

* Add #8993 to changelog

* Add #9003 to changelog

* Add #9031 to changelog

* Add #8945 to changelog

* Add #9052 to changelog

* Add #9058 to changelog

* Add #9066 to changelog

* Add #9076 to changelog

* Add #9053 to changelog

* Add #9108 to changelog

* Add #9135 to changelog

* Add #9148 to changelog

* Add #9125 to changelog

* Add #9137 to changelog

* Added testing instructions for 6.0.

* Added IS testing instructions, huge props to @tiagonoronha.

* Added #8498 to changelog.

* Added #8954 to changelog.

* Added #8985 to changelog.

* add #9027

* add #9112 to changelog

* add #9136 to changelog

* add #9102 to changelog

* add #9093 to changelog

* add #9062 to changelog

* add #9172 to changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] FixTheFlows [Status] Needs Design Review Design has been added. Needs a review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jumpstart: Dismiss button could be made more obvious
8 participants