Skip to content

Enable color-contrast accessibility test and fix all violations #1233

@carols10cents

Description

@carols10cents
Member

Once #1227 is merged in, address this comment:

There are multiple elements that currently fail this test. I have disabled it since I think it needs to be addressed by someone more inclined towards design.

by changing tests/axe-config.js to remove:

'color-contrast': {
            enabled: false,
}

run npm test and make changes to fix all violations where we're using colors that don't contrast enough.

Activity

sorin-davidoi

sorin-davidoi commented on Jan 14, 2018

@sorin-davidoi
Contributor

Colorable can be handy when testing new colour combinations.

p-jackson

p-jackson commented on Jan 22, 2019

@p-jackson
Contributor

I had this idea to use font size and weight to communicate information hierarchy rather than using grey (specifically $main-color-light)

image

Notice the changes to the version number in the heading and the metadata titles on the right.

Dealing with the hyperlink colour is trickier. It's very hard to pick greens with sufficient contrast. There's a reason why blue hyperlinks are ubiquitous ;)

self-assigned this
on Sep 7, 2019
removed their assignment
on Apr 19, 2020
added
C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works
on Feb 11, 2021
added a commit that references this issue on Jul 11, 2025
84a3b5b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @locks@Turbo87@carols10cents@p-jackson@sorin-davidoi

      Issue actions

        Enable color-contrast accessibility test and fix all violations · Issue #1233 · rust-lang/crates.io