From cc5d8d991b31a3bce1e06cbf8afe53967800a363 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 6 May 2024 18:03:46 +0300 Subject: [PATCH] Override Bootstrap close button inversion inside themed elements --- app/assets/stylesheets/common.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 0fd3317e0..09c6c906b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -72,6 +72,16 @@ time[title] { } } +/* Bootstrap close button overrides for nested light/dark themes */ + +[data-bs-theme="dark"] .btn-close { + filter: var(--bs-btn-close-white-filter); +} + +[data-bs-theme="light"] .btn-close { + filter: none; +} + /* Rules for the header */ #menu-icon { -- 2.39.5