← Back to Resources
WCAG & Compliance

The UX Designer’s Guide to WCAG 2.2 Non-Text Contrast Compliance

Accessibility guidelines apply to more than just body copy. Under WCAG 2.2 Success Criterion 1.4.11, non-text elements—such as form input borders, checkbox outlines, search icons, and active state indicators—need a contrast ratio of at least 3:1 against their adjacent backgrounds. If you are styling interfaces with frosted glass, this is a common pitfall.

The Invisible Input Trap

A transparent input field on a glass panel looks incredibly clean, but if its border fades into the background, users with low contrast sensitivity will struggle to locate where to click. It is a frustrating user experience that is easy to fix.

Making Controls Stand Out

Here is how to ensure your interactive components remain visible and compliant:

  • Avoid ultra-faint borders: Use a border color that stands out clearly from the glass container itself.
  • Visible keyboard focus: Ensure your active focus rings are unmistakable. A bright teal or blue outline when a user tabs onto an input makes navigation much easier.
  • Frame your icons: If you place an icon button on a transparent layer, give the icon a subtle background wrapper or a distinct drop shadow to prevent it from disappearing.