Skip to content

Header menu should expand instead of overlaying#3796

Merged
Dino-ONS merged 6 commits intomainfrom
feature/811/header-menu-search-overlay
Mar 19, 2026
Merged

Header menu should expand instead of overlaying#3796
Dino-ONS merged 6 commits intomainfrom
feature/811/header-menu-search-overlay

Conversation

@Dino-ONS
Copy link
Copy Markdown
Contributor

What is the context of this PR?

When the header menu or search was opened, it overlaid and obscured content below instead of pushing it down. Header Menu and Search overlays page content instead of pushing it down

The ons-header-nav-menu and ons-header-nav-search elements were nested inside the ons-header__top flex row, and used position: absolute taking them out of document flow and causing the overlay behaviour.
To fix layout issues, I moved ons-header-nav-menu and ons-header-nav-search out of the ons-header__top flex container. By making them direct children of the header and placing them after ons-header__top, they now sit in the normal document flow.

How to review this PR

Within the design system, click on Components, Hero, then Example-hero-dark-with-external-breadcrumbs. After opening the page, click the Menu button and it should appear without overlapping the banner.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@Dino-ONS Dino-ONS self-assigned this Mar 12, 2026
@Dino-ONS Dino-ONS requested a review from a team as a code owner March 12, 2026 16:21
@Dino-ONS Dino-ONS added the Accessibility Issues discovered through accessibility testing label Mar 12, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Mar 18, 2026 5:38pm

@sveltifier sveltifier changed the title Feature/811/header menu search overlay Header menu should expand instead of overlaying Mar 18, 2026
@Dino-ONS Dino-ONS merged commit b3d5874 into main Mar 19, 2026
12 checks passed
@Dino-ONS Dino-ONS deleted the feature/811/header-menu-search-overlay branch March 19, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accessibility Issues discovered through accessibility testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants