From 847910121c8f9b7129ecbbbcba6bdebc83abca74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C4=85sior?= Date: Sun, 5 Jun 2022 23:23:58 +0200 Subject: [PATCH] Fix .sr-only not working properly on elements with padding or border --- assets/css/_layout/global.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/css/_layout/global.css b/assets/css/_layout/global.css index cb3e6d8c..a517f821 100644 --- a/assets/css/_layout/global.css +++ b/assets/css/_layout/global.css @@ -67,9 +67,12 @@ a:active { .sr-only { position: absolute !important; - height: 1px; width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); + height: 1px !important; + width: 1px !important; + overflow: hidden !important; + clip: rect(1px, 1px, 1px, 1px) !important; + padding: 0 !important; + border: 0 !important; } .skip-link {