Issue Bug Under Review

#108634Inactive input fields, placeholder and toggle switches-insufficient contrast

Christian Jung 01/14/26, 15:21 updated 11/13/26, 07:16

Description

Input fields with placeholder text and states such as “disabled”, as well as toggle switches, currently show insufficient color contrast. Text requires at least 4.5:1 contrast (WCAG 2.1 – 1.4.3), non‑text UI elements (e.g., toggle indicators, outlines) require at least 3:1 (WCAG 2.1 – 1.4.11). 

Reproduction Steps

  1. Open any form page. (e.g. page or content element)
  2. Locate a disabled input containing placeholder text.
  3. Display a toggle switch in inactive/active state.
  4. Measure contrast between text/placeholder and background, and between UI element and background using a contrast tool (e.g., Axe/DevTools).
  5. Current contrast falls below required thresholds.

Impact

  • Users with low vision struggle to perceive states and content; the implementation fails WCAG 2.1 and creates compliance risk. 

Recommended Solution

  • Adjust placeholder and disabled state colors so that text achieves at least 4.5:1 against its background.
  • Adjust toggle outlines/fills/indicators to achieve at least 3:1 against adjacent background.
  • Update design tokens/CSS variables centrally and roll out across affected components. 

Definition of Done

  • All affected components (inputs incl. placeholders, disabled states, toggles) use updated colors.
  • Contrast checks confirm ≥4.5:1 for text and ≥3:1 for non‑text UI in all states and themes (light/dark). 

Acceptance Criteria

  • Placeholder text, input text, labels, and error messages meet ≥4.5:1 against background. 
  • Disabled inputs remain perceivable and meet ≥4.5:1 for text; decorative elements excluded. 
  • Toggle switches (track/knob/outline) meet ≥3:1 against adjacent background for active/inactive/focus/hover. 

References

Reviews 1

Files 2

History 06