mirror of https://gitee.com/answerdev/answer.git
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:
commit
9210147039
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue