TinyMCE: drop the editor's built-in blue focus box so it follows the theme colour like every other field

This commit is contained in:
johnnyq
2026-10-13 12:53:12 -04:00
parent 69484a8a2e
commit 57b8b626c5

View File

@@ -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 {