Skip to content

Color contrast warning appearing incorrectly #43537

Description

@annezazu

Description

After setting color options for a nested block, the parent block seems to start showing the color contrast warning, even if none exist. I am still working out the circumstances for when this happens but have narrowed it down to at least one flow.

Step-by-step reproduction instructions

  1. Add a query loop block.
  2. Change the colors of the post title block within it.
  3. Notice that the color contrast warning appears when selecting the overall query loop block.

Screenshots, screen recording, code snippet

Here's me talking through the problem:

color.warning.mov

Environment info

  • WP 6.0.1
  • Gutenberg 13.9
  • TT2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions