From 04b405ea2ef9e4d4b3d93bb7da6e62a681b2eff4 Mon Sep 17 00:00:00 2001 From: Dmitry Gusev Date: Sun, 24 May 2026 01:03:51 +0300 Subject: [PATCH] fix(cookie-banner): .cookie-consent[hidden] display: none !important MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Кнопка "Принять" не работала визуально: JS-handler срабатывал и устанавливал banner.hidden=true, но CSS-правило .cookie-consent { display: flex } имело ту же specificity (10) что UA stylesheet [hidden] { display: none } — последняя из загруженных побеждала, и баннер не скрывался. --- src/styles/global.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/global.css b/src/styles/global.css index b765551..18bea0b 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -580,6 +580,7 @@ pre { } /* ============================== COOKIE CONSENT ============================== */ +.cookie-consent[hidden] { display: none !important; } .cookie-consent { position: fixed; left: 1rem;