Skip to content

#grid Text color contrast is less than 4.5:1 when item receives focus in Light 2026 and Dark 2026 themes: A11y_DocumentDB for VS Code Extension_Adding new connection_Contrast #778

Open

Description

@kapilvaishna

GitHub Tags

#A11yTCS; #E2E_DocumentDB_Win32_JUNE2026; #DocumentDB for VS Code Extension; #DesktopApp; #FTP; #Win32; #A11ySev2; #A11yMAS; #WCAG1.4.3; #Contrast;  #External; #External:VSCode; #FirstParty:Bug325289;

Issue Subcategory

Low contrast text

User Experience

Users with low vision or impaired contrast sensitivity cannot read the text. This is one of the most common accessibility barriers on the web.

Repro Steps

Open VS code > Install the DocumentDB for VS Code Extension and open it > New Connections button > Observe the issue: Text color contrast is less than 4.5:1 when item receives focus in Light 2026 and Dark 2026 themes

Actual Result

When focus is placed on the "Connection String" option, the text color contrast ratio is below the required minimum of 4.5:1. Accessibility Insights reports a contrast ratio of approximately 3.44:1 in Light 2026 theme and 3.20:1 in Dark 2026 theme.

Expected Result

Text displayed within the focused item should maintain a minimum contrast ratio of 4.5:1 against its background in both Light 2026 and Dark 2026 themes to ensure readability for users with low vision.

Similar issue:

  • Similar issue repro throughout the application for this type of list.
  • In the Dark 2026 theme, when focus appears on an entire table row, the text within the focused row has a color contrast ratio of less than 4.5:1

How to Fix

Darken the text color or lighten/darken the background until the ratio is met. Use WebAIM Contrast Checker to verify. Audit all color themes including dark mode.

Environment details

Application Name: VS Code
Extension: DocumentDB for VS Code
Extension Version: 0.9.1
Edition Windows 11 Enterprise
Version 25H2
OS build 26200.8390

Note

  • Please do not close this bug. This bug should only be closed by TCS, C+AI Accessibility tester after bug verification.
  • "Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier."

Attachment

Image Image

Similar issue attachment

Image

Activity

  1. added
    a11y
    on Jul 6, 2026
  2. tnaum-ms commented on Jul 8, 2026

    @tnaum-ms
    Collaborator

    Out of scope. The color theme is controlled by the user. This color theme ships with VS Code.
    The visual element used here (Quick Pick) is the default UX element provided by VS Code API, its colors and layout can't be controlled by the extension (us).

  3. added
    wontfix
    on Jul 8, 2026
  4. kapilvaishna commented on Jul 10, 2026

    @kapilvaishna
    Author

    Tomasz Naumowicz (@tnaum-ms) We are not downgrading this issue, We have tagged this bug as external to VS Code and VS code team will fix this issue.
    Here is the external bug: microsoft/vscode#325289

  5. Mana-swi commented on Aug 14, 2026

    @Mana-swi

    #a11ydb-low-contrast-text;

  6. changed the title [-]Text color contrast is less than 4.5:1 when item receives focus in Light 2026 and Dark 2026 themes: A11y_DocumentDB for VS Code Extension_Adding new connection_Contrast[/-] [+]#grid Text color contrast is less than 4.5:1 when item receives focus in Light 2026 and Dark 2026 themes: A11y_DocumentDB for VS Code Extension_Adding new connection_Contrast[/+] on Dec 1, 2026
  7. tnaum-ms commented on Dec 1, 2026

    @tnaum-ms
    Collaborator

    The primary Quick Pick issue and its existing upstream disposition (microsoft/vscode#325289) are unchanged. The original report also describes focused table-row text in Dark 2026 falling below 4.5:1. Retest that symptom independently on the installed RDG Table after #1142, against the actual focused-row background, without assuming VS Code owns the extension-rendered row. Record which surface/version was checked; do not close this secondary finding solely because of the Quick Pick disposition. See also #775 for the distinct focus-outline requirement.

  8. tnaum-ms commented on Dec 2, 2026

    @tnaum-ms
    Collaborator

    The Table part of this report is covered in #1147.

    In the updated Table, keyboard focus adds only the focus outline (see #775); it doesn't change the row's background or text color. Row text is at least 8.12:1 in every row state, including selected and hovered rows (weakest: Dark 2026, hovered row), against the 4.5:1 minimum. No text color change was needed.

    The Connection String Quick Pick is native VS Code UI and is tracked upstream in microsoft/vscode#325289.

    These ratios are calculated from the VS Code 1.147.0 theme definitions, not yet measured in an installed workbench. The issue stays open until it is verified.

  9. removed
    wontfix
    on Dec 2, 2026
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

    a11y

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions