Page MenuHomePhabricator

CSS classes should be prefixed
Closed, ResolvedPublic

Description

Several classes are generically named, raising the likelihood of a conflict, e.g.

  • viewMore
  • viewLess
  • entity-term
  • editActions

Class names should have an extension-specific prefix as per https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS

Event Timeline

Ramsey-WMF subscribed.

This will be changed as part of upcoming development this week probably.

Assigning to Cormac for now, to be done later in the week

Change 484595 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikibaseMediaInfo@master] Clean up all CSS classnames, prefixing all of ours with "wbmi-"

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

Change 484595 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Clean up all CSS classnames, prefixing all of ours with "wbmi-"

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

Will go out in next week's train (except for the final removal of filepage-mediainfo-entitytermsview, which we'll drop after people have had a chance to switch over.

Verified in the CSS on production.