From 705ffacd337c0cbac6f45f1e5932e8fc5912e471 Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Fri, 21 Feb 2020 14:00:20 +0000 Subject: [PATCH] Adding List divider --- .../src/List/List.svelte | 63 ++++++++++--------- .../src/Test/props.js | 2 +- 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/packages/materialdesign-components/src/List/List.svelte b/packages/materialdesign-components/src/List/List.svelte index ddfb208119..61e19b030c 100644 --- a/packages/materialdesign-components/src/List/List.svelte +++ b/packages/materialdesign-components/src/List/List.svelte @@ -1,59 +1,59 @@
@@ -63,5 +63,8 @@ {useDoubleLine} {inputElement} onClick={() => handleSelectedItem(item)} /> + {#if item.divider} +
diff --git a/packages/materialdesign-components/src/Test/props.js b/packages/materialdesign-components/src/Test/props.js index d199d7ff67..852a845ad6 100644 --- a/packages/materialdesign-components/src/Test/props.js +++ b/packages/materialdesign-components/src/Test/props.js @@ -112,11 +112,11 @@ export const props = { { text: { primary: "Curry", secondary: "Chicken or Beef" }, value: 0, + divider: true, }, { text: { primary: "Pastie", secondary: "Bap with Mayo" }, value: 1, - selected: true, }, { text: { primary: "Fish", secondary: "Salmon or Cod" }, value: 2 }, ],