Page MenuHomePhabricator

Add reveal password button to TextInput of inputType password
Open, HighPublicFeature

Description

Summary

As a user typing a password, I want to reveal my password as I type it so that I can verify I entered it correctly and avoid submitting a mistyped password.

Background & research

This request is based on observed behavior from usability testing on account creation. Across several sessions, mistyping passwords on mobile came up repeatedly, giving us evidence that a reveal password button would be a convenient addition, especially on touch devices.

Currently in production, this behavior is implemented using the endIcon prop, but this comes with a few caveats: endIcon is intended for decorative icons, not actionable ones, so the eye icon currently renders in a placeholder color rather than as a proper interactive element.

Arc 2026-07-29 10.14.31.png (1,280×2,856 px, 280 KB)

This task proposes adding a first-class, actionable reveal button to the TextInput component so we no longer need this workaround.

Design

TBD

The reveal button should probably reuse the same visual style used for the existing clear icon button in TextInput.

Open questions
  • Should the touch target for the reveal button be larger than the visible icon itself? The icon is relatively small, especially for touch devices, so this is worth a decision before implementation.

Event Timeline

Les4353 triaged this task as High priority.
Les4353 moved this task from Inbox to In Progress on the Codex board.
Les4353 changed the subtype of this task from "Task" to "Feature Request".Wed, Jul 29, 11:20 AM
Les4353 added projects: Accessibility, Design.
Les4353 moved this task from Incoming to In Development on the Design board.

Change #1321613 had a related patch set uploaded (by Les4353; author: Les4353):

[design/codex@main] TextInput: Allow users to reveal password

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

Change #1321641 had a related patch set uploaded (by Les4353; author: Les4353):

[design/codex@main] doc(TextInput): Add document for the new password reveal button

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