-
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
View Page and Toggle Zoom Out buttons should have width auto
when showIconLabels is true
#65491
Comments
One more issue with the 'Toggoel Zoom Out' is that buttons should not show a tooltip with the same text of the visible text. In fact, for most buttons the tooltip is conditional and doesn't show up when the label is visible. Screenshots; In the Site Editor and Post Editor, the tooltip just repeats the visible text: Post editor: Site editor: |
Now that #65573 has been merged, I submitted a quick PR to remove the verb Toggle, Besides making the string better translatable, shortening the label helps not breaking the layout when the 'Show button text labels' preference is enabled. Screenshot with the WP admin language set to English: However, other languages provide longer strings so the layout isn'g great yet. I stand corrected with my previous description as it seems the widht Screenshots in other languages: |
I can confirm the buttons in the editor header have
This looks to be because the buttons in question don't enforce Buttons for pinned plugin sidebars are made tertiary buttons which come with The possibility of an unknown number of pinned plugins could make a completely clean solution tricky. For now though creating a bunch of test puglin sidebars, it just reduces the available space for the center document bar. The document tools on the left of the editor header mostly get hidden at smaller viewports, so do not seem as susceptible to wrapping. I drafted a quick PR that simply adds While testing this, I noticed the buttons in the Global Styles sidebar's header are also wrapping and overlapping when |
@aaronrobertshaw thanks for looking into this. Personally, I think the only way to improve
Yes that's one of the issues. It would be interesting to understand why the default button doesn't use
Regarding, the document bar, I'm proposing to entirely rethink it. Its implementation is less than ideal from an usability and accessibility perspective and it is a problem when the viewport is small. I don't think hiding controls and content is the best approach to responsive design in the first place. See #65238
That is a known issue and it's reported on #61761 |
@afercia moved the text wrapping conversation to a separate issue: #66049
@aaronrobertshaw yeah, basically code in |
👋 Thanks for all the discussion and work on this. Looking at this with a 6.7 lense for a second, I could be wrong but it seems like there are a lot of moving parts and fixes being proposed that could expand in scope. Would it be better to defer this work until 6.8 cycle to allow a more comprehensive solution to be devised as a components level? I definitely support the effort to improve the current situation but if the complexity is high it's probably not a good fit for this late in the release cycle. What do you think? Is it possible to "de scope" this to a simple fix or is it a larger problem that could do with more time to resolve? Update: I just noticed #66038 (comment) is a proposal for a quick fix. So the above might be a moot point. |
Reminder: to address in a more holistically way the implementation of |
Description
See #65183
See #65311
See #65404
When enabling the 'Show button text labels' preference, most buttons in the top bar and block toolbars should have a width
auto
to show the text labels in a single line. View Page and Toggle Zoom Out don't. Screenshot:It would be great to have a more reliable mechanism to set the width
auto
to icon buttons that reveal their text whenshowIconLabels
is true.Also, it would be great that any new design and UI change is designed taking into account
showIconLabels
and tested for it. Cc @WordPress/gutenberg-designThe 'Zoom out` feature is now not flagged behind an experiment any longer so this appeear something to fix soon.
Additionally, I'd like to remind everyone that the verb 'Toggle' must be avoided as it's not well translatable in many languages.
See #42492
See https://core.trac.wordpress.org/ticket/34753
Cc @WordPress/gutenberg-core
Step-by-step reproduction instructions
View Page
andToggle Zoom Out
buttons text wraps in two lines.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: