Skip to content

Commit

Permalink
ActionList hide the first divider if there's hidden items in front of…
Browse files Browse the repository at this point in the history
… it. (#2229)

* Hiding divider if the item in front of it is hidden

* Create rich-boxes-crash.md
  • Loading branch information
jonrohan authored Aug 30, 2022
1 parent 56ea4ab commit 8a4c087
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-boxes-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

ActionList hide the first divider if there's hidden items in front of it.
5 changes: 5 additions & 0 deletions src/actionlist/action-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
}
}

// Make sure that the first visible item isn't a divider
&[hidden] + .ActionList-sectionDivider {
display: none;
}

// Autocomplete [aria-selected] items

&[aria-selected='true'] {
Expand Down

0 comments on commit 8a4c087

Please sign in to comment.