Editor: Unify spotlight mode preference#57533
Conversation
|
Size Change: -47 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
Mamaduka
left a comment
There was a problem hiding this comment.
Thank you, @youknowriad!
Besides one note for the Site Editor, the changes test well for me.
✅ The preference is correctly migrated.
✅ The preference is shared between editors.
❌ The site editor is displaying in spotlight mode when canvas mode is view.
|
|
||
| richEditingEnabled: true, | ||
| supportsTemplateMode: true, | ||
| focusMode: canvasMode === 'view' && focusMode ? false : focusMode, |
There was a problem hiding this comment.
This is a breaking change; the spotlight mode will now apply in view mode.
There was a problem hiding this comment.
I can restore it but I don't like that part :P
There was a problem hiding this comment.
I think the current behavior creates bad UX when exploring theme styles.
Update: Actually, the behavior is the same on the trunk when browsing styles from the sidebar; this might be something we'll need to fix separately.
The 2da2fd6 fixed regression for view mode.
Related #52632
Similar to #57468
What?
This PR continues the work on the great unification between post and site editors. In this PR we're unifying the "Spotlight mode" preference. If the user enables it in the post editor, the setting should be used in the site editor as well.
Testing instructions