Revert visual-editor overlay defaults: border-width 2px, hover/highlight opacity 0.333#678
Merged
formfcw merged 1 commit intoMay 18, 2026
Conversation
Reflects cda18ff: borderWidth removed from VisualEditingTheme (rect border-width now falls back to focusRingWidth = 2px), and rect-hover/rect-highlight opacities reverted from 0.4 to 0.333.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sub-PR for #628.
Reflects cda18ff874 ("use focus-ring-width instead of borderWidth theme token and revert opacity values"), which:
borderWidthfield fromVisualEditingTheme. The compiled-in fallback for--directus-visual-editing--rect--border-widthis now sourced fromt.focusRingWidth(default2px) instead of the removedt.borderWidth(was1px).--hover-opacityfrom0.4back to0.333.--directus-visual-editing--rect-highlight--opacityfrom0.4back to0.333.Changes
content/guides/02.content/8.visual-editor/3.customization.md--directus-visual-editing--rect--border-width: 1px;→2px--directus-visual-editing--rect-hover--opacity: 0.4;→0.333--directus-visual-editing--rect-highlight--opacity: 0.4;→0.333The Studio-defaults callout still reads correctly: it already lists "focus-ring width/offset" as Studio-sourced, which transitively covers the new rect border-width fallback.