Page MenuHomePhabricator

Add Icon support for text fields to HtmlForm
Closed, ResolvedPublic

Description

To implement the parent task T419413, that is, add a "reveal password"-button, we need to be able to add a clickable icon to the end of the text-input. Codex already supports this, but we need to add the respective interface to HtmlForm so that the needed html and classes can be added there too.

See the Codex documentation for how this needs to be done: https://doc.wikimedia.org/codex/latest/components/demos/text-input.html#with-icons-1

Acceptance criteria

  • it is possible to an icon to the beginning or end of a text input in an HTMLForm field when rendered as codex

Event Timeline

Michael triaged this task as High priority.Mar 24 2026, 2:48 PM
Michael moved this task from Inbox to Up next Sprint on the Growth-Team board.

This is a technical subtask for the parent task, extracted so that it has a clearer technical scope.

Change #1261444 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/core@master] feat(HTMLForm): allow adding icons to text inputs like in codex

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

Change #1261444 merged by jenkins-bot:

[mediawiki/core@master] feat(HTMLForm): allow adding icons to text inputs like in codex

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

The change has been merged. The QA will happen in context of the actual feature in T419413.