diff --git a/includes/Skins/SkinMinerva.php b/includes/Skins/SkinMinerva.php index a10cd9e92..8cd9fd369 100644 --- a/includes/Skins/SkinMinerva.php +++ b/includes/Skins/SkinMinerva.php @@ -1077,16 +1077,6 @@ class SkinMinerva extends SkinMustache { $requestAction = $this->getActionName(); $viewAction = $requestAction === 'view'; - // Warning box styles are needed when reviewing old revisions - // and inside the fallback editor styles to action=edit page. - if ( - $title->getNamespace() !== NS_MAIN || - $request->getCheck( 'oldid' ) || - !$viewAction - ) { - $styles[] = 'skins.minerva.messageBox.styles'; - } - if ( $title->isMainPage() ) { $styles[] = 'skins.minerva.mainPage.styles'; } elseif ( $this->skinUserPageHelper->isUserPage() ) { diff --git a/skin.json b/skin.json index 1cf4aefdc..0b1d30077 100644 --- a/skin.json +++ b/skin.json @@ -489,7 +489,6 @@ "skins.minerva.mainMenu.icons", "skins.minerva.mainMenu.styles", "mediawiki.cookie", - "skins.minerva.messageBox.styles", "mediawiki.util", "mediawiki.router", "mediawiki.Title", @@ -560,13 +559,6 @@ "watchstar.js" ] }, - "skins.minerva.messageBox.styles": { - "class": "MediaWiki\\ResourceLoader\\CodexModule", - "codexStyleOnly": true, - "codexComponents": [ - "CdxMessage" - ] - }, "skins.minerva.categories.styles": { "class": "MediaWiki\\ResourceLoader\\SkinModule", "features": [ @@ -577,8 +569,7 @@ "class": "MediaWiki\\ResourceLoader\\CodexModule", "codexStyleOnly": true, "codexComponents": [ - "CdxButton", - "CdxMessage" + "CdxButton" ] } }, @@ -587,7 +578,6 @@ "remoteSkinPath": "MinervaNeue/tests/qunit/skins.minerva.scripts", "dependencies": [ "mediawiki.cookie", - "skins.minerva.messageBox.styles", "skins.minerva.scripts", "mobile.startup", "mediawiki.user",