Make WordPress Core

Opened 7 years ago

Closed 9 months ago

#45902 closed defect (bug) (fixed)

Twenty Nineteen: Mobile menu isn't scrollable

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

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

Change History (18)

#1 @laurelfulford
7 years ago

  • Keywords needs-patch has-screenshots added
  • Milestone changed from Awaiting Review to Future Release

#2 @ianbelanger
6 years ago

  • Focuses css added
  • Version changed from 5.0.2 to 5.0

#3 @karmatosed
22 months 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.


9 months ago
#4

  • Keywords has-patch added; needs-patch removed

@lakshyajeet
9 months ago

Before fix

@lakshyajeet
9 months ago

After fix

#5 @coralietixeront
9 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
9 months ago

After applying the patch

#6 @audrasjb
9 months ago

  • Milestone changed from Future Release to 6.9

Thanks for testing the patch @coralietixeront.

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

#7 @audrasjb
9 months ago

  • Owner set to audrasjb
  • Status changed from new to accepted

#8 @Spaceshipone
9 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
9 months ago

test on chrome with patch

@maxpertici
9 months ago

Test Mobile Menu

#9 @maxpertici
9 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 9 months ago by maxpertici (previous) (diff)

#10 @beryldlg
9 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

Last edited 9 months ago by beryldlg (previous) (diff)

#11 @audrasjb
9 months ago

  • Keywords commit added

Marking for commit consideration.

#12 @audrasjb
9 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

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.