Skip to content

Color Contrast Issue in Links #240

Open

Description

@mgifford

Title: WCAG 1.4.3: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (#focusedToc)
Tags: Accessibility, WCAG 1.4.3, color-contrast

Issue: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (color-contrast - https://accessibilityinsights.io/info-examples/web/color-contrast)

Target application: Learner Instructions · Digital Acquisition Professional Program Case Study Challenge - https://liascript.github.io/course/?https://raw.githubusercontent.com/usds/ditap-curriculum-update/main/3_Curriculum/3A_DITAP-Core-Curriculum/1_Vendor-Materials/Case%20Study%3A%20Threaded%20Case%20Scenario/Core%20Case%20Study%3A%20Navigating%20Stakeholder%20and%20Decision-Making%20Challenges.md#8

Element path: #focusedToc

Snippet: Learner Instructions

How to fix:
Fix any of the following:
Element has insufficient color contrast of 3.71 (foreground color: #399193, background color: #ffffff, font size: 11.3pt (15px), font weight: normal). Expected contrast ratio of 4.5:1

Environment: Microsoft Edge version 139.0.0.0

====

This accessibility issue was found using Accessibility Insights for Web 2.46.0 (axe-core 4.10.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.

Title: WCAG 1.4.3: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (.notranslate[translate="no"])
Tags: Accessibility, WCAG 1.4.3, color-contrast

Issue: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (color-contrast - https://accessibilityinsights.io/info-examples/web/color-contrast)

Target application: Learner Instructions · Digital Acquisition Professional Program Case Study Challenge - https://liascript.github.io/course/?https://raw.githubusercontent.com/usds/ditap-curriculum-update/main/3_Curriculum/3A_DITAP-Core-Curriculum/1_Vendor-Materials/Case%20Study%3A%20Threaded%20Case%20Scenario/Core%20Case%20Study%3A%20Navigating%20Stakeholder%20and%20Decision-Making%20Challenges.md#8

Element path: button[aria-label="Translations"] > .notranslate[translate="no"]

Snippet: EN

How to fix:
Fix any of the following:
Element has insufficient color contrast of 3.71 (foreground color: #399193, background color: #ffffff, font size: 15.0pt (20px), font weight: normal). Expected contrast ratio of 4.5:1

Environment: Microsoft Edge version 139.0.0.0

====

This accessibility issue was found using Accessibility Insights for Web 2.46.0 (axe-core 4.10.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.

Activity

  1. andre-dietrich commented on Sep 4, 2025

    @andre-dietrich
    Member

    Can you try this out with dark and light background? The colors and the CSS were set by a company, I would like to change this to a better color, when it does not make the dark-mode worse?

    Does the problem persist for the other color-schemes?

    If you need it urgently, we could also support you with a custom color scheme. You can either use @style to overwrite styles or use it to overwrite some of the CSS variables (all variables start with --), you can link a custom style link: url within the header or use this fallback-macro custom, which will add the new variable definitions and add an additional design-button.

    Try the example in the LiveEditor

    <!--
    @custom
    --color-highlight: 2, 255, 0;
    --color-background: 122, 122, 122;
    --color-border: 0, 0, 0;
    --color-highlight-dark: 0, 0, 0;
    --color-highlight-menu: 111, 0, 0;
    --color-text: 0, 0, 255;
    --global-font-size: 1rem;
    --font-size-multiplier: 2;
    @end
    -->
    
    # Customize LiaScript with `@style`
    
    todo
    Image
  2. mgifford commented on Sep 12, 2025

    @mgifford
    Author

    In dark mode I get:

    Title: WCAG 1.4.3: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (.notranslate[translate="no"])
    Tags: Accessibility, WCAG 1.4.3, color-contrast

    Issue: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (color-contrast - https://accessibilityinsights.io/info-examples/web/color-contrast)

    Target application: Digital Acquisition Professional Program Case Study Challenge - https://liascript.github.io/course/?https://raw.githubusercontent.com/usds/ditap-curriculum-update/main/3_Curriculum/3A_DITAP-Core-Curriculum/1_Vendor-Materials/Case%20Study%3A%20Threaded%20Case%20Scenario/Core%20Case%20Study%3A%20Navigating%20Stakeholder%20and%20Decision-Making%20Challenges.md#8

    Element path: button[aria-label="Translations"] > .notranslate[translate="no"]

    Snippet: EN

    Related paths:
    #lia-support-menu

    How to fix:
    Fix any of the following:
    Element has insufficient color contrast of 3.44 (foreground color: #399193, background color: #323232, font size: 15.0pt (20px), font weight: normal). Expected contrast ratio of 4.5:1

    Environment: Microsoft Edge version 139.0.0.0

    ====

    This accessibility issue was found using Accessibility Insights for Web 2.46.0 (axe-core 4.10.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.

    Links

    Now you can find colors that work here:
    https://contrast-finder.tanaguru.com/result.html?foreground=%23399193&background=%23323232&ratio=4.5&isBackgroundTested=false&algo=Rgb&distanceSort=asc

    But you're going to have a challenge meeting WCAG for either dark or light mode if you want the same foreground color to work with a light background. You might be able to get #188295 on #fff but not on a non-black background like #323232

  3. andre-dietrich commented on Oct 1, 2025

    @andre-dietrich
    Member

    As mentioned earlier, in dark-mode we will still have to update all CSS requirements, but in light-mode we should have fixed all color contrast issues ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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