Current treatment of .previewnote (and .previewnote p) is not aligned with Design Style Guide message treatment.
.previewnote p main usage is a warning to non-JS users when previewing an edited article:
| Vector, Timeless, etc. through shared.css |
Usage of .previewnote class across repos:
https://codesearch.wmflabs.org/search/?q=.previewnote&i=nope&files=&repos=
Apart from main usage there are two other occurrences in MW core:
- includes/actions/McrUndoAction.php – unclear what the usage is
- includes/specials/SpecialExpandTemplates.php
Expected result
Show a warningbox style visual treatment
Proposed:
Dev notes
- Verify other usages of 'previewnote' in core and extensions on possible breakage.
- McrUndoAction.php uses a copy of EditPage.php implementation and should use a .messagebox class instead of .previewnote.
- SpecialExpandTemplates.php should have ..errorbox assigned instead. Proposed:
Extensions affected
- MobileFrontend – https://gerrit.wikimedia.org/r/535313/
- TemplateSandbox - https://gerrit.wikimedia.org/r/536675
- TwoColConflict – https://gerrit.wikimedia.org/r/536383
Skins affected
- MinervaNeue
- Modern – https://gerrit.wikimedia.org/r/#/c/mediawiki/skins/Modern/+/535974/



