Skip to content

Button color suggestion does not display like we have in other blocks #48308

Closed

Description

@Anjali29dots

Description

The suggestion does not appear when we select odd colors for the visibility purpose.

Step-by-step reproduction instructions

Go to add Button block.
Go to Block settings and select Style tab.
Go to select text and background color which are not visible.
The suggestion does not appear

Screenshots, screen recording, code snippet

Actual Screenshot: https://share.cleanshot.com/JH6jCDgMQgkNsV935mW6
Expected Screenshot: https://share.cleanshot.com/pps6ygK42bd1C8mZs1w7

Environment info

No response

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

Activity

  1. ghost added
    [Block] Buttons
    on Feb 22, 2023
  2. ghost
    self-assigned this
    on Feb 22, 2023
  3. added
    [Focus] Accessibility (a11y)
    and removed on Jul 20, 2023
  4. added
    [Type] Enhancement
    [Status] In Progress
    on Jul 27, 2023
  5. tyxla commented on Sep 28, 2026

    @tyxla
    Member

    This was fixed in #71959. The contrast checker now shows a warning for the Button block when the text and background colors have poor contrast:

    Image Image

    The color controls are now in the Typography and Background panels, and the warning shows in both. There are also e2e tests for poor and good contrast on buttons.

    Closing as resolved, but feel free to reopen if you still see the issue under any circumstances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Buttons[Focus] Accessibility (a11y)[Status] In Progress[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions