From 9234b8c194eeca8ad27a12cfbd7aabf9920c9ca6 Mon Sep 17 00:00:00 2001
From: Hendrik Leppelsack <hendrik@leppelsack.de>
Date: Thu, 29 Oct 2015 13:23:57 +0100
Subject: [PATCH] make new checkbox style accessible for screenreaders

---
 core/css/styles.css | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/core/css/styles.css b/core/css/styles.css
index abefd2748b..060576cb2c 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -164,11 +164,12 @@ textarea:hover, textarea:focus, textarea:active {
 
 /* ie8 doesn't support :checked */
 html:not(.ie8) input[type="checkbox"].checkbox {
-	margin:0;
-	padding:0;
-	height:auto;
-	width:auto;
-	display: none;
+	position: absolute;
+	left:-10000px;
+	top: auto;
+	width: 1px;
+	height: 1px;
+	overflow: hidden;
 }
 
 html:not(.ie8) input[type="checkbox"].checkbox + label:before {
-- 
GitLab