Skip to content

Commit

Permalink
Hide NavList sub items if collapsed (#5567)
Browse files Browse the repository at this point in the history
* add display prop

* Create swift-baboons-compare.md
  • Loading branch information
langermank authored Jan 21, 2025
1 parent 43acb7f commit 8bdff77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-baboons-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Hide NavList sub items if collapsed
4 changes: 4 additions & 0 deletions packages/react/src/ActionList/ActionList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@
transform: scaleY(1);
}

& + .SubGroup {
display: none;
}

/* show active indicator on parent collapse if child is active */
&:has(+ .SubGroup [data-active='true']) {
background: var(--control-transparent-bgColor-selected);
Expand Down

0 comments on commit 8bdff77

Please sign in to comment.