Page MenuHomePhabricator

TextInput and TextArea: check the color contrast between default border and background
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

In T337959: Accessibility audit: check the contrast ratio in our Codex components we detected that when there is no placeholder in a TextInput or TextArea, the border color should be enough 3:1 contrast with the background color. This color contrast criteria is documented in the WCAG 2.1 guidelines.

Captura de pantalla 2023-07-07 a las 17.25.15.png (2,628×942 px, 204 KB)

We need to increase the color contrast of the border used in the default state in inputs (TextInput, TextArea).

Design spec

Once a component spec sheet has been created in Figma, remove the note stating that the spec is missing and link to the spec below.

Component spec sheet

Open questions

Add here the questions to be answered in order to design and implement the component

Acceptance criteria (or Done)

Design

  • Design the Figma spec sheet and add it in this task
  • Update the component in the Figma library. This step will be done by a DST member.

Code

  • Implement the component in Codex

Event Timeline

Change #1082065 had a related patch set uploaded (by Dtorsani; author: Dtorsani):

[design/codex@main] tokens: Unify interactive styles phase 1

https://gerrit.wikimedia.org/r/1082065

Resolving this task as it has resulted in changes needing to be made, which will be done as a part of T377977: Update interactive styles of components: phase 1.