Skip to content

Commit

Permalink
Fix button colors from _variables not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Niksac committed Nov 23, 2023
1 parent a8efb93 commit 3354d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $btn-colors: (
text-color: #fff,
),
warning: (
text-color: #fff,
text-color: #000,
),
danger: (
text-color: #fff,
Expand All @@ -83,10 +83,10 @@ $btn-colors: (
text-color: #fff,
),
light: (
text-color: #818182,
text-color: #000,
),
info: (
text-color: #fff,
text-color: #000,
),
);

Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

@each $key, $value in $btn-colors {
&.btn-#{$key} {
color: map.get($btn-colors, "key", "text-color");
color: map.get($btn-colors, $key, "text-color");
}
}
}
Expand Down

0 comments on commit 3354d55

Please sign in to comment.