Page MenuHomePhabricator

styles: remove spacing on cdx-field links
Closed, ResolvedPublic

Description

We recently added margin-top to all elements with class cdx-field in T358827. This change introduced spacing between links within the Log in form on Special:UserLogin. These links are nested inside HTMLInfoField with the class cdx-field.

The HTMLInfoField within the Log In form already had margin-top and margin-bottom of 0.5em before. Now there's an additional margin-top: 24px;.

This was discovered from a regression test by Kim (Web team).

Screenshot 2024-03-25 at 2.11.30 PM.png (1×3 px, 378 KB)

Before/After:

Screenshot 2024-03-25 at 4.53.34 PM.png (534×776 px, 57 KB)

Screenshot 2024-03-25 at 4.52.53 PM.png (623×775 px, 66 KB)

Questions:

  • Did we intend to create extra space between links in a Field?
  • Are there other examples of extra spacing in Fields that we are not aware of and need to be addressed?

Acceptance Criteria

  • Remove the excess spacing (margin-top) from HTMLInfoField

Event Timeline

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

[mediawiki/core@master] CodexHTMLForm: Fix margins around links in login form

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

Change #1014135 merged by jenkins-bot:

[mediawiki/core@master] CodexHTMLForm: Fix margins around links in login form

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

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

[mediawiki/core@wmf/1.42.0-wmf.24] CodexHTMLForm: Fix margins around links in login form

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

Change #1014456 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.24] CodexHTMLForm: Fix margins around links in login form

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

Mentioned in SAL (#wikimedia-operations) [2024-03-26T20:21:11Z] <catrope@deploy1002> Started scap: Backport for [[gerrit:1014456|CodexHTMLForm: Fix margins around links in login form (T360945)]]

Mentioned in SAL (#wikimedia-operations) [2024-03-26T20:27:01Z] <catrope@deploy1002> catrope: Backport for [[gerrit:1014456|CodexHTMLForm: Fix margins around links in login form (T360945)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-03-26T20:43:21Z] <catrope@deploy1002> Finished scap: Backport for [[gerrit:1014456|CodexHTMLForm: Fix margins around links in login form (T360945)]] (duration: 22m 09s)