Skip to content

Commit

Permalink
fix(list): Improve border styling (#7160)
Browse files Browse the repository at this point in the history
**Related Issue:**
#6373

## Summary
Fixes the "border gap" caused by the table rendered within List.
  • Loading branch information
macandcheese authored Jun 9, 2023
1 parent 7860faa commit a810943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ td {

tr:focus,
td:focus {
@apply focus-normal z-sticky;
@apply focus-inset z-sticky;
}

.content,
Expand Down
5 changes: 4 additions & 1 deletion packages/calcite-components/src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.table {
@apply w-full;
@apply w-full border-collapse;
}

::slotted(calcite-list-item) {
Expand All @@ -35,6 +35,9 @@

.sticky-pos {
@apply sticky top-0 z-sticky;
& th {
@apply p-0;
}
}

calcite-filter {
Expand Down

0 comments on commit a810943

Please sign in to comment.