Skip to content

Commit

Permalink
fix(list): don't show inset lines for full line list
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Oct 10, 2018
1 parent 798b4f6 commit 6eae95a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion core/src/components/list/list.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
}



// Remove the border from items in lists
// if they are explicitly styled by the item
// to be different than the list
Expand Down
18 changes: 14 additions & 4 deletions core/src/components/list/list.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
@include position-horizontal(0, null);
}

.list-md:not(.list-inset):not(.list-md-lines-none) .item:last-child {
--inner-border-width: 0;
--border-width: #{0 0 $list-md-item-border-bottom-width 0};
}


// Material Design Inset List
// --------------------------------------------------

Expand Down Expand Up @@ -56,6 +62,10 @@
--border-width: #{0 0 $list-md-item-border-bottom-width 0};
}

.list-md-lines-full .item {
--inner-border-width: 0;
}


// Material Design Inset Lines List
// --------------------------------------------------
Expand All @@ -69,10 +79,10 @@
// Remove the border from items in lists
// if they are explicitly styled by the item
// to be different than the list
.list-md .item-lines-full {
--inner-border-width: 0;
}

.list-md .item-lines-inset {
--border-width: 0;
}

.list-md .item-lines-full {
--inner-border-width: 0;
}

0 comments on commit 6eae95a

Please sign in to comment.