Skip to content

Site editor: show color warning if poor contrast colors are picked #29457

@annezazu

Description

@annezazu

Description

If you select a color for the site title that results in poor contrast, no notice is given. This is feedback from the FSE Outreach Program's second call for testing.

Step-by-step reproduction instructions

Please list the steps needed to reproduce the bug. For example:

  1. Use a block based theme and the latest version of Gutenberg to setup the FSE experience.
  2. Go to "Site Editor (beta)"
  3. Select the Site Title block and change the block settings so that the color contrast is poor for the text (or vice versa for the background).
  4. See no notice.

Expected behaviour

I expect a notice about poor contrast similar to what happens when you do so in the post/page editor:

Screen Shot 2021-03-01 at 3 53 24 PM

Actual behaviour

No warning given.

Screenshots or screen recording (optional)

contrast.warning.mov

WordPress information

  • WordPress version: 5.6.2
  • Gutenberg version: 10.0.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progress[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