Improve background color contrast

This commit is contained in:
Justin Starry 2020-06-02 17:27:27 +08:00 committed by Michael Vines
parent 9b602edc7a
commit 16b0ee0a21
3 changed files with 16 additions and 3 deletions

View File

@ -21,9 +21,9 @@ function Button({ expand }: { expand?: boolean }) {
const btnClasses = (variant: string) => {
if (expand) {
return `btn lift d-block btn-${variant}`;
return `btn b-white lift d-block btn-${variant}`;
} else {
return `btn lift btn-outline-${variant}`;
return `btn b-white lift btn-outline-${variant}`;
}
};

View File

@ -5,7 +5,7 @@
// Example of a variable override to change Dashkit's background color
// Remove the "//" to comment it in and see it in action!
$body-bg: #ffffff;
$body-bg: #f9fdfc;
// Dashkit scss needs to know where img masks are stored
$path-to-img: "../../img/dashkit" !default;

View File

@ -57,6 +57,19 @@ code {
cursor: pointer;
}
.b-white {
background: $white;
}
.dropdown-exit {
position: absolute;
z-index: 100;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.btn-outline-warning:hover {
.spinner-grow {
color: $dark !important;