Skip to content

Navigation Overlays: Unreadable display with collapsed submenu #76276

Closed

Description

@hagege

Description

Creating an overlay navigation with a submenu in WordPress 7.0 Beta 3. After opening the submenu, the submenu items on the left are cut off and not displayed correctly.

issue-navigation-overlay.mp4

Step-by-step reproduction instructions

  1. Apperance -> Editor
  2. Edit the header with the navigation
  3. Choose "Main menu" (navigation block)
  4. On the right: Settings -> Overlay template -> Overlay -> Edit with collapsed submenu (Collapses the navigation options in a menu icon opening an overlay.)
  5. In Frontend: Show the mobile menu
  6. Open Submenu (in this example "Blog")
  7. The submenu items are cut off.

Image
Image

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 7.0 Beta 3

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

Activity

  1. added
    [Type] Bug
    on Mar 7, 2026
  2. annezazu commented on Mar 9, 2026

    @annezazu
    Contributor

    @getdave for your awareness

  3. getdave commented on Mar 9, 2026

    @getdave
    Contributor

    @scruffian Am I right that you were working on a PR to make it so submenu dropdowns are always positioned within the canvas?

  4. getdave commented on Mar 9, 2026

    @getdave
    Contributor

    Potential fixes / solutions

    • force submenus to be full width below a certain breakpoint
    • implement "collision detection" via the Interactivity API and adjust className accordingly to ensure positioning does not go offscreen
  5. scruffian commented on Mar 9, 2026

    @scruffian
    Contributor

    @getdave this was what I was thinking: #75610

  6. getdave commented on Mar 10, 2026

    @getdave
    Contributor
    Image

    I suspect the right alignment on the parent Navigation block might be the cause of this issue.

  7. added a commit that references this issue on Mar 10, 2026
    05ad501
  8. added
    [Status] In Progress
    on Mar 10, 2026
  9. moved this from 📥 Todo to 🔎 Needs Review in WordPress 7.0 Editor Taskson Mar 10, 2026
  10. hagege commented on Mar 10, 2026

    @hagege
    Author

    @getdave
    Seemed to be fixed. Thanks

    Image

  11. annezazu commented on Mar 10, 2026

    @annezazu
    Contributor

    Thanks for reporting @hagege and for working on this @getdave !

  12. moved this from 🔎 Needs Review to ✅ Done in WordPress 7.0 Editor Taskson Mar 11, 2026
  13. added a commit that references this issue on Mar 11, 2026
    e4d7e2c
  14. added a commit that references this issue on Mar 11, 2026
    936aaf4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Navigation Overlays[Status] In Progress[Type] Bug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions