From b69c505a3f03ac298cdb502f3d8efc6e8e85a2ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 25 May 2015 11:09:21 +0200 Subject: [PATCH] mediawiki.ui: checkbox: Render "on top of" the label To fix clickability with checkboxShiftClick. Bug: T98905 Change-Id: I2a2dbfb6c8be991a79d8d63c9119387be1675d64 --- resources/src/mediawiki.ui/components/checkbox.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/src/mediawiki.ui/components/checkbox.less b/resources/src/mediawiki.ui/components/checkbox.less index 4829f5f6b5..ac5becb800 100644 --- a/resources/src/mediawiki.ui/components/checkbox.less +++ b/resources/src/mediawiki.ui/components/checkbox.less @@ -54,6 +54,9 @@ // we hide the input element as instead we will style the label that follows // we use opacity so that VoiceOver software can still identify it opacity: 0; + // Render "on top of" the label, so that it's still clickable (T98905) + z-index: 1; + position: relative; // ensure the invisible checkbox takes up the required width width: @checkboxSize; height: @checkboxSize; -- 2.20.1