Skip to content

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(Header): Make dropdown item in active to follow the primary color

haitao(lj)dafeebeaba3d
diff --git a/ui/src/components/CustomizeTheme/index.tsx b/ui/src/components/CustomizeTheme/index.tsx
index ec48c60f..4630c9c6 100644
--- a/ui/src/components/CustomizeTheme/index.tsx
+++ b/ui/src/components/CustomizeTheme/index.tsx
@@ -66,6 +66,9 @@ const Index: FC = () => {
.form-check-input:focus {
box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), .4);
}
+ .dropdown-menu {
+ --bs-dropdown-link-active-bg: rgb(var(--bs-primary-rgb));
+ }
`}
</style>
)}