Problem/Motivation

The AdminToolbar (Navigation)items are not clickable when we're on the navigation layout page.

Steps to reproduce

1). Install latest version of drupal11.
2). Install Navigation module from extend
3). go to Configuration > UserInterface > Navigation Layout and try to click on any Navigation links.
img

Proposed resolution

Original Proposal

layout-builder-block[tabindex="-1"] {
/* Remove pointer-events: none; */
pointer-events: auto; /* Make it clickable */
}

Alternative proposal

Provide an "Edit Mode" for this page, so visitors will be able to use the navigation while it is disabled.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3509310

Command icon 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

rinku jacob 13 created an issue. See original summary.

quietone’s picture

Version: 11.1.x-dev » 11.x-dev
rinku jacob 13’s picture

Title: Unchecking the content preview in navigation layout will change the navigation icon to text. » The AdminToolbar items are not clickable when we're on the navigation layout page.
Issue summary: View changes
StatusFileSize
new439.88 KB
new5.36 MB
rinku jacob 13’s picture

Title: The AdminToolbar items are not clickable when we're on the navigation layout page. » The AdminToolbar(Navigation) items are not clickable when we're on the navigation layout page.

rinku jacob 13’s picture

The above MR will fix the navigation link click issue. However, for the second-level menu, if there is a submenu, the page immediately refreshes. I need to work on fixing that issue. For the navigation link fix, I’m awaiting feedback from the maintainers to confirm if I’m on the right track. Once I receive approval, I will focus on addressing the second issue I discovered. Adding screen records for the reference.

rinku jacob 13’s picture

Even though I have made the menus clickable, they are not directing to the corresponding pages. Need to work on fixing this as well.

rinku jacob 13’s picture

plopesc made their first commit to this issue’s fork.

plopesc’s picture

Status: Active » Needs review

Added new approach to try to address this issue.

When the user lands in the Navigation blocks page, there is a button to enable the edition mode. Only when the edition mode is enabled, LB taker over the navigation.

Once changes are saved or discarded, the user is back to normal mode, where the left bar navigation is fully functional.

plopesc’s picture

Issue summary: View changes
m4olivei’s picture

Status: Needs review » Needs work

Looks great! Really like this approach. Just some super nit picks for naming. Otherwise looking good. I would favor this approach over messing with the styles.

plopesc’s picture

Status: Needs work » Needs review

Thank you for your review @m4olivei. Applied your suggestions.

Back to Needs Review.

sagarmohite0031’s picture

Hello,
Tested and verified on Drupal 11.
MR applied successfully.
But issue is still there, When I'm clicking on on any option its redirect me to Edit layout for Navigation layout Add to Default shortcuts

Steps to reproduce
1). Install latest version of Drupal 11.
2). Install Navigation module from extend
3). go to Configuration > User Interface > Navigation Layout and try to click on any Navigation links.

Please check Attachment-

m4olivei’s picture

Status: Needs review » Reviewed & tested by the community

Looks great! Nice improvement. Thanks @plopesc!

ckrina’s picture

+1 to the RTBC on a UX perspective while testing this locally, after being asked by @catch to +1 the UX changes.

It would be great though that UI changes that have considerable UX changes are reviewed by a UX person before RTBC it. And to make UX people life easier it would be great that any RTBC comes with a proper issue summary update and screenshots or videos to help other UX reviewers without git knowledge to see and understand the changes.

That said, 2 things:
1. Great work everyone with this change! It takes away on of the worst UX behaviors from this page.
2. We really need to start a plan to remove Layout Builder from this UI. It wasn't designed for this and it's an overkill that results in a very poor UX.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

  • catch committed b4fffd14 on 11.x
    Issue #3509310 by plopesc, rinku jacob 13, m4olivei, ckrina: The...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.