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

Poor default presentation of menu items with longer names in mobile overlay #66741

Closed
3 of 6 tasks
hagege opened this issue Nov 5, 2024 · 2 comments
Closed
3 of 6 tasks
Labels
[Block] Navigation Affects the Navigation Block [Block] Submenu Affects the Submenu Block - for submenus in navigation [Feature] Navigation Menus Any issue relating to Navigation Menus [Type] Bug An existing feature does not function as intended

Comments

@hagege
Copy link

hagege commented Nov 5, 2024

Description

Navigation Block: On mobile devices (mobile menu), longer menu items are apparently displayed left-aligned instead right-aligned from a certain width - regardless of which block theme I use, i.e. also with Twenty Twenty-Five.
I was able to simulate the issue in the developer console via Playground. To be on the safe side, I also created a “real” test page and was able to reproduce the issue there as well on mobile device.

Image

Image

Step-by-step reproduction instructions

  1. Create a menu with the navigation block in TT4
  2. Create a menu item for example "Creating Webdesign with WordPress 6.7"
  3. Save menu
  4. Show Website on mobile device

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@hagege hagege added the [Type] Bug An existing feature does not function as intended label Nov 5, 2024
@bph bph added [Block] Navigation Affects the Navigation Block [Feature] Navigation Menus Any issue relating to Navigation Menus labels Nov 5, 2024
@sarthaknagoshe2002
Copy link
Contributor

Hey @hagege can you please provide more details to reproduce this bug.

@getdave getdave changed the title Navigation block with longer items on mobile devices Poor default presentation of menu items with longer names in mobile overlay Nov 21, 2024
@getdave getdave added the [Block] Submenu Affects the Submenu Block - for submenus in navigation label Nov 21, 2024
@getdave
Copy link
Contributor

getdave commented Dec 2, 2024

I think what we're seeing here is that the menu items are right aligned. Therefore to denote a hierarchy the sub levels are indented. However, because the alignment is to the right then the indentation happens from the right. This is expected behaviour.

However, I acknowledge the presentation of submenus in the overlay on the Nav block needs improvement. Therefore I am closing this in favour of #44346

@getdave getdave closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Block] Submenu Affects the Submenu Block - for submenus in navigation [Feature] Navigation Menus Any issue relating to Navigation Menus [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants