Skip to content

fix(nav): mobile menu not opening due to CSS specificity - #2

Merged
russofg merged 1 commit into
mainfrom
redesign/claude-design-landing
Jul 10, 2026
Merged

fix(nav): mobile menu not opening due to CSS specificity#2
russofg merged 1 commit into
mainfrom
redesign/claude-design-landing

Conversation

@russofg

@russofg russofg commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 10, 2026 22:29
@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for rentalled ready!

Name Link
🔨 Latest commit db3a662
🔍 Latest deploy log https://app.netlify.com/projects/rentalled/deploys/6a51723877a116000809c206
😎 Deploy Preview https://deploy-preview-2--rentalled.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@russofg
russofg merged commit e22ddad into main Jul 10, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the mobile navigation menu not opening on small screens by addressing a CSS specificity conflict between the “menu closed” and “menu open” rules.

Changes:

  • Increased selector specificity for the open-state rule so it correctly overrides the closed-state styling under .site-header[data-nav-ready="true"].
  • Scoped the open-state selector to the actual nav root element (.site-header) that receives data-menu-open from src/scripts/nav.ts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants