#108634Inactive input fields, placeholder and toggle switches-insufficient contrast
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
- Open any form page. (e.g. page or content element)
- Locate a disabled input containing placeholder text.
- Display a toggle switch in inactive/active state.
- Measure contrast between text/placeholder and background, and between UI element and background using a contrast tool (e.g., Axe/DevTools).
- 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
-
Gerrit Code Review pushed patch set 3 for main to change 93737 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-27T10:39:53+00:00" > 04/27/26, 10:39 </span> -
Gerrit Code Review pushed patch set 4 for main to change 93737 <span data-processor="relativetime" data-value="2026-04-30T13:02:15+00:00" > 04/30/26, 13:02 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 93737 <span data-processor="relativetime" data-value="2026-05-18T09:35:31+00:00" > 05/18/26, 09:35 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 93737 <span data-processor="relativetime" data-value="2026-10-22T14:31:20+00:00" > 10/22/26, 14:31 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 93737 <span data-processor="relativetime" data-value="2026-10-22T14:50:22+00:00" > 10/22/26, 14:50 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 93737 <span data-processor="relativetime" data-value="2026-11-13T07:16:10+00:00" > 11/13/26, 07:16 </span>