A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(switch): Enables switch to follow the theme color
haitao(lj)69b1b14552d2
diff --git a/ui/src/components/CustomizeTheme/index.tsx b/ui/src/components/CustomizeTheme/index.tsxindex cc9a90e0..ec48c60f 100644--- a/ui/src/components/CustomizeTheme/index.tsx+++ b/ui/src/components/CustomizeTheme/index.tsx@@ -59,6 +59,13 @@ const Index: FC = () => {box-shadow: 0 0 0 0.25rem ${primaryColor.fade(0.75).string()};border-color: ${tintColor(primaryColor, 0.5)};}+ .form-check-input:checked {+ background-color: ${primaryColor.hex()};+ border-color: ${primaryColor.hex()};+ }+ .form-check-input:focus {+ box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), .4);+ }`}</style>)}