Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masterbar: display a Hamburger menu on mobile #12299

Merged
merged 4 commits into from
May 8, 2019

Commits on May 8, 2019

  1. Masterbar: display a Hamburger menu on mobile

    Follow-up from #11766
    
    This Hamburger menu is necessary so folks can access the wp-admin navigation on mobile.
    jeherve committed May 8, 2019
    Configuration menu
    Copy the full SHA
    274a803 View commit details
    Browse the repository at this point in the history
  2. Masterbar: only display the Hamburger menu on mobile

    We use wp_is_mobile() here because our own jetpack_is_mobile() would return true even on tabletss, where the wp-admin navigation is toggled:
    https://github.com/WordPress/WordPress/blob/f5cab6780f67195bf717eb33f2a3661ef5f95242/wp-admin/js/common.js#L512
    jeherve committed May 8, 2019
    Configuration menu
    Copy the full SHA
    6a6a42c View commit details
    Browse the repository at this point in the history
  3. Always add the hamburger menu toggle.

    That hamburger is hidden via CSS on non-mobile views.
    Relying only on CSS allows us to cover all edge cases, like folks on desktop but with a very small viewport that would trigger the wp-admin navigation menu to be toggled.
    
    Related discussion: p1557322468103000-slack-jetpack-plugin
    jeherve committed May 8, 2019
    Configuration menu
    Copy the full SHA
    150cf78 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    53e1b85 View commit details
    Browse the repository at this point in the history