Skip to content

Slightly increase contrast for footer text to meet WCAG guidelines #4823

@lee0c

Description

@lee0c

Contribution guidelines

I want to suggest an idea and checked that ...

  • ... to my best knowledge, my idea wouldn't break something for other users
  • ... the documentation does not mention anything about my idea
  • ... there are no open or closed issues that are related to my idea

Description

The footer text "Made with" (full section reads "Made with Material for MkDocs") which is colored by --md-footer-fg-color--lighter does not meet WCAG contrast guidelines in at least some palettes of this theme. I am using the black palette, but also notice this on the documentation for Material for MkDocs.

I found that changing the value from #ffffff4d to #ffffff73 in browser met contrast guidelines while still allowing for visual difference between the plain text and the link next to it, but I am not a front end dev and am not sure how that translates into the hsla setup used in your stylesheet. Perhaps transparency of 0.4 instead of 0.3?

Use Cases

This would be a small accessibility fix that would benefit any low vision users. It also helps anyone using relevant palettes to meet WCAG guidelines by default, without having to edit colors further.

Screenshots / Mockups

Current coloration in black palette:

image

Here is my version with computed value #ffffff4d replaced with #ffffff73 which meets contrast guidelines

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions