Page MenuHomePhabricator

TextInput start icon is off center by 1px
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Catrope
Jun 11 2022, 1:04 AM
Referenced Files
Restricted File
Jun 17 2022, 12:45 AM
Restricted File
Jun 17 2022, 12:45 AM

Description

We use left: 8px to position a 20px wide icon in a 36px area, which sounds correct, but it's wrong because it doesn't account for the 1px border around the input. It should be left: 9px instead. This affects all TextInput start icons, including the one in TypeaheadSearch

Event Timeline

@Catrope I hope you don't mind, but I went ahead and opened a patch in Codex to resolve this there

Change 806277 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] styles, TextInput: Add border width to icon position offset values

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

AnneT changed the task status from Open to In Progress.Jun 16 2022, 6:38 PM

Change 806277 merged by jenkins-bot:

[design/codex@main] styles, TextInput: Add border width to icon position offset values

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

0px in comparison:
{F35247917}
9px provides us with the aimed for 8px distance to the 1px border.
{F35247920}

Part of Codex alpha 8 release

DAbad triaged this task as Medium priority.Jul 14 2022, 2:44 PM
DAbad changed the subtype of this task from "Task" to "Bug Report".

Signing off.