Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): keep toolbar buttons in the text color on iOS

Elian Doran9d5845c836ef
diff --git a/apps/client/src/stylesheets/ckeditor-theme.css b/apps/client/src/stylesheets/ckeditor-theme.css
index 2e71bf1eae..781fc7acad 100644
--- a/apps/client/src/stylesheets/ckeditor-theme.css
+++ b/apps/client/src/stylesheets/ckeditor-theme.css
@@ -206,3 +206,9 @@ div.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {
margin-bottom: .9em;
}
}
+
+/* A toolbar placed outside the editor leaves the `.ck-reset_all` that colors its buttons, and iOS
+ Safari draws an uncolored button in the system blue. */
+:where(.classic-toolbar-widget) .ck.ck-button {
+ color: var(--ck-color-text);
+}