From 57b8b626c525d1452cf7333d6bc75ba4ea4de391 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 13 Oct 2026 12:53:12 -0400 Subject: [PATCH] TinyMCE: drop the editor's built-in blue focus box so it follows the theme colour like every other field --- css/itflow_custom.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/css/itflow_custom.css b/css/itflow_custom.css index f4a4ac272..c5e6fbd9a 100644 --- a/css/itflow_custom.css +++ b/css/itflow_custom.css @@ -1038,6 +1038,13 @@ a:focus { border-color: var(--itflow-accent, #007bff); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--itflow-accent, #007bff) 25%, transparent); } +/* TinyMCE also draws its own focus box inside the editor - a fixed blue + (#006ce7) border on .tox-edit-area::before - so on any other theme a blue + box sat inside the theme-coloured ring. The ring above is the one every + input gets, so the inner box goes. */ +.tox:not(.tox-tinymce-inline) .tox-edit-area::before { + display: none; +} /* menus and dropdowns the toolbar opens */ .tox .tox-menu, .tox .tox-collection--list .tox-collection__group {