Page MenuHomePhabricator

Ensure binary input CSS-only components follow current 2.0.0 markup
Open, LowPublic2 Estimated Story Points

Description

Background

The font modes T387778: [breaking change] Font modes: Introduce font modes to Codex make a markup need more visible than before.
Having the label of binary inputs (Checkbox, Radio) feature an extra label text span.
Without it, there is a possible vertical misalignment in those component and label combos.

image.png (782×1 px, 134 KB)

Goal

Bring markup of all CSS-only binary input to current way.

Implementation

Higher priority

  • UniversalLanguageSelector. Highly visible.
  • ExternalGuidance. Used on wikipedias by default.

Lower priority

  • MW core: HTMLCheckField and HTMLRadioField. The Codex versions of these are not currently used anywhere.
  • CodexPHP. Not used in production yet.
  • FlaggedRevs. Warning on the extension page indicates that this is not important to fix quickly. Let's not bother updating it.

Acceptance criteria for done

Event Timeline

Change #1139981 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/UniversalLanguageSelector@master] styles: Unify CSS-only Radio label markup with latest Codex markup

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

I'm moving this into the sprint since we're working on at least some of the affected repos now. I think we should:

  • Move forward with the ULS fix that Volker already provided.
  • Assess the impact of the CodexPHP and HTMLForm issues. Does the outdated markup in these codebases cause the misalignment? If so, where are they used and how many users are affected? This will help us decide if we need to get a fix into these repos now or if it can happen later.

Update: it looks like no one is using the Codex version of the HTMLCheckField or HTMLRadioField so there's no rush to fix the markup for those

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

[mediawiki/extensions/ExternalGuidance@master] Update Codex Radio markup

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

Change #1139981 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] styles: Unify CSS-only Radio label markup with latest Codex markup

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

Volker_E updated the task description. (Show Details)
CCiufo-WMF triaged this task as Medium priority.
CCiufo-WMF changed the point value for this task from 1 to 2.
CCiufo-WMF raised the priority of this task from Medium to High.May 12 2025, 4:56 PM

Change #1140540 merged by jenkins-bot:

[mediawiki/extensions/ExternalGuidance@master] Update Codex Radio markup

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

Some of these haven't been done yet; see acceptance criteria

CCiufo-WMF lowered the priority of this task from High to Low.Jun 2 2025, 5:13 PM
CCiufo-WMF removed a project: Codex 2.0.
CCiufo-WMF moved this task from Backlog to Upcoming on the Codex board.
egardner moved this task from Ready for Design/Dev to Pending Release on the Codex board.