Page MenuHomePhabricator

Temporary user link styling in content area should not adjust padding
Closed, ResolvedPublic

Description

Currently the styling adds padding to make the background color more visible. This is likely to cause problems with other places which expect text to flow normally and links not to have background text, for example opening the link in VE causes the width to change and content to reflow, or in a table where horizontal alignment is expected

We can add padding that doesn't cause a reflow using a CSS outline instead.

BeforeAfter
image.png (134×174 px, 7 KB)
image.png (134×174 px, 7 KB)
image.png (134×174 px, 7 KB)
image.png (134×174 px, 7 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1165881 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/core@master] Temporary user links: Use outline instead of padding

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

Change #1167213 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/skins/MinervaNeue@master] Temporary user links: Use outline instead of padding

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

Change #1165881 merged by jenkins-bot:

[mediawiki/core@master] Temporary user links: Use outline instead of padding

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

Change #1167213 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Temporary user links: Use outline instead of padding

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

On Editing board for visibility but TSP will review/QA.

This looks good to me. It's a bit tight at the edges but it solves the horizontal alignment issue.

Change #1170563 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/CheckUser@master] GlobalContributions: Use outline instead of padding for temp user links

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

Change #1170563 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] GlobalContributions: Use outline instead of padding for temp user links

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