Skip to content

Commit 8a4c087

Browse files
authored
ActionList hide the first divider if there's hidden items in front of it. (#2229)
* Hiding divider if the item in front of it is hidden * Create rich-boxes-crash.md
1 parent 56ea4ab commit 8a4c087

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/rich-boxes-crash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
ActionList hide the first divider if there's hidden items in front of it.

src/actionlist/action-list-item.scss

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113
}
114114
}
115115

116+
// Make sure that the first visible item isn't a divider
117+
&[hidden] + .ActionList-sectionDivider {
118+
display: none;
119+
}
120+
116121
// Autocomplete [aria-selected] items
117122

118123
&[aria-selected='true'] {

0 commit comments

Comments
 (0)