gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

In Wordpress 5.9 accessibility issue is coming in block editor panel color setting

Open theminaldiwan opened this issue 4 years ago • 4 comments

Description

In Wordpress 5.9 accessibility issue is coming in block editor panel color setting when we open the color palette same time setting panel highlighted "Text" with foreground and background color. we faced issue is the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds. Elements must have sufficient color contrast.

To solve this issue we need to check element has insufficient color contrast of 4.01(foreground color: #007cba, background color: #f0f0f0, font size: 9.8pt (13px), font weight: normal). Expected contrast ratio of 4.5:1

Step-by-step reproduction instructions

1.Go to editor side 2.Open block editor color panel setting 3.Scan the selected portion of color panel setting

Screenshots, screen recording, code snippet

accesibility-text highlight-text

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

theminaldiwan avatar Mar 25 '22 06:03 theminaldiwan

Hi Team, Do we have any specific selected color code which needs to be used?. Or we are good to go for the fix on this ticket?

himali-patel avatar Mar 31 '22 11:03 himali-patel

Hi We need to change color contrast ratio from 4.0.1 to above 4.5 . Thanks

theminaldiwan avatar Mar 31 '22 12:03 theminaldiwan

Hi, This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] avatar Sep 28 '22 02:09 github-actions[bot]

To solve this issue we need to check element has insufficient color contrast of 4.01(foreground color: #007cba, background color: #f0f0f0, font size: 9.8pt (13px), font weight: normal). Expected contrast ratio of 4.5:1

Untitled

I wasn't able to see the actual contrast now with the suggested colors, this is what I see. However, you can see that the editor picks up that this is not a good color contrast. I will be closing this issue now.

WordPress 6.0.1 Gutenberg 14.1.1

Feel free to re-open if that is not the case

Thelmachido avatar Sep 28 '22 09:09 Thelmachido