-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Editor styles: convert to hook #27080
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
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. |
| ); | ||
| 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
EditorStylescomponent 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: