
Problem/Motivation
Olivero combines the "Primary menu" and "Secondary menu" regions into a single, responsive component. (Maybe it is more accurate to say that the "Secondary menu" region is nested inside the "Primary menu" region.)
If there are links in the "Secondary menu" region, but not in the "Primary menu" region, then on narrow screens the collapsed component does not respond to a click event.
Steps to reproduce
- Install Drupal with the minimal profile.
- Log in as admin.
- Enable Olivero and set it as the default theme.
- View any front-end page in a narrow window.
- Try to open the secondary menu (account menu).
Proposed resolution
Remaining tasks
User interface changes
API changes
None
Data model changes
None
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#11 | 1024 view - without patch.png | 227.26 KB | sdhruvi5142 |
#11 | Ipad view - without patch.png | 77.94 KB | sdhruvi5142 |
#11 | Mobile View - without patch.png | 65.85 KB | sdhruvi5142 |
#11 | 1024 view - with patch.png | 419.22 KB | sdhruvi5142 |
#11 | Ipad View - with patch.png | 173.4 KB | sdhruvi5142 |
Issue fork drupal-3355510
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 #3
mukeysh CreditAttribution: mukeysh as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedThe reason for this problem is that the primary-navigation library is only attached to the main menu template, causing the issue. And if there is no link in the main menu then the main menu block is not rendered because of this library is not attached. I think we need to attach library globally to fix this issue.
Comment #4
gauravvvv CreditAttribution: gauravvvv at Axelerant for Drupal India Association commentedI have removed the
navigation-primary
library and added all the required files toglobal-styling
. As when we were loading thenavigation-primary
library only on primary menu, when it is not there it was causing the issue. I have attached the patch for same. please reviewComment #5
Harish1688 CreditAttribution: Harish1688 at Material commentedHi,
Tested the patch '3355510-4.patch' locally, and it applied successfully, resolving the issue and addressing the following point:
1. When the "Primary menu" is empty on a narrow window, the 'secondary menu' becomes visible upon clicking the menu.
Looks for RTBC
Comment #6
smustgrave CreditAttribution: smustgrave at Mobomo commented#4 had test failures.
Comment #7
rupeshghar CreditAttribution: rupeshghar at QED42 for Drupal India Association commentedComment #8
shweta__sharma CreditAttribution: shweta__sharma at OpenSense Labs commentedI do not see any issue in the expanding menu block everything looks fine.
See screen-recording - screen-capture-119.mp4
Testing steps:-
Comment #9
sdhruvi5142 CreditAttribution: sdhruvi5142 at QED42 commentedComment #11
sdhruvi5142 CreditAttribution: sdhruvi5142 at QED42 commentedHi, I've verified and tested this issue on drupal latest version 11.x-dev with applied patch #4 and without applied patch in both scenarios, it is working as expected and found no issue.
Followed below testing steps:
1. Install the Drupal 11.x version
2. Install/Enable the Olivero Theme
3. Now went to Primary menu and secondary menu on narrow screens (Mobile, Ipad and 1024(Laptop))
4. And it is working as expected
Testing Results:
In Narrow screens also the secondary menu was getting expanded and working as expected.
Attaching screenshots for reference
Hence moving to RTBC
Thanks
Comment #12
shweta__sharma CreditAttribution: shweta__sharma at OpenSense Labs commentedComment #13
shweta__sharma CreditAttribution: shweta__sharma at OpenSense Labs commentedBased on #8 and #11 testing moving to status to closed (cannot reproduce)
Thanks