Make WordPress Core

Changeset 60302


Ignore:
Timestamp:
06/12/2025 12:40:38 PM (5 months ago)
Author:
audrasjb
Message:

Twenty Nineteen: Make mobile nav menu scrollable.

This changeset fixes an issue where Twenty Nineteen's primary nav menu panel wasn’t scrollable when the primary menu contains a lot of items, preventing to scroll down to see all menu items.

Props kjellr, karmatosed, lakshyajeet, coralietixeront, Spaceshipone, maxpertici, beryldlg.
Fixes #45902.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss

    r58582 r60302  
    434434        }
    435435
     436        &:not(:has(.sub-menu.expanded-true)) {
     437            overflow-y: scroll;
     438        }
     439
    436440        &.expanded-true {
    437441
    438             display: table;
     442            display: block;
    439443            margin-top: 0;
    440444            opacity: 1;
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r60159 r60302  
    32723272}
    32733273
     3274.main-navigation .main-menu .menu-item-has-children.off-canvas .sub-menu:not(:has(.sub-menu.expanded-true)) {
     3275  overflow-y: scroll;
     3276}
     3277
    32743278.main-navigation .main-menu .menu-item-has-children.off-canvas .sub-menu.expanded-true {
    3275   display: table;
     3279  display: block;
    32763280  margin-top: 0;
    32773281  opacity: 1;
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r60159 r60302  
    32723272}
    32733273
     3274.main-navigation .main-menu .menu-item-has-children.off-canvas .sub-menu:not(:has(.sub-menu.expanded-true)) {
     3275  overflow-y: scroll;
     3276}
     3277
    32743278.main-navigation .main-menu .menu-item-has-children.off-canvas .sub-menu.expanded-true {
    3275   display: table;
     3279  display: block;
    32763280  margin-top: 0;
    32773281  opacity: 1;
Note: See TracChangeset for help on using the changeset viewer.