Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Fix Missing Button Colors #5470

Closed
wants to merge 1 commit into from
Closed

Fix Missing Button Colors #5470

wants to merge 1 commit into from

Conversation

adrianduffell
Copy link
Contributor

@adrianduffell adrianduffell commented Oct 23, 2020

Fixes #5345

The <Button> component from @wordpress/components was missing color styles. This is related to a change in @wordpress/base-styles where a different technique for providing the default button colors was implemented in WordPress/gutenberg#24408.

As a temporary measure, this PR restores the previous code by copying it directly to the project’s SCSS. The change in @wordpress/base-styles is intended to be investigated further at a later date.

Detailed test instructions:

  • Ensure your WordPress profile is using the default admin color scheme.
    Screen Shot 2020-10-23 at 1 06 44 pm

  • Start the Onboarding Wizard. Confirm the Continue button is white text on blue background.
    Screen Shot 2020-10-23 at 12 39 32 pm

  • Go to the WooCommerce home screen. Confirm the notes have action buttons with a blue border, blue text, and transparent background.
    Screen Shot 2020-10-23 at 12 22 08 pm

@samueljseay
Copy link
Contributor

Testing well for me 🚀 Looks like we still have a flaky e2e test but its unrelated to these changes

@adrianduffell
Copy link
Contributor Author

Thanks @samueljseay ! I'll take a look at the failing e2e test since it's blocking this merge.

@adrianduffell adrianduffell added status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. and removed [Status] Needs Review labels Oct 26, 2020
@adrianduffell
Copy link
Contributor Author

The e2e is now passing in Travis. I also wasn't able to reproduce it locally. I think we can ignore it for now.

A new Travis issue has surfaced with PHP tests failing under Composer v2. Marking this as blocked until PR #5462 lands.

The <Button> component styles from @wordpress/components were missing color styles. This is due to a change in @wordpress/base-styles where a different technique for providing the default button colors was implemented in WordPress/gutenberg#24408.

As a temporary measure, this restores the previous code by copying it here directly.
@samueljseay
Copy link
Contributor

@adrianduffell I think we may want to close this one in favor of #5491

@adrianduffell
Copy link
Contributor Author

@samueljseay agreed, the other PR looks like a better solution.

@adrianduffell adrianduffell deleted the fix/ghost-buttons branch November 1, 2020 23:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: blocked The issue is blocked from progressing, waiting for another piece of work to be done.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OBW Styles: White on white buttons
2 participants