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(Question): Make the focus style of the content editor follow the theme configuration

haitaoo05898157c8bb
diff --git a/ui/src/components/CustomizeTheme/index.tsx b/ui/src/components/CustomizeTheme/index.tsx
index 674c0fbe..42313fb4 100644
--- a/ui/src/components/CustomizeTheme/index.tsx
+++ b/ui/src/components/CustomizeTheme/index.tsx
@@ -55,9 +55,12 @@ const Index: FC = () => {
--bs-pagination-active-border-color: ${primaryColor.hex()};
}
.form-select:focus,
- .form-control:focus {
- box-shadow: 0 0 0 0.25rem ${primaryColor.fade(0.75).string()};
- border-color: ${tintColor(primaryColor, 0.5)};
+ .form-control:focus,
+ .form-control.focus{
+ box-shadow: 0 0 0 0.25rem ${primaryColor
+ .fade(0.75)
+ .string()} !important;
+ border-color: ${tintColor(primaryColor, 0.5)} !important;
}
.form-check-input:checked {
background-color: ${primaryColor.hex()};
@@ -80,7 +83,7 @@ const Index: FC = () => {
color: ${primaryColor.hex()}!important;
}
.link-primary:hover, .link-primary:focus {
- color: ${shadeColor(primaryColor, 0.8).hex()}!important
+ color: ${shadeColor(primaryColor, 0.8).hex()}!important;
}
`}
</style>