Skip to content

Commit

Permalink
Fix Alert "close" button colors on dark/light backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
AnTheMaker authored Oct 3, 2023
1 parent 537a8f2 commit f2117f9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/assets/scss/components/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
margin-left: .4rem;
}
}
.alert-dark{
filter: var(--bs-btn-close-white-filter);
}
.alert-secondary,
.alert-light{
@if($dark-mode == true) {
filter: unset;
}
}

}
@each $key, $value in $alert-colors {
.alert-#{$key} {
Expand All @@ -41,4 +51,4 @@
border: 1px solid darken($value, 3%);
}
}
}
}

0 comments on commit f2117f9

Please sign in to comment.