From dd17bc63bde8d7a1a8b064c7fa5309fa5f04377b Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 22 Jul 2021 20:48:01 +0100 Subject: [PATCH] Avoid applying the base background colour twice to buttons in leaflet-controls --- src/scss/leaflet/_controls.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scss/leaflet/_controls.scss b/src/scss/leaflet/_controls.scss index 8246bf9..609fe29 100644 --- a/src/scss/leaflet/_controls.scss +++ b/src/scss/leaflet/_controls.scss @@ -27,6 +27,12 @@ @extend %button; } + /* Avoid applying the base background colour twice, in case its semi-transparent */ + > a:not(:hover):not(:focus):not(:active):not([aria-expanded=true]), + > button:not(:hover):not(:focus):not(:active):not([aria-expanded=true]) { + background-color: transparent; + } + @media print { display: none !important; }