From: Bartosz DziewoƄski Date: Mon, 25 May 2015 09:09:21 +0000 (+0200) Subject: mediawiki.ui: checkbox: Render "on top of" the label X-Git-Tag: 1.31.0-rc.0~11220^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b69c505a3f03ac298cdb502f3d8efc6e8e85a2ec;p=lhc%2Fweb%2Fwiklou.git mediawiki.ui: checkbox: Render "on top of" the label To fix clickability with checkboxShiftClick. Bug: T98905 Change-Id: I2a2dbfb6c8be991a79d8d63c9119387be1675d64 --- 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;