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
| {F30285635}
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:**
{F30284946}
{F30284947}
==== 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: {F30295347}
==== Extensions affected
[] MobileFrontend
[] 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/