Applied upstream in Ic11b981e70e3.
Bug: T163358
Change-Id: If8c26ffe5095e4e8c2f206c9dda1981bccba2b62
// 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;