tributemedia / tribute

Bootstrap based theme used as the base theme for Tribute Media's Drupal 9 websites.
GNU General Public License v3.0
1 stars 0 forks source link

Javascript for expanding menu items is targeting wrong ID. #38

Closed tributemedia closed 10 months ago

tributemedia commented 1 year ago

In global.js the targeted ID for expanding child menu elements is the region. This prevents us from placing the main menu block in other regions and still have functioning expandable child elements.

Fix the target selector to target the menu block itself, rather than the main menu region. This allows us to place the menu block in any region and still utilize the expandable child elements.

On line 12 of global.js, change '#main-menu-container .menu .menu-item--expanded >.icon' to 'nav.menu--main .nav .menu-item--expanded >.icon'

tributemedia commented 10 months ago

Completed recommended change