jenkins-bot has submitted this change and it was merged.
Change subject: Add message box styles to non-js editor
......................................................................
Add message box styles to non-js editor
When MFAllowNonJavaScriptEditing is enabled the anonymous
editing warning has a warningbox class but is not styled.
This adds these styles to distinguish it from the rest of the
content.
Bug: T125174
Change-Id: Ie7dfb05d7ee0cea966bb9fc05a63df734a5002e8
---
M includes/MobileFrontend.hooks.php
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Florianschmidtwelzow: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/MobileFrontend.hooks.php
b/includes/MobileFrontend.hooks.php
index 0742b94..6ad0e77 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -853,7 +853,9 @@
// add fallback editor styles to action=edit page
$requestAction = $out->getRequest()->getVal( 'action' );
if ( $noJsEditing && ( $requestAction === 'edit' ||
$requestAction === 'submit' ) ) {
- $out->addModuleStyles( 'skins.minerva.fallbackeditor' );
+ $out->addModuleStyles( array(
+ 'skins.minerva.fallbackeditor',
'mobile.messageBox'
+ ) );
}
return true;
--
To view, visit https://gerrit.wikimedia.org/r/271165
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7dfb05d7ee0cea966bb9fc05a63df734a5002e8
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits