DisplaySettings: disallow focus on tabgroup buttons
Focus state looks bad in this context. Change-Id: I3bc1cd63123711ded0652910ef4fa62f19c3bd12
This commit is contained in:
committed by
Nikerabbit
parent
fc30a5d542
commit
f6da60cfab
@@ -612,7 +612,9 @@
|
|||||||
displaySettings.$parent.position();
|
displaySettings.$parent.position();
|
||||||
$tabButtons.removeClass( 'mw-ui-pressed' );
|
$tabButtons.removeClass( 'mw-ui-pressed' );
|
||||||
$button.addClass( 'mw-ui-pressed' );
|
$button.addClass( 'mw-ui-pressed' );
|
||||||
|
} ).on( 'mousedown', function ( event ) {
|
||||||
|
// Avoid taking focus, to avoid bad looking focus styles
|
||||||
|
event.preventDefault();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user