Skip to content

Poor Color Contrast of the Example Pages #25423

@jfc3-dol

Description

@jfc3-dol

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals

What specific section or headline is this issue about?

Active learning: More color choices

What information was incorrect, unhelpful, or incomplete?

The light gray text ( #A9A9A9 ) and yellow background ( #FFFF00 ) on the Yellow and Gray example on this page and the the example page does not have enough color contrast.

The color contrast ratio is 2.2:1 and needs to be 4.5:1 or higher to pass for normal text and 3.0:1 for larger text.

Please see the attached screenshot.

mdn - conditionals - poor color contrast

What did you expect to see?

I expected the examples used would have the correct color contrast to show people what is expected.

Do you have any supporting links, references, or citations?

no

Do you have anything more you want to share?

no

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions