Page MenuHomePhabricator

UserInfoCard: Convert icon button to use Codex CSS style, 16px x 16px size
Closed, ResolvedPublic

Description

Summary

The existing icon button uses OOUI's ButtonWidget to display the icon button. This is difficult to scale down to 16px. Convert this to use a Codex CSS / HTML button instead.

Acceptance criteria

  • The icon button is 16px by 16px, and OOUI is not used

Event Timeline

Change #1149730 had a related patch set uploaded (by Kosta Harlan; author: Eric Gardner):

[mediawiki/extensions/CheckUser@master] [WIP] User info card: Use Codex instead of OOUI

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

kostajh renamed this task from UserInfoCard: Convert icon to use Codex CSS style, 16px x 16px size to UserInfoCard: Convert icon button to use Codex CSS style, 16px x 16px size.May 27 2025, 8:49 AM

Hi @Mimurawil and @kostajh - I've just been talking to the DST designer about the icon size.

The latest small button design sets the icon at 14px when displayed in small font size mode. Recent changes is always set to small font size mode, therefore it makes sense to me that the icon should in fact be 14px on this page, not 16px.

However, if the icon (and popover) displays on pages where the 2 other font size modes are available, it will need to scale up accordingly.

The following mock-up uses a 14px icon set within a 24px small icon button (figma):

image.png (2,684×1,146 px, 462 KB)

The icon will use design token color-subtle rather than blue, as this is less overwhelming.

Hi @Mimurawil and @kostajh - I've just been talking to the DST designer about the icon size.

The latest small button design sets the icon at 14px when displayed in small font size mode. Recent changes is always set to small font size mode, therefore it makes sense to me that the icon should in fact be 14px on this page, not 16px.

However, if the icon (and popover) displays on pages where the 2 other font size modes are available, it will need to scale up accordingly.

The following mock-up uses a 14px icon set within a 24px small icon button (figma):

image.png (2,684×1,146 px, 462 KB)

The icon will use design token color-subtle rather than blue, as this is less overwhelming.

Thanks @KColeman-WMF! I believe I applied those styles in this patch. I found the design tokens in this Figma, so it was easy to match the proper styles in the code. I'm investigating a failed build now, but I'll have the patch ready as soon as I fix it.

Change #1149730 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Use Codex styles for button instead of OOUI

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

Change #1163024 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CheckUser@master] UserInfoCard: Apply small margin after button

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