Skip to content

Conversation

@recrwplay
Copy link
Collaborator

When the nav is hidden by default at narrow page widths, you can view the nav by clicking an icon.

When the nav is opened and visible you can click links in the nav to move between pages.

However, the onClick events for the version selector do not work. I traced this to another event that was taking priority, which was that any click anywhere in the html triggered the nav to close. Anywhere except links to other pages, which always fire first.

This PR modifies the showNav function so that the nav is hidden if you click outside the nav, but not in the nav. This means that the version selector can be used.

Note that depending on the screen resolution it is not actually possible to click outside the nav, because the nav fills the display area.

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit 09ae6f9
🔍 Latest deploy log https://app.netlify.com/projects/neo4j-docs-ui/deploys/691da30344d6ba0008376d5a
😎 Deploy Preview https://deploy-preview-345--neo4j-docs-ui.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.

Co-authored-by: Stefano Ottolenghi <stefano.ottolenghi@neo4j.com>
@recrwplay recrwplay merged commit aa5bee1 into master Nov 19, 2025
5 checks passed
@recrwplay recrwplay deleted the responsive-selector branch November 19, 2025 19:59
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.

3 participants