How to keep the menu open when it goes to mobile version ?

Created on 30 April 2023, almost 2 years ago
Updated 11 August 2023, over 1 year ago

I am using the olivero theme. I want when the navigation bar switches to mobile mode, the main menu is unfolded by default, like in the screenshot.

How can I do this properly ?

Feature request
Status

Needs work

Version

11.0 🔥

Component
Olivero 

Last updated 3 days ago

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @zenimagine
  • Status changed to Needs review almost 2 years ago
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update almost 2 years ago
    Patch Failed to Apply
  • 🇮🇳India Harish1688 India

    Hi zenimagine,

    I created a patch with the name "keep-the-menu-open-3357324-2.patch" to address the support request. Once applied on an actual device, it will run automatically. However, if you're testing it on a Windows device, ensure that the window size is below 786 pixels and refresh the URL to see the changes take effect.

    Steps for Testing:

    1. Set up Olivero as the default theme, install Drupal core version 9.5.
    2. Download the patch, navigate to the Drupal repository, and apply the patch.
    3. Make sure to refresh the URL after reducing the window size to below 786 pixels.

    Outcome: The mobile menu panel will open every time you navigate.
    Needs Review.

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update almost 2 years ago
    Custom Commands Failed
  • 🇮🇳India Harish1688 India

    rebuild the patch : keep-the-menu-open-3357324-3.patch

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update almost 2 years ago
    29,378 pass
  • 🇮🇳India Harish1688 India

    resolved the patch issue create new one :
    keep-the-menu-open-on-mobile-3357324-4.patch

    Needs review

  • Status changed to Needs work almost 2 years ago
  • 🇺🇸United States smustgrave

    This was originally a support request but if it's going to be attempted then probably a feature request.

    Which will need test coverage and an updated issue summary.

  • 🇫🇷France zenimagine

    I tested the latest patch and it has no effect on the menu.

  • First commit to issue fork.
  • 🇲🇽Mexico preciado04 Tepic

    Is this an manageable option, on patch #4?

Production build 0.71.5 2024