From 957c2de6b49037326ef29eed2660c522a3c314b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Thu, 18 May 2017 10:10:47 +0200 Subject: [PATCH] Improving .select2-hidden-accessible To match last standards, see [CSS hide and seek](http://hugogiraudel.com/2016/10/13/css-hide-and-seek/) for more explanations :) Also I removed the negative margin because of unwanted effects in some case, as seen on Bootstrap. --- src/scss/core.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scss/core.scss b/src/scss/core.scss index 3d695386bb..ccc64d6faa 100644 --- a/src/scss/core.scss +++ b/src/scss/core.scss @@ -36,12 +36,14 @@ .select2-hidden-accessible { border: 0 !important; clip: rect(0 0 0 0) !important; + -webkit-clip-path: inset(50%) !important; + clip-path: inset(50%) !important; height: 1px !important; - margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; + white-space: nowrap !important; } @import "theme/default/layout";