From 025d5397bb55c60b8f18ae90d92e4290b1d72cad Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Fri, 13 Dec 2024 16:38:58 +0200 Subject: [PATCH] lib: Revert menu toggles to be transparent again This broke Anaconda. Instead, only change them in "logs" and "metrics". --- pkg/lib/patternfly/patternfly-5-overrides.scss | 9 --------- pkg/metrics/metrics.scss | 9 +++++++++ pkg/systemd/logs.scss | 9 +++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/pkg/lib/patternfly/patternfly-5-overrides.scss b/pkg/lib/patternfly/patternfly-5-overrides.scss index 8200d4464551..9b6e7154f4d2 100644 --- a/pkg/lib/patternfly/patternfly-5-overrides.scss +++ b/pkg/lib/patternfly/patternfly-5-overrides.scss @@ -398,12 +398,3 @@ select.pf-v5-c-form-control { background-color: var(--pf-v5-global--BackgroundColor--400); } } - -/* Menu toggles are transparent in light mode (but not in dark - mode). This makes them white on a white page (fine), but grey in a - grey toolbar. The deprecated Select had a white background. Let's - make MenuToggles match. -*/ -html:not(.pf-v5-theme-dark) .pf-v5-c-menu-toggle:not(.pf-m-primary) { - background-color: var(--pf-v5-global--BackgroundColor--100); -} diff --git a/pkg/metrics/metrics.scss b/pkg/metrics/metrics.scss index cb1d83f8ae0c..4fc6e543bdd0 100644 --- a/pkg/metrics/metrics.scss +++ b/pkg/metrics/metrics.scss @@ -852,3 +852,12 @@ $graphs: cpu, memory, disks, network; } } } + +/* Menu toggles are transparent in light mode (but not in dark + mode). This makes them white on a white page (fine), but grey in a + grey toolbar. The deprecated Select had a white background. Let's + make MenuToggles match. +*/ +html:not(.pf-v5-theme-dark) .pf-v5-c-menu-toggle:not(.pf-m-primary) { + background-color: var(--pf-v5-global--BackgroundColor--100); +} diff --git a/pkg/systemd/logs.scss b/pkg/systemd/logs.scss index e2e14403353f..1c326f00bc75 100644 --- a/pkg/systemd/logs.scss +++ b/pkg/systemd/logs.scss @@ -156,3 +156,12 @@ color: var(--pf-v5-global--Color--100); } } + +/* Menu toggles are transparent in light mode (but not in dark + mode). This makes them white on a white page (fine), but grey in a + grey toolbar. The deprecated Select had a white background. Let's + make MenuToggles match. +*/ +html:not(.pf-v5-theme-dark) .pf-v5-c-menu-toggle:not(.pf-m-primary) { + background-color: var(--pf-v5-global--BackgroundColor--100); +}