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 5, 2024
1 parent e395923 commit e2719dd
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 @@ -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);
}
}

0 comments on commit e2719dd

Please sign in to comment.