From 6eae95a224f6b9c1e91240270c2bb6cb9e7dbb35 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 10 Oct 2018 11:34:05 -0500 Subject: [PATCH] fix(list): don't show inset lines for full line list --- core/src/components/list/list.ios.scss | 1 - core/src/components/list/list.md.scss | 18 ++++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/core/src/components/list/list.ios.scss b/core/src/components/list/list.ios.scss index 66cd74818d..6f2fb8582d 100644 --- a/core/src/components/list/list.ios.scss +++ b/core/src/components/list/list.ios.scss @@ -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 diff --git a/core/src/components/list/list.md.scss b/core/src/components/list/list.md.scss index ebcd5811e2..d2fc727fbd 100644 --- a/core/src/components/list/list.md.scss +++ b/core/src/components/list/list.md.scss @@ -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 // -------------------------------------------------- @@ -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 // -------------------------------------------------- @@ -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; +} \ No newline at end of file