Problem/Motivation
This Plan/Meta issue gathers all of the usability tests and surveys related to the toolbar redesign. It does not expect any code/MR.
As a result of the exploration of the possible integrations with the new left toolbar we’ve discovered that the existing left sidebar is missing the capacity to accommodate some of them. Items that are more actionable and related with the content of the existing elements on the page can’t be easily accommodated there.
The validation of this feature is happening in #3396125: Toolbar Prototype Usability Testing Phase 4 with the existing prototype to test on #3398483: Create a functional prototype of the new top contextual bar.

FIGMA initial designs:
here
Proposed resolution
The Top bar is going to provide 3 main areas, extendables:
1. The Tools area. Core and contrib modules will be able to provide inject content here that will serve as a set of tools for the page.
2. Contextual area. This will provide info about the existing entity or route with the goal to give info about where you are.
3. Actions area. Primary action and other action should be grouped here.
Remaining tasks
Must have (for both Navigation and Top Bar Stable releases)
For the whole Navigation module to be Stable, but also the Top Bar to be Stable, the following issues need to happen:
- #3508199: Navigation Top Bar accessibility issues found by Nightwatch tests
- #3507866: Enable the Navigation Top Bar when Navigation is enabled
Nice to have (for Stable release)
- #3511612: Local task name expectation in getFeaturedPageActions is fragile for determining Top Bar featured actions
- #3499783: Evaluate if the Top Bar entity title needs to show extra info
- #3500162: Define how to handle secondary local tasks in entity pages when Navigation Top Bar is enabled
- #3499783: Evaluate if the Top Bar entity title needs to show extra info
- Evaluate moving the Preview button to the Top bar staring with #3408500: Move the Save button into the Top Bar
- Decide what to do with the Publish checkbox + workflow (Long term, since it'll depend on the redesign of the Workspaces module workflows and UIs)
- #3501662: navigation top bar edit button has strange active (?) colors
- #3501507: Navigation top bar overlaps with Olivero menu
Issue with a proof of concept for the front-end: #3484601: Proof of concept for the components that will render the top bar
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | b375df8b09344c1814d0a744830c8773.gif | 371.87 KB | finnsky |
| #21 | top_bar_fullwidth.jpg | 44.4 KB | matthieuscarset |
| #19 | top-bar.png | 6.05 KB | ckrina |
| #16 | top-bar-idea.png | 43.25 KB | ckrina |
Issue fork drupal-3401826
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
finnsky commentedComment #3
ckrinaComment #4
ckrinaComment #5
ckrinaComment #6
ckrinaUpdated with a list of the remaining issues.
Comment #7
ckrinaComment #8
charles belovI'd also like to see what that top bar might look like in the context of viewing the published version (if one exists) or viewing the current draft. I'm not a big fan of hiding things under "more options"; can that be an individual user's preference setting? Some users probably prefer less clutter, others like me prefer my options to be in sight.
Thinking about it though, if we were going to not have a preference setting:
Comment #9
plopescAdding reference to #3442059: Create feature flag module to control navigation top bar visibility
Comment #10
skaughtMore layout use please! (:
from: https://www.drupal.org/project/navigation/issues/3425081#comment-15568869
We need to keep in mind that other modules 'opt-in' to using toolbar via hook_toolbar:
- IMO: umami is a good example of a bad use of hook_toolbar. overall message is at that (:
- I would anticipate that devel would themselves convert to a menu and be placed in within the 'default/main navigation layout section' (left side).
However this is reminding of the purpose of top bar: many different things!
Propose: Top bar also adds Layout for right/left position.
-> convert 'local tasks' to a plugin to be placed.
-> maybe plugin items need a 'lock' status so that can not be removed from a layout (base feature ensured to be present). ie: can only be removed via module un-install.
For example: local tasks, navigations own 'user' plugin' should both be locked.
- umami doesn't need to lock itself, maybe user want to use it! (:
- workspaces would prefer to ensure is (generally) placed, and locked.
Also: currently we place 'help link' as part of our 'user plugin' -- but Help Module should provide this!
Question: Is NavigationBlock currently flexible enough to also be used this way?
-> info and docs about the plugins.
DX (any layout region):
->how can other modules install their items?
Comment #11
ckrinaComment #12
andypostIt could use to provide help topics for the module
Comment #13
skaughtWe're missing a breadcrumb more that a return link which then fills the space we need (sm->mid breakpoint ranges)

noting:
- right most icon is meant to be Node Forms vertical tabs
- actions include old style tab items (ie: revision, also normal for developers 'devel' would follow)
I realize this is a mixed issue conversation point:
In this respect, you would want the vertical tabs 'pill' to always be the rightmost among other pills placed in the zone.
Comment #14
ckrinaComment #15
ckrinaReplacing the screenshot posted to avoid confusion and discussions about unrelated elements on the page. Please take into account that this is still on the definition phase where we are actively defining (and testing) which features to provide.
Yes, the plan is to provide an plugable system for contribs and custom modules. But we still need to define where goes what and why, and after that provide the necessary documentation to help everybody make the best call. But as today we're not there yet :)
Comment #16
ckrinaComment #17
finnsky commentedI think it is good place for
1. SDC.
Before SDC was stable we had some efforts in that direction https://git.drupalcode.org/project/navigation/-/merge_requests/72/diffs
We need to convert existing components and add new components as sdc.
2. Storybook. I still believe it is better to check all theories until they adapted on Drupal.
Some previous SB versions.
https://storied-pixie-3d54e7.netlify.app/iframe.html?args=&id=page-examp...
https://sparkling-gaufre-c402f2.netlify.app/iframe.html?args=&id=page--b...
https://thunderous-treacle-600c5c.netlify.app/iframe.html?args=&id=page-...
Comment #18
michaellander commentedWe started using layout builder in mega menu's awhile ago with great success, and seeing layout builder implemented in the new navigation builder successfully is awesome. I'd love to see it used here. We could have blocks for 'Entity Operations', 'Form Actions', etc. With the left toolbar acting more global, and the top bar holding more contextual info, we could take advantage of the existing Context system for some of the block visibility handling. This approach makes it far easier for other modules to extend and override the top bar without having to override templates everywhere.
I'd be happy to build that in similar fashion to the left hand toolbar if it would be helpful.
Comment #19
ckrinaChanging the image with updated designs and some explanation of the areas.
Comment #20
plopescThank you @ckrina for the new updated design and explanation of the areas.
Below you can find an implementation proposal based on the feedback collected so far:
Given that top_bar is not intended to be configurable for end users, we agreed that it should be handled using a code only approach, not providing a UI for it.
Navigation Top Bar module will provide a hook,
hook_navigation_top_bar(), where modules will be capable to add items to the 3 different top bar regions (tool, contextual & actions). A similar alter hook will allow to modify the items added beforehand.Navigation Top Bar will provide a render element where modules will declare their Top Bar elements, the section they belong to and their weight, in a similar way as
toolbar_itemelement does.Contrib module developers will need to be careful adding new elements to this section, given that space is limited and adding more items than necessary could cause negative effects in the site UI.
Comment #21
matthieuscarset commentedI'd like to suggest an improvement.
The empty space alongside the logo in the navigation seems to be a "lost" space.
We should place the logo in the top bar and make it a full width component.
It will 1) improve the navigation sidebar design and 2) provide more space to add more items in the topbar.
Example in the capture attached.
Comment #22
ckrina@matthieuscarset thank you for the suggestion.
We already evaluated the solution you're proposing internally and with the XB team (together with several other ones) and agreed to go with the one defined in comment #19 .
Edit: To clarify: the goal is to get Navigation into stable asap. Revisions might happen in the future, but since we've evaluated other options already we'll launch with this for now in a way that doesn't have major implications on the scope of work needed to reach stable.
Comment #24
finnsky commentedI understand that we shouldn't add MR here. But in order to get things moving I'll try.
I added a few areas as suggested. Created a few new SDC components.
Now it looks like this
We need to add an understanding of how modules can extend these areas. (I honestly still don't have it). And add subtasks for these areas/components.
Comment #25
ckrinaAdding the issue to define those 3 regions: #3484564: Define the 3 areas the Top Bar will provide.
Comment #26
ckrinaThanks @finnsky for the proof of concept! Could you move the work into #3484601: Proof of concept for the components that will render the top bar so we can focus the discussions in this issue to higher level / less detailed topics and the implementation ones in the other? I added it into the summary so it is taken into account too and can be used as reference.
Added also the next steps for the content that can be placed already:
Other things from the designs (like removing the more actions and replacing it by 3 dots) will need issues created too, but they are not stable blockers.
Comment #27
ckrinaUpdating the issue summary to make it clear what are the next steps and blockers to get to Stable.
Also, @finnsky closing the MR because we don't want code on META issues. If you think it's still useful to keep it could you please move it to #3484601: Proof of concept for the components that will render the top bar? Otherwise that issue can be closed.
Comment #30
ckrinaAdded parent #3421969: [PLAN] New Navigation and Top Bar to replace Toolbar Roadmap: Path to Stable.
Comment #31
plopescComment #32
ckrinaUpdated what Stable release means.
Comment #33
ckrinaAdding #3499783: Evaluate if the Top Bar entity title needs to show extra info as a nice to have.
Comment #34
plopescAdding #3501465: Navigation Top Bar Page Actions dropdown should not include link to the current page and order should respect local tasks weight
Comment #35
ckrinaUpdating issues.
Comment #36
ckrinaComment #37
ckrinaSome more issues.
Comment #38
ckrinaRemoving #3465295: Integrate Top Bar Navigation with Contextual editing from Stable blocker. For more info read the comment in the issue.
Also cleaning up the rest of the closed issues from the list, so we can start working towards getting the Navigation to Stable. 🎉
I've also removed #3446699: Implement a feature similar to the "Go Back" / escapeAdmin.js from the list since it is a pattern that needs another implementation rather than just porting what we had.
Comment #39
plopescAdded #3508199: Navigation Top Bar accessibility issues found by Nightwatch tests
Comment #40
m4oliveiAdded #3511612: Local task name expectation in getFeaturedPageActions is fragile for determining Top Bar featured actions as 'Must have'.
Added #3507866: Enable the Navigation Top Bar when Navigation is enabled as 'Must have'.
Added a couple of bugs to 'Nice to have':
#3501662: navigation top bar edit button has strange active (?) colors
#3501507: Navigation top bar overlaps with Olivero menu
Comment #41
catchMoving #3511612: Local task name expectation in getFeaturedPageActions is fragile for determining Top Bar featured actions to nice to have, per the discussion on the issue, see #3511612-12: Local task name expectation in getFeaturedPageActions is fragile for determining Top Bar featured actions and above.
I think it would be a good idea at this point to merge this issue back into #3421969: [PLAN] New Navigation and Top Bar to replace Toolbar Roadmap: Path to Stable so that all the must/should have etc. issues for the navigation module are tracked in one place - it's only one module that provides two bars, we can have subsections on the main issue, but it's hard to follow with it split like this - and the other issue has some top bar issues already.