-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Routing: Add styles page as a route #73197
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: +2.08 kB (+0.09%) Total Size: 2.41 MB
ℹ️ View Unchanged
|
|
I can see a few errors in the console regarding blocks. For example Also it seems I cannot access the single page for posts lists when I click one. I guess you plan on adding a save button later on? |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| </div> | ||
| ) } | ||
| { /* Render custom canvas when canvas() returns null */ } | ||
| { canvasData === null && CustomCanvas && ( |
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.
Why do we also need canvasData === null and not directly check if CustomCanvas? Is this needed for routes to conditionally return either a custom canvas or use the default in some cases? If yes, what would be a case like that?
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.
Yes, and the stylebook is the use-case for it, because there will be an "eye" button to switch between stylebook and regular canvas.
|
I've seen the mathml issue before, I think it's unrelated with this PR and happens in the editor. I'll have to fix it separately. |
090a7a1 to
2d2b87b
Compare
Forgot about this, I'll add it now I think. |
This is fixed. |
|
Flaky tests detected in 23c10ea. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19327772189
|
Related #70862
What?
This PR starts bringing features and pages from the site editor to routes. This starts with the styles page.
It also adds "custom canvas" support to the boot package to be able to render the stylebook in the canvas (as opposed to the regular default editor).
Testing Instructions
http://localhost:8888/wp-admin/admin.php?page=gutenberg-boot&p=%2Fstyles%3Fsection%3D%252F