Skip to content

Commit 8bdff77

Browse files
authored
Hide NavList sub items if collapsed (#5567)
* add display prop * Create swift-baboons-compare.md
1 parent 43acb7f commit 8bdff77

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Hide NavList sub items if collapsed

packages/react/src/ActionList/ActionList.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@
466466
transform: scaleY(1);
467467
}
468468

469+
& + .SubGroup {
470+
display: none;
471+
}
472+
469473
/* show active indicator on parent collapse if child is active */
470474
&:has(+ .SubGroup [data-active='true']) {
471475
background: var(--control-transparent-bgColor-selected);

0 commit comments

Comments
 (0)