Problem/Motivation
The current toolbar behavior exposes a menu as a nested, expandable menu when the containing tray is display in the vertical orientation. When the tray's orientation is switched to horizontal, only a menu's top-level items are exposed -- second level and lower menu items are hidden.
The decision to hide the second level menu items when the tray is in a horizontal orientation was a compromise made during the development of the initial responsive toolbar patch: #1137920: Fix toolbar on small screen sizes and redesign toolbar for desktop
Now that we have the framework of the responsive toolbar, we can expand its functionality and introduce dropdowns menus in a horizontally orientated toolbar tray.
Proposed resolution
See the Administration menu module and its implementation of dropdown menus.
Remaining tasks
To be determined.
User interface changes
To be determined.
API changes
None.
Comments
Comment #1
Shyamala CreditAttribution: Shyamala commentedtagging
Comment #2
yoroy CreditAttribution: yoroy commentedWithout personally advocating pro or contra, it would be good to provide rationale as to why this would be a good thing.
Comment #3
webchickWell, all of the reasons people use Admin Menu as opposed to the default core toolbar in D7. See #1847370: Why did I install admin_menu in favor of the Toolbar in Drupal 8? for a run-down.
- No waiting around for page refreshes in order to get deep into the tree.
- Can quickly get the sense of the the entire IA by hovering around when learning.
- Fewer clicks to get to places once you know where you're going.
- Much, much faster to get your work done.
Comment #4
yoroy CreditAttribution: yoroy commentedGood list. Besides point 2, this would mostly be an improvement for non-beginners, so intermediates and advanced users. And I'm not sure 'hovering around' is a better/easier way to learn then clicking around. Nor am I too sure if getting a sense of the entire IA is a useful task we need to improve on.
Remember the paradox of choice: more options makes it harder to choose. Too many choices and people are likely to not choose at all. Fewer clicks does not necessarily increase *percieved* performance/speed of finding ones destination.
Choose your poison :-)
Comment #5
wusel CreditAttribution: wusel commentedPlease add the behavior of the module admin_menu, when the toolbar is in horizontal orientation.
Perhaps add a setting for the user to change this. But I think, the default should be to show this new behavior.
Thank you very much!
Wusel
Comment #6
tkoleary CreditAttribution: tkoleary commentedMoving to 9 since this is a feature and we are past API freeze
Comment #7
webchickI don't think this needs to be 9.x. It seems like something we could do in 8.1.x.
See also #2390047: Add Hover Submenu drop down to horizontal toolbar which has some code.
Comment #8
webchickJust randomly came across https://www.drupal.org/project/admin_toolbar which seems to do this in contrib.
Comment #18
nod_