Skip to content

ContrastChecker: Cover block overlay and text color incorrect #50531

@richtabor

Description

@richtabor

I've noticed that the ContrastChecker does not work well with the Cover block's Overlay and Text colors. Overall its very inconsistent, but I have noticed a few things in particular:

A. The notice shouldn't be fired in the default state (no text and overlay colors):

CleanShot 2023-05-10 at 16 35 29

B. The ContrastChecker tends to five a false positive for accessible colors. i.e showing the notice when the color does have appropriate contrast. The checker should use to the Overlay fallback color (perhaps that should be set in the attribute, instead of CSS directly):

CleanShot.2023-05-10.at.16.37.03.mp4

C. Changing the Overlay color never fires the ContrastChecker.

Metadata

Metadata

Assignees

Labels

Needs Accessibility FeedbackNeed input from accessibility[Block] CoverAffects the Cover Block - used to display content laid over a background image[Feature] ColorsColor management[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions