Skip to content

Commit

Permalink
Merge pull request #133 from primefaces/issue-132
Browse files Browse the repository at this point in the history
Fixes #132 - Badge | Add contrast severity styles
  • Loading branch information
cetincakiroglu authored May 9, 2024
2 parents 91eb4a1 + ce8d8ab commit 78270de
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions theme-base/components/misc/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
height: $badgeHeight;
line-height: $badgeHeight;

&.p-badge-secondary {
background-color: $secondaryButtonBg;
color: $secondaryButtonTextColor;
@if variable-exists(secondaryMessageBg) {
&.p-badge-secondary {
background-color: $secondaryButtonBg;
color: $secondaryButtonTextColor;
}

&.p-badge-contrast {
background-color: $contrastButtonBg;
color: $contrastButtonTextColor;
}
}

&.p-badge-success {
Expand Down

0 comments on commit 78270de

Please sign in to comment.