Skip to content

[website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible contrast criteria (1.4.11) #48959

Closed

Description

@Suchitau25

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/material-ui/
  2. Press Tab on your keyboard to navigate to the announcement banner link at the top (announcement blogpost →).
  3. Alternatively, inspect the <a> tag (class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-bsgogs") in DevTools and force-toggle :focus or :focus-visible.
  4. Observe that there is no visible focus indicator or outline showing that the link is currently focused.
  5. Check the applied CSS in DevTools and observe that the user agent outline (a:-webkit-any-link:focus-visible) is suppressed without an author-defined focus state replacement.

Current behavior

Focusing the announcement banner link (announcement blogpost →) via keyboard navigation produces zero visual change on the element. The default browser focus outline is suppressed (outline is crossed out in user-agent styles), and no author-defined :focus or :focus-visible styles are applied, leaving keyboard users with no visual indicator of where their focus is positioned.

Expected behavior

When the link receives keyboard focus (:focus-visible), a clearly visible focus indicator (such as an outline, high-contrast ring, or background shift) should appear around the element, satisfying the 3:1 non-text contrast ratio requirement against the surrounding blue banner.

Context

WCAG Success Criteria Violated:

  • 2.4.7 Focus Visible (Level A): Keyboard focus is not visually identifiable on the announcement banner link.
  • 1.4.11 Non-Text Contrast (Level AA): The visual indicator for focus state does not meet or exceed the required 3:1 contrast change relative to adjacent colors.

Impact: Keyboard-only users and individuals with visual impairments cannot determine where keyboard focus is located when navigating through the site header.

Testing Methodology: DHS Trusted Tester ICT Baseline / Manual Keyboard Audit & Chrome DevTools Inspection.

Your environment

npx @mui/envinfo
N/A - Auditing live documentation site ((https://mui.com/material-ui/)

Browser: Chrome Version 151.0.7922.109 (Official Build) (64-bit)
OS: Windows 11
Input / Tools: Keyboard-only navigation / Chrome DevTools


**Search keywords**: accessibility, a11y, focus visible, WCAG 2.4.7, WCAG 1.4.11, announcement banner, focus indicator, keyboard navigation

Activity

  1. added
    status: waiting for maintainer
    on Aug 13, 2026
  2. added a commit that references this issue on Aug 13, 2026
    b896864
  3. added
    website
    and removed
    status: waiting for maintainer
    on Aug 17, 2026
  4. changed the title [-]Accessibility: Top announcement banner link fails WCAG 2.2 focus visible and contrast criteria (2.4.7, 1.4.11)[/-] [+][website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible and contrast criteria (2.4.7, 1.4.11)[/+] on Aug 17, 2026
  5. ZeeshanTamboli commented on Aug 17, 2026

    @ZeeshanTamboli
    Member

    It's only a 1.4.11 non-text contrast failure, not a 2.4.7 focus visible one. The branding theme already gives every MuiLink a focus ring:

    '&:focus-visible': {
      outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
      outlineOffset: 2,
    },
  6. changed the title [-][website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible and contrast criteria (2.4.7, 1.4.11)[/-] [+][website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible and contrast criteria (1.4.11)[/+] on Aug 17, 2026
  7. changed the title [-][website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible and contrast criteria (1.4.11)[/-] [+][website] Accessibility: Top announcement banner link fails WCAG 2.2 focus visible contrast criteria (1.4.11)[/+] on Aug 17, 2026
  8. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
    Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.


    @Suchitau25 Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short feedback form.

  9. Suchitau25 commented on Aug 17, 2026

    @Suchitau25
    Author

    It's only a 1.4.11 non-text contrast failure, not a 2.4.7 focus visible one. The branding theme already gives every MuiLink a focus ring:

    '&:focus-visible': {
    outline: 3px solid ${alpha(theme.palette.primary[500], 0.5)},
    outlineOffset: 2,
    },

    Thanks for correcting me @ZeeshanTamboli , That was my bad.

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

    accessibilitywebsite

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions