Page MenuHomePhabricator

Active link annotation styling conflicts with "plainlinks" class
Closed, ResolvedPublic1 Estimated Story Points

Description

Syntax like <span class="plainlinks">/<div class="plainlinks"> is used in wikitext to suppress the little arrow shown next to external links. In some cases the entire page can be wrapped in that. It seems to conflict with our active link annotation styling, for example on https://en.wikipedia.org/wiki/Butch_Miles?veaction=edit:

Normal styling
image.png (980×1 px, 219 KB)
Broken styling
image.png (980×1 px, 224 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
matmarex triaged this task as Medium priority.Mar 27 2018, 10:54 AM

It's an !important issue:

In MW core we have:

.plainlinks a {
	background: none !important;
	padding: 0 !important;
}

Change 422427 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/VisualEditor@master] MWExternalLinkAnnotation: add CSS to override plainlinks styling

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

Change 422427 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MWExternalLinkAnnotation: add CSS to override plainlinks styling

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

Deskana set the point value for this task to 1.