Skip to content

Commit

Permalink
fix(list-item): adds border between grouped and ungrouped list-items (#…
Browse files Browse the repository at this point in the history
…8134)

**Related Issue:** #7546

Adds border to the `calcite-list-item` excluding the first
`calcite-list-item` in the `calcite-list-item-group` or the
`calcite-list`.
  • Loading branch information
anveshmekala authored and benelan committed Dec 2, 2023
1 parent 7c96e9f commit ae9b083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/calcite-components/src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
margin-block-start: 1px;
}

::slotted(calcite-list-item:first-of-type) {
@apply shadow-none;
}

// removes shadow for the first item in filteredItems of the list.
::slotted(calcite-list-item[data-filter]) {
@apply shadow-none;
Expand Down

0 comments on commit ae9b083

Please sign in to comment.