Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): color focused editor buttons with the theme again

Elian Doran5f4336b0051d
diff --git a/apps/client/src/stylesheets/ckeditor-theme.css b/apps/client/src/stylesheets/ckeditor-theme.css
index 14996d6e70..b5d674375b 100644
--- a/apps/client/src/stylesheets/ckeditor-theme.css
+++ b/apps/client/src/stylesheets/ckeditor-theme.css
@@ -120,6 +120,7 @@ div.ck.ck-dialog {
--ck-border-radius: var(--bs-border-radius);
--ck-focus-ring: 1px solid var(--input-focus-outline-color, var(--main-border-color));
+ --ck-button-focus-border-color: var(--input-focus-outline-color, var(--main-border-color));
--ck-color-focus-border: var(--input-focus-outline-color, var(--main-border-color));
--ck-focus-outer-shadow: none;
--ck-focus-disabled-outer-shadow: none;
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 6ce1a57a2f..1f6c99658f 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -21,6 +21,7 @@
--ck-color-split-button-hover-background: var(--ck-editor-toolbar-dropdown-button-open-background);
--ck-focus-ring: 1px solid transparent;
+ --ck-button-focus-border-color: transparent;
--ck-color-focus-border: var(--input-focus-outline-color);
--ck-focus-outer-shadow: none;
--ck-focus-disabled-outer-shadow: none;
@@ -79,6 +80,7 @@
/* Focus visible */
.ck.ck-toolbar .ck-button:focus-visible {
--ck-focus-ring: 1px solid var(--input-focus-outline-color);
+ --ck-button-focus-border-color: var(--input-focus-outline-color);
}
/* Remove the border from hovered split arrow button */