diff --git a/.changeset/rich-boxes-crash.md b/.changeset/rich-boxes-crash.md new file mode 100644 index 0000000000..3929187f1e --- /dev/null +++ b/.changeset/rich-boxes-crash.md @@ -0,0 +1,5 @@ +--- +"@primer/css": patch +--- + +ActionList hide the first divider if there's hidden items in front of it. diff --git a/src/actionlist/action-list-item.scss b/src/actionlist/action-list-item.scss index 9028f535cd..1b07810316 100644 --- a/src/actionlist/action-list-item.scss +++ b/src/actionlist/action-list-item.scss @@ -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'] {