Skip to content
This repository was archived by the owner on Oct 14, 2026. It is now read-only.

Make docs nav parent items expand and collapse only - #1380

Merged
tmashara merged 3 commits into
masterfrom
gro-1085-separate-docs-navigation-links-from-expand-and-collapse
Oct 13, 2026
Merged

tmashara merged 3 commits into
masterfrom
gro-1085-separate-docs-navigation-links-from-expand-and-collapse

Conversation

@tmashara

@tmashara tmashara commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

fixes GRO-1085

Reverts the parent-link behavior from #1357: clicking a nav item with children only expands/collapses it again
parent rows no longer render an href, and the whole row (title and chevron) acts as one toggle.

website PR: https://github.com/metabase/metabase.github.io/pull/6665

verification

  1. go to preview https://docs-pr-1380-metaboat.vercel.app/docs/latest/
  2. parent nav items expand/collapse when clicked without navigation
Screen.Recording.2026-10-13.at.13.09.52.mov

@linear

linear Bot commented Oct 12, 2026

Copy link
Copy Markdown

GRO-1085

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The deployments were removed when this pull request closed. Reopening it deploys again at the same address.

@tmashara
tmashara force-pushed the gro-1085-separate-docs-navigation-links-from-expand-and-collapse branch from 7569569 to be8283c Compare October 13, 2026 09:26
@tmashara tmashara changed the title Separate docs nav links from expand and collapse controls Make docs nav parent items expand and collapse only Oct 13, 2026
@tmashara
tmashara force-pushed the gro-1085-separate-docs-navigation-links-from-expand-and-collapse branch from be8283c to a83852c Compare October 13, 2026 11:32
@tmashara
tmashara force-pushed the gro-1085-separate-docs-navigation-links-from-expand-and-collapse branch from a83852c to 69b10a3 Compare October 13, 2026 11:38
@tmashara
tmashara requested a review from a team October 13, 2026 12:47
@tmashara
tmashara marked this pull request as ready for review October 13, 2026 12:47

@losrebellos losrebellos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved with a nit 😅

Comment thread src/components/chrome/NavItem.astro Outdated
<button
type="button"
class={selected}
aria-current={current}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might mess the screen readers into showing it as the current page, but it being as toggle instead...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

right, deleted aria-current

tmashara and others added 2 commits October 13, 2026 15:57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmashara
tmashara merged commit 07c5401 into master Oct 13, 2026
3 checks passed
@tmashara
tmashara deleted the gro-1085-separate-docs-navigation-links-from-expand-and-collapse branch October 13, 2026 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants