Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): style form dropdowns like the theme's selects

Elian Doran2ed4dc0cedd3
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index e4a1228598..24a9d72142 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -147,6 +147,12 @@
:root .ck.ck-dropdown__panel {
--ck-editor-popup-padding: var(--menu-padding-size);
+ --ck-button-focus-border-color: transparent;
+ --ck-focus-outer-shadow: none;
+}
+
+:root .ck.ck-dropdown__panel .ck-button:focus-visible {
+ --ck-button-focus-border-color: var(--input-focus-outline-color);
}
/* Submenu panel */
@@ -614,6 +620,28 @@ button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .c
font-weight: 500;
}
+/*
+ * Dropdowns in forms
+ */
+
+:root .ck.ck-form .ck.ck-dropdown > .ck.ck-button.ck-dropdown__button {
+ border: unset;
+ border-radius: var(--bs-border-radius);
+ box-shadow: unset;
+ background: var(--input-background-color);
+ color: var(--input-text-color);
+
+ &:not(.ck-disabled):hover {
+ background: var(--input-hover-background);
+ color: var(--input-hover-color);
+ }
+
+ &:focus-visible {
+ outline: 3px solid var(--input-focus-outline-color);
+ outline-offset: 0;
+ }
+}
+
/*
* Text boxes
*/