These were identified to be one of the few remaining legacy classes.
They are extensively used within MediaWiki and extensions, making deprecation or removal more intensive than other styles in legacy.less.
These currently appear unstyled in the mobile site and will soon appear unstyled in the desktop site.
Consumers relying on styling from MediaWiki should be updated to either
- Provide their own styles for these classes via MediaWiki:Common.css/template style rules
.error, .warning, .success { font-size: larger; } .error { color: #d33; } .warning { color: #ac6600; } .success { color: #14866d; }
- Using the .messagebox,.errorbox,.warningbox,.successbox classes
Identified usages
.error
Usages of .error: https://codesearch.wmcloud.org/search/?q=class%3D%22(%3F%3A%5B%5E%22%5Cs%3E%5D*%5Cs%2B)*%3Ferror%5B%5Cs%22%5D&i=nope&files=&excludeFiles=&repos=
- Parser/ ParserFunctions (Also Parsoid?) - export <strong class="error"></strong> for parsing errors
- These aren't going away, they'll be moved instead (T281228), but this shouldn't have any user-facing impact.
- EditPage::handleStatus - <div class="error"></div> for hooks.
.success
Usages of .success: https://codesearch.wmcloud.org/search/?q=class%3D%22(%3F%3A%5B%5E%22%5Cs%3E%5D*%5Cs%2B)*%3Fsuccess%5B%5Cs%22%5D&i=nope&files=&excludeFiles=&repos=
- MediaWiki-extensions-CentralAuth/AbuseFilter - <p class="success"></p> (Also <div>s)
.warning
Usages of .warning: https://codesearch.wmcloud.org/search/?q=class%3D%22(%3F%3A%5B%5E%22%5Cs%3E%5D*%5Cs%2B)*%3Fwarning%5B%5Cs%22%5D&i=nope&files=&excludeFiles=&repos=
This one is rare.
- MediaWiki-extensions-MultiUpload - False positive? (T268667: Archive mediawiki/extensions/MultiUpload?)
- MediaWiki-extensions-Page_Forms
- docs/uidesign/design.html