-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor styles: convert to hook #27080
Conversation
Size Change: +29 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
1d5bc69
to
c06b908
Compare
Looks like something went wrong after the rebase. |
@@ -163,6 +164,9 @@ function Layout() { | |||
}, | |||
[ entitiesSavedStatesCallback ] | |||
); | |||
const ref = useRef(); | |||
|
|||
useEditorStyles( ref, settings.styles ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this broke the "use theme editor styles" option, it's now always using the theme styles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I have a fix coming)
Description
This PR converts the current unstable
EditorStyles
component to a hook. It just needs access to a ref to know the owner document.How has this been tested?
Screenshots
Types of changes
Checklist: