Page MenuHomePhabricator

Message/Field: message icons are not aligned with the message content
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • See Codex docs for CSS-only Field with validation messages, here
  • See Codex docs for CSS-only Message, here

What happens?:

The status icon is vertically aligned to the flex-start while the text is vertically aligned to the center of the flex box.

What should have happened instead?:

Icon and content should be aligned

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Latest Codex. If it's a regression or not is yet tbd.

Other information (browser name/version, screenshots, etc.):

I've used flex terms to describe the alignment problem but I'm not implying CSS flex properties are at the culprit. It could be, or not. Codex icon sizing is complex and the vertical alignment is affected by the height of icons.

Screenshot 2026-05-13 at 15.14.44.png (1,766×994 px, 145 KB)
Screenshot 2026-05-13 at 15.10.24.png (1,732×886 px, 139 KB)
MessageField

This seems to only affect CSS-only version of these components in the Codex docs.

Event Timeline

Sgs updated the task description. (Show Details)

Change #1286973 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[design/codex@main] fix(Message): correct vertical align for css-only icon messages

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

Change #1286973 merged by jenkins-bot:

[design/codex@main] fix(Message): correct vertical align for css-only icon messages

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

KStoller-WMF set the point value for this task to 1.May 19 2026, 3:55 PM

This is not testable until a new Codex release is created. I'm on the process of getting the right provisioning to do so, until then moving to blocked.

Change #1299580 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update Codex from v2.5.1 to v2.6.0

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

Change #1299580 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v2.5.1 to v2.6.0

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

This is not testable until a new Codex release is created. I'm on the process of getting the right provisioning to do so, until then moving to blocked.

screenshots from https://doc.wikimedia.org/codex/latest/components/demos/message.html:

Screenshot 2026-06-10 at 12.26.49 AM.png (866×454 px, 27 KB)
Screenshot 2026-06-10 at 12.25.08 AM.png (866×438 px, 26 KB)
original look with the v2.6.0 releasewith the --line-height-medium styling disabled via devtools

not closing the task just in case, but there shouldn't be any obstacles in front of doing so as far as i can see :3

@ekrem could you elaborate what is the test: with the --line-height-medium styling disabled via devtools trying to validate?

@ekrem could you elaborate what is the test: with the --line-height-medium styling disabled via devtools trying to validate?

mb, it was supposed to demonstrate the situation «before the fix» (or «if the fix wasn't present»)

@ekrem could you elaborate what is the test: with the --line-height-medium styling disabled via devtools trying to validate?

mb, it was supposed to demonstrate the situation «before the fix» (or «if the fix wasn't present»)

Oh gotcha, ty!