-
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
Styles: Relocate the revisions toggle #66307
Comments
Personally, I would be in favor of removing the descriptions and placing the navigation buttons grouped together. |
I wouldn't object, but feels like a detail to discuss separately. |
I tend to think the best path forward here is to tackle this issue together with #66333. To recap:
Re: the navigation button styling: for now, I'd propose to use the built-in variants of the I wouldn't object to use other variants of the component. However, I think it's important to use built-in variants and avoid ad-hoc implementation and / or CSS overrides. If a different styling is desired, I'd strongly recommend to create a new issue to consider to introduce a new variant. Screenshot before and after: |
There is a lot of high level design work around the Styles panel happening in #66376, so I would lean towards keeping changes focused on functionality for now. |
Yes, let's not do design work on this panel here. One-off changes aren't going to improve the experience—it's going to continue making WordPress feel more and more fragmented and difficult to understand. |
We may have different perceptions. To me, the editor is already largely fragmented and the current design is far from ideal.
It all depends on when the redesign proposed in #66376 will land in WordPress. If it will take long time and it won't make it for the next release, I vote for moving on with this improvement for now. |
@jameskoster @richtabor I carefully read all the ongoing discussion on #66376 and I'm not sure I understand how that relates to the content of the Syles panel. Basically, so far, #66376 is about moving the entire Styles panel inside the 'Content frame' of the site view. It doesn't touch the content of the Styles panel. Also, #66376 removes the 'Revisions' toggle from the panel header, which is the same direction this issue and its related PR are taking. This issue and the proposed PR #66476 aim to improve the content of the Styles panel. Overall, I don't see the ongoing exploration in #66376 as a blocker for #66476. Can you please share whether you have other concerns about improving the content of the panel? Thanks. |
That wasn't my read of #66376, @afercia. There are a few comments discussing moving the initial screen of the global styles panel into the main site editor navigation. It stands to reason that if that path were taken we wouldn't duplicate the revisions button, instead we'd use the button that is already there, as shown in this issue's description. As this process unfolds, the panel will evolve further. All the lessons learned can then be brought back to the Global Styles panel within the editor. This demonstrates the in-flux nature of the styles panel at the moment and highlights the wisdom in keeping changes limited in scope and to functionality if possible. The energy that would go into re-work can otherwise be invested into the final result. There was also a design update on #66376 overnight that would address a lot of the discussion here. I'd expect most of that to be worked on either in #65619 or follow-ups to it. That's just how things are shaping up in my view. Hopefully, it helps clarify that we're all working to the same end goal, improving usability. |
@aaronrobertshaw thanks for pointing that out. That changes a lot. I see the discussion on #66376 is now evolving from a '1:1 transplant of the existing global styles sidebar into site view' into a complete rethinking of the Styles panel as well. I have no strong opinions. The PR for this issue #66476 may be considered a temporary improvement. It's relatively small and self-contained, I don't think it would cause any overhead. It's also going in the same direction as also in #66376 the Revisions and Additional CSS are always visible in the main panel. I'll leave it to you all. |
I think it was always heading that way. The question, as always, is how we get there. In this case, we might need to make more of a jump than normal.
I'll comment over on that issue shortly. This is just my view but I'm not convinced on #66476. You've raised the consistency argument across a number of related issues and PRs here. That PR just moves the inconsistency somewhere else. Locating the revisions at the bottom of the panel matching the styles screen of the site editor would achieve that consistency. The discussion around changing existing UI elements into an item group etc is also expanding the scope beyond what's advertised. I agree that it is the "in the same direction" but it's still making multiple changes when we should only make one. I know you're a huge advocate for users, so you'll probably also appreciate we should avoid making users adjust twice, to successive UI changes. As there is active work on #66376, it shouldn't be too long before the dust settles and we can properly address all the concerns we share. This is just my two cents but it appears we don't have a consensus so might need to take a little time before pushing too far ahead. |
My understanding is that the initial scope of #66376 wasn't a complete refactoring. The PR initial description clearly states that:
Only later the conversation evolved towards a broader rethinking of the Styles panel. This doesn't change the value of the points mentioned in this discussion. It's just to be accurate and provide correct context to the ones who may read this conversation in the future.
Absolutely. I would appreciate that principle to be applied to all future UI changes. I would have appreciated that principle to be applied also to all the past UI changes in the last 7 years but that's often not been the case. |
Description
Splitting this out from #63243
The global styles panel header contains 3 additional buttons besides the X close button:
In #63243 it was pointed out that this buttons shouldn't be placed in the panel header in teh first place.
showIconLabels
preference is true. The length of the text is unpredictable as translations may provide strings that are way longer than the English ones. Fix Global styles panel header buttons text overlap for 'Show button text labels' #63243 tries to improve things but there may still be cases where the buttons visibel text overlaps.showIconLabels
preference.It was also noted that the Revisions toggle placement is inconsistent with other parts of the UI:
While in the Site editor navigation panel it's placed at the bottom of the Styles panel::
I'd tend to agree with @jameskoster comment:
As such, I'd like to propose to consider relocating this button at the bottom of the Global styles panel:
Cc @WordPress/gutenberg-design
@t-hamano @aaronrobertshaw
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: