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

Fix demo content cover block text color #44174

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

ajlende
Copy link
Contributor

@ajlende ajlende commented Sep 14, 2022

What?

Fix the demo content cover block text color.

Why?

We want the content on our demo to look nice and be color accessible.

How?

The external URL that the demo cover block uses causes FastAverageColor used in the is-dark/is-light heuristic to fail because of a tainted canvas due to a CORS error. Manually setting the text color for the demo is the most straightforward way to fix it right now.

Testing Instructions

  1. From wp-admin select Gutenberg > Demo
  2. See that the cover block has white text

Screenshots or screencast

Before

before

After

after

The external URL that the demo cover block uses causes FastAverageColor used in
the is-dark/is-light heuristic to fail because of a tainted canvas due to a CORS
error. Manually setting the text color for the demo is the most straightforward
way to fix it right now.
@ajlende ajlende added the [Type] Bug An existing feature does not function as intended label Sep 14, 2022
@ajlende ajlende self-assigned this Sep 14, 2022
Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

That was easy. Nice!

To be clear, I can't actually test this, the demo content takes me to http://local-wordpress.local/wp-admin/gutenberg and doesn't show the content, but I'm fairly sure that's a vestige of me using Local instead of Docker. Code changes look good.

Copy link
Contributor

@scruffian scruffian left a comment

Choose a reason for hiding this comment

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

LGTM

@scruffian scruffian merged commit 5d31ad8 into trunk Sep 15, 2022
@scruffian scruffian deleted the fix/demo-content-cover-text-color branch September 15, 2022 17:09
@github-actions github-actions bot added this to the Gutenberg 14.2 milestone Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants