Skip to content

Commit

Permalink
lib: Give secondary buttons more contrast in toolbars
Browse files Browse the repository at this point in the history
Secondary buttons have a transparent background by default, which
needs more contrast on grey backgrounds like in toolbars.
  • Loading branch information
mvollmer committed Dec 13, 2024
1 parent ab2d7be commit 169b0f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/lib/patternfly/patternfly-5-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,14 @@ select.pf-v5-c-form-control {
html:not(.pf-v5-theme-dark) .pf-v5-c-menu-toggle:not(.pf-m-primary) {
background-color: var(--pf-v5-global--BackgroundColor--100);
}

/* 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:not(.pf-m-disabled) {
background-color: var(--pf-v5-global--BackgroundColor--100);
.pf-v5-theme-dark & {
background-color: var(--pf-v5-global--BackgroundColor--400);
}
}

0 comments on commit 169b0f2

Please sign in to comment.