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

Masterbar: style Recovery mode button #12485

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented May 29, 2019

Changes proposed in this Pull Request:

The button was added in #12467.
This commit styles it so:

  • It looks similar to the core Recovery mode button when seeing the default Masterbar.
  • It uses the Calypso colors when the Masterbar is loaded by a user using Calypsoify

See discussion here to learn more about this:

#12467 (comment)

Before

After with the default Masterbar

screenshot 2019-05-29 at 16 22 59

After with Calypsoify on

screenshot 2019-05-29 at 16 22 29

Testing instructions:

  • In wp-includes/load.php, locate the wp_is_recovery_mode function. Set it to return true.
  • Under Jetpack > Settings > Writing, enable the WordPress.com Toolbar.
  • Go to http://yoursite/wp-admin/plugins.php?calypsoify=1
  • You should see the button looking as in the screenshot above, with Calypsoify on.
  • The button should disappear on mobile viewports.
  • Go to http://yoursite/wp-admin/
  • Calypsoify should now be disabled, and the button should still be there but in a different color, matching the screenshot above.

Proposed changelog entry for your changes:

  • WordPress.com Toolbar: add colors to Recovery Mode button.

The button was added in #12467.
This commit styles it so:
- It looks similar to the core Recovery mode button when seeing the default Masterbar.
- It uses the Calypso colors when the Masterbar is loaded by a user using Calypsoify
@jeherve jeherve added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review To request a review from Crew. Label will be renamed soon. [Status] Needs Design Review Design has been added. Needs a review! [Pri] Low [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Feature] Calypsoify labels May 29, 2019
@jeherve jeherve added this to the 7.5 milestone May 29, 2019
@jeherve jeherve requested a review from a team May 29, 2019 14:30
@jeherve jeherve requested a review from a team as a code owner May 29, 2019 14:30
@jeherve jeherve self-assigned this May 29, 2019
@scottsweb scottsweb added [Status] Design Review Complete and removed [Status] Needs Design Review Design has been added. Needs a review! labels May 29, 2019
@scottsweb
Copy link
Contributor

This looks great to me 👍

@jetpackbot
Copy link

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: June 4, 2019.
Scheduled code freeze: May 28, 2019

Generated by 🚫 dangerJS against 3e715ba

@dereksmart dereksmart merged commit 873fe6f into master Jun 19, 2019
@dereksmart dereksmart deleted the add/recovery-admin-button-colors branch June 19, 2019 16:09
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Needs Review To request a review from Crew. Label will be renamed soon. labels Jun 19, 2019
jeherve added a commit that referenced this pull request Jun 20, 2019
jeherve added a commit that referenced this pull request Jun 27, 2019
The button was added in #12467.
This commit styles it so:
- It looks similar to the core Recovery mode button when seeing the default Masterbar.
- It uses the Calypso colors when the Masterbar is loaded by a user using Calypsoify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Calypsoify [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Pri] Low [Status] Design Review Complete [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants