Make WordPress Core

Opened 8 years ago

Closed 14 months ago

#45902 closed defect (bug) (fixed)

Twenty Nineteen: Mobile menu isn't scrollable

Reported by: kjellr Owned by: audrasjb
Priority: normal Milestone: 6.9
Component: Bundled Theme Version: 5.0
Severity: normal Keywords: has-screenshots has-patch commit
Cc: Focuses: css

Description

As originally reported by @anevins in the Twenty Nineteen GitHub repo:

https://github.com/WordPress/twentynineteen/issues/713

Twenty Nineteen's mobile menu uses a fixed position, and does not allow for vertical scrolling when menu items extend beyond the screen height. In this screenshot for instance, it's impossible to scroll down and see the additional menu items:

https://cldup.com/-nMFdadUIZ-3000x3000.png

Normally, this would be solved by applying display: block (instead of table), and overflow-x: scroll to the submenu. However, in this case, that results in long menus visible under their children submenus:

https://cldup.com/x3H73ceFfZ.gif

Attachments (6)

before.gif (1.8 MB ) - added by lakshyajeet 14 months ago.
Before fix
after.gif (2.6 MB ) - added by lakshyajeet 14 months ago.
After fix
Screenshot#45902.mov (782.4 KB ) - added by coralietixeront 14 months ago.
After applying the patch
menu-wp-test-correctif.gif (644.1 KB ) - added by Spaceshipone 14 months ago.
test on chrome with patch
test-mobile-menu-45902.mp4 (808.7 KB ) - added by maxpertici 14 months ago.
Test Mobile Menu
scroll-menu-brave-45902.mp4 (4.4 MB ) - added by beryldlg 14 months ago.

Change History (18)

#1 @laurelfulford
8 years ago

  • Keywords needs-patch has-screenshots added
  • Milestone Awaiting ReviewFuture Release

#2 @ianbelanger
6 years ago

  • Focuses css added
  • Version 5.0.25.0

#3 @karmatosed
2 years ago

I am still seeing this today so it is an issue I would recommend is resolved as if you have a long menu it does appear broken.

This ticket was mentioned in PR #8962 on WordPress/wordpress-develop by @lakshyajeet.


14 months ago
#4

  • Keywords has-patch added; needs-patch removed

@lakshyajeet
14 months ago

Before fix

@lakshyajeet
14 months ago

After fix

#5 @coralietixeront
14 months ago

Test Report

This report validates that the indicated patch addresses the issue.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8962

Environment

  • OS: macOS
  • Web Server: Playground
  • PHP: 8.0
  • WordPress: Trunk
  • Browser: Chrome
  • Theme: Twenty NineTeen
  • Active Plugins: None

Actual Results

  • ✅ Issue resolved with patch. Once the patch has been applied, I can scroll through the menu 👍

Supplemental Artifacts

See Screenshot below

@coralietixeront
14 months ago

After applying the patch

#6 @audrasjb
14 months ago

  • Milestone Future Release6.9

Thanks for testing the patch @coralietixeront.

Note: We're currently using this ticket for our contribution day at Whodunit Agency.

#7 @audrasjb
14 months ago

  • Owner set to audrasjb
  • Status newaccepted

#8 @Spaceshipone
14 months ago

Test Report

This report validates that the indicated patch addresses the issue.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8962

Environment

  • OS: Windows 11
  • Web Server: Playground
  • PHP: 8.0
  • WordPress: trunk
  • Browser: Chrome 137.0.7151.103
  • Theme: Twenty NineTeen
  • Active Plugins:

Actual Results

  • ✅ Issue resolved with patch. I've tested the patch and can scroll through the menu in the mobile version.

Additional Notes

  • I didn't have the problem with Firefox 139.0.1. I could still scroll without the patch.

Supplemental Artifacts

See screenshot below

@Spaceshipone
14 months ago

test on chrome with patch

@maxpertici
14 months ago

Test Mobile Menu

#9 @maxpertici
14 months ago

Test Report

This report validates that the indicated patch addresses the issue.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8962

Environment

  • OS: macOS 15.5
  • Web Server: Playground
  • PHP: 8.0
  • WordPress: trunk
  • Browser: Firefow 139
  • Theme: Twenty NineTeen
  • Active Plugins: None

Actual Results

  • ✅ Issue resolved with patch.

Additional Notes

Supplemental Artifacts

See screencast test-mobile-menu-45902.mp4

Last edited 14 months ago by maxpertici (previous) (diff)

#10 @beryldlg
14 months ago

Test Report

This report validates that the indicated patch addresses the issue.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8962

Environment

OS: Mac 11.7
Web Server: Playground
PHP: 8.0
WordPress: trunk

  • Browser: Brave
  • Theme: Twenty NineTeen

Actual Results

✅ Issue resolved with patch. I've tested the patch and can scroll through the menu in the mobile version.

Additional Notes

Once the patch applied, I can scroll throught the menu

Supplemental Artifacts

See Screenshot below
https://core.trac.wordpress.org/attachment/ticket/45902/scroll-menu-brave-45902.mp4

Version 1, edited 14 months ago by beryldlg (previous) (next) (diff)

#11 @audrasjb
14 months ago

  • Keywords commit added

Marking for commit consideration.

#12 @audrasjb
14 months ago

  • Resolutionfixed
  • Status acceptedclosed

In 60302:

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.

Note: See TracTickets for help on using tickets.