[wp-trac] [WordPress Trac] #53184: Toolbar Enhancements: turn off labels / disable plugins / auto-hiding
WordPress Trac
noreply at wordpress.org
Wed Jul 14 00:10:19 UTC 2021
#53184: Toolbar Enhancements: turn off labels / disable plugins / auto-hiding
-------------------------------------+-------------------------------------
Reporter: tomjdevisser | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: needs-design needs- | Focuses: ui, css,
patch 2nd-opinion | administration
-------------------------------------+-------------------------------------
Changes (by sabernhardt):
* keywords: needs-design needs-patch => needs-design needs-patch 2nd-
opinion
Comment:
Thanks for the suggestions! Yes, the toolbar can get very crowded
(#28983).
For now, a plugin could add any of these features. The first two options
might be simpler within core, though, or at least simpler with changes to
core.
1. Currently, the markup for the icons is not consistent. Each icon is
added on a `:before` pseudo-element, but those can be on `ab-item` or `ab-
icon` elements (plus the `#adminbarsearch` form). So a plugin probably
would need to specify each link that contains an icon and set a width
(which would need to change at mobile sizes), with overflow hidden. Adding
something like `ab-has-icon` as a meta class and using `ab-icon` spans
within core links could help with consistency.
2. While I think I prefer the option to add/remove plugin-related toolbar
items to come from the plugin itself, that relies on plugin authors to
offer that option. I know at least two Yoast plugins do this, though I'm
not aware of any others. Identifying which toolbar items are added by core
(in the PHP, not CSS) could also help determine which links should be
hidden on mobile screens (#41288).
3. Auto-hide until scrolling up sounds like the suggestion on
ticket:40544#comment:4 of using a script similar to headroom.js. Of
course, that was in the context of small screens, not adding as an option
for anyone. I do not (yet) think this would belong in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53184#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list