Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/formatting toolbar: tweak the appearance of split buttons

Adorian Doran45cc8aa99bbc
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 390f0d9373..a159e2c87b 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -22,6 +22,8 @@
--ck-color-button-on-hover-background: var(--hover-item-background-color);
--ck-color-button-default-active-background: var(--hover-item-background-color);
+ --ck-color-split-button-hover-background: var(--ck-editor-toolbar-dropdown-button-open-background);
+
--ck-focus-ring: 1px solid transparent;
--ck-color-focus-border: var(--input-focus-outline-color);
--ck-focus-outer-shadow: none;
@@ -69,6 +71,11 @@
--ck-focus-ring: 1px solid var(--input-focus-outline-color);
}
+/* Remove the border from hovered split arrow button */
+.ck.ck-splitbutton:hover > .ck-splitbutton__arrow:not(.ck-disabled)::after {
+ visibility: collapse;
+}
+
/*
* Dropdowns
*/