HACK: Temporarily patch OOjs UI locally to work around upstream problem
authorJames D. Forrester <jforrester@wikimedia.org>
Wed, 19 Apr 2017 18:25:22 +0000 (11:25 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 19 Apr 2017 18:25:22 +0000 (11:25 -0700)
Applied upstream in Ic11b981e70e3.

Bug: T163358
Change-Id: If8c26ffe5095e4e8c2f206c9dda1981bccba2b62

resources/lib/oojs-ui/oojs-ui-mediawiki.js

index b8dbf7b..60c67b6 100644 (file)
@@ -52,7 +52,7 @@ OO.ui.MediaWikiTheme.prototype.getElementClasses = function ( element ) {
                        // Button with a dark background
                        isFramed && ( isActive || element.isDisabled() || element.hasFlag( 'primary' ) ) ||
                        // Toolbar with a dark background
-                       element instanceof OO.ui.ToolGroup && ( isActive || element.hasFlag( 'primary' ) )
+                       OO.ui.ToolGroup && element instanceof OO.ui.ToolGroup && ( isActive || element.hasFlag( 'primary' ) )
                ) {
                        // … use white icon / indicator, regardless of other flags
                        variants.invert = true;