Merge branch 'feat/ui-0.7.0' into 'test'

fix(switch): Enables switch to follow the theme color in active

See merge request opensource/answer!348
This commit is contained in:
贾海涛(龙笛) 2022-12-16 02:43:53 +00:00
commit 9210147039
1 changed files with 7 additions and 0 deletions

View File

@ -64,8 +64,15 @@ const Index: FC = () => {
border-color: ${primaryColor.hex()};
}
.form-check-input:focus {
border-color: ${tintColor(primaryColor, 0.5)};
box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), .4);
}
.form-switch .form-check-input:focus {
background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27${tintColor(
primaryColor,
0.5,
)}%27/%3e%3c/svg%3e");
}
.dropdown-menu {
--bs-dropdown-link-active-bg: rgb(var(--bs-primary-rgb));
}