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

Apply :root to better prevent Gutenberg overriding theme colors. #550

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

richtabor
Copy link
Contributor

Gutenberg's styling applies a background color of #000 automatically to the cover block, even if there's no background image added (instead featuring a background color). TwentyTwenty loads the colors within :root, so this PR does the same, to prevent this conflict from happening with the cover block.

Before:
Screen Shot 2020-06-29 at 11 59 06 AM

After:
Screen Shot 2020-06-29 at 11 58 54 AM

@richtabor richtabor added [Type] Bug Something that is not working as expected [Priority] High This issue/pull request needs resolving before the next release [Status] Needs Review Tracking pull requests that need another set of eyes labels Jun 29, 2020
@richtabor richtabor requested a review from AnthonyLedesma June 29, 2020 16:01
@richtabor richtabor self-assigned this Jun 29, 2020
@cypress
Copy link

cypress bot commented Jun 29, 2020



Test summary

14 0 0 0


Run details

Project Go
Status Passed
Commit 331f657
Started Jul 1, 2020 2:13 PM
Ended Jul 1, 2020 2:14 PM
Duration 01:07 💡
OS Linux Debian - 10.4
Browser Chrome 83

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@AnthonyLedesma
Copy link
Member

Minor tweak to the .has-primary-background-color so as to provide a proper :root specificity.

Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

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

Tested locally and working as expected. @EvanHerman please give it a once over and merge when ready. 👍

@richtabor richtabor added this to the 1.3.3 milestone Jul 1, 2020
@richtabor richtabor merged commit 0985225 into master Jul 1, 2020
@richtabor richtabor deleted the add-root-to-colors branch July 1, 2020 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] High This issue/pull request needs resolving before the next release [Status] Needs Review Tracking pull requests that need another set of eyes [Type] Bug Something that is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants