-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add global styles page and package #20066
Conversation
…g-edit-global-styles
I thought this was supposed to go to the edit-site package and page. What happens to that plan? |
Hi @youknowriad, the reason for that is that we don't want to have this UI accessible in the UI until the design team decides on a flow to access this UI. This way, it only appears if you type a URL, there is no UI flow. That makes sure we are not introducing any bias in the decision the team will take. Regarding an external package, I received some feedback from @epiqueras that a package for global styles may be useful to not mix with edit-site related functionality. |
@youknowriad + @jorgefilipecosta Apologies for the confusion! To clarify, from our last group meeting, we were unsure of (the ideal) user workflow in regards to updating styles. As such, we felt it may be better to have a dedicated area for now, as @jorgefilipecosta expressed here:
However, after some feedback, folks felt like it would be better to have it within There was a lack of communication from my end in coordinating these updates. Apologies all! I'll be more mindful to better coordinate efforts moving forward. |
Given the change of direction, I think this PR is not useful. I think the new direction is better and edit-site is a good place to iterate we can follow that direction in #20061. |
Yes, but the code should still be in its own package. |
What's the reasoning for this. What's the purpose of said package. The API/contract should be clear if we decide to extract something to its own package and I'm not really sure it's clear from the start. |
It's a separate UI that can be used in other screens and editors. |
Why not "block-editor" in that case? Do we have a precedent for a similar UI? |
Starting to work in an experimental package like |
The concerns are very different, and it will be filled with extra code like style resolvers and what not. It makes sense to have it all under one global-styles package that doesn't have to be published until we think it's stable enough, but mixing it with |
My impression here is that this PR is something that needs/should also be discussed during the core editor chat. Please bring it up and perhaps also post about it on the core editor agenda (if needed). |
The page is available at:
It does not show anywhere on the normal WordPress UI it is only open when the user opens that URL.
For now, the page is mostly blank but it loads the modules required to start the work on global styles (wp-data, components i18n etc...)
How has this been tested?
I opened /wp-admin/admin.php?page=gutenberg-edit-global-styles and verified an editor global styles page appears as in the screenshot.
Screenshots