From e2719ddded3ffb048ea0098062524e1d8e599590 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Thu, 5 Dec 2024 16:30:24 +0200 Subject: [PATCH] lib: Give secondary buttons more contrast in toolbars Secondary buttons have a transparent background by default, which needs more contrast on grey backgrounds like in toolbars. --- pkg/lib/patternfly/patternfly-5-overrides.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/lib/patternfly/patternfly-5-overrides.scss b/pkg/lib/patternfly/patternfly-5-overrides.scss index 282af8922d45..51c468534642 100644 --- a/pkg/lib/patternfly/patternfly-5-overrides.scss +++ b/pkg/lib/patternfly/patternfly-5-overrides.scss @@ -404,3 +404,14 @@ select.pf-v5-c-form-control { background-color: var(--pf-v5-global--BackgroundColor--400); } } + +/* Give secondary buttons a white/grey background instead of their + default transparent one. This gives them better contrast in + toolbars. +*/ +.pf-v5-c-button.pf-m-secondary { + background-color: var(--pf-v5-global--BackgroundColor--100); + .pf-v5-theme-dark & { + background-color: var(--pf-v5-global--BackgroundColor--400); + } +}