Skip to content

Commit

Permalink
fix(list-item): Fix slotted list border styling. (#8712)
Browse files Browse the repository at this point in the history
**Related Issue:** #8684

## Summary

- Updates slotted styling for list elements.
- Adds screenshot test
  • Loading branch information
driskull authored Feb 9, 2024
1 parent cd0b532 commit 855f98d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ td:focus {
}
}

::slotted(calcite-list-item) {
::slotted(calcite-list-item),
::slotted(calcite-list) {
@apply border-solid border-0 border-t border-color-3;
}

Expand Down
20 changes: 20 additions & 0 deletions packages/calcite-components/src/components/list/list.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -934,3 +934,23 @@ export const filteredListItemsNoResults_TestOnly = (): string =>
<div slot="message">Try a different fruit?</div>
</calcite-notice>
</calcite-list>`;

export const nestingLists_TestOnly = (): string => html`<h4>Nesting List Items</h4>
<calcite-list>
<calcite-list-item label="List Item" open>
<calcite-list-item label="List Item"></calcite-list-item>
<calcite-list-item label="List Item"></calcite-list-item>
<calcite-list-item label="List Item"></calcite-list-item>
</calcite-list-item>
</calcite-list>
</br>
<h4>Nesting Lists</h4>
<calcite-list>
<calcite-list-item label="List Item" open>
<calcite-list>
<calcite-list-item label="List Item"></calcite-list-item>
<calcite-list-item label="List Item"></calcite-list-item>
<calcite-list-item label="List Item"></calcite-list-item>
</calcite-list>
</calcite-list-item>
</calcite-list>`;

0 comments on commit 855f98d

Please sign in to comment.