From e117c8b45c3eb3e0e79424cae72c209334df4a69 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 4 Aug 2021 09:00:14 -0400 Subject: [PATCH 01/17] class not needed for Drawer without TopAppBar --- components/mdc/Drawer/Drawer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdc/Drawer/Drawer.svelte b/components/mdc/Drawer/Drawer.svelte index 6d30a3d5..c2f1b29f 100644 --- a/components/mdc/Drawer/Drawer.svelte +++ b/components/mdc/Drawer/Drawer.svelte @@ -123,7 +123,7 @@ main { {/if}
-
+
From 3997996655ab77569bebef308dc2d4f2593db767 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 4 Aug 2021 09:59:34 -0400 Subject: [PATCH 02/17] add optinal border-white class to drawer --- CHANGELOG.md | 4 +++- components/mdc/Drawer/_index.scss | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 815ab5c1..2c3b2c17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -## [2.5.0](https://github.com/silinternational/ui-components/releases/tag/v2.5.0) - 2021-08-03 +### Added +- optinal border-white class to drawer +## [2.5.0](https://github.com/silinternational/ui-components/releases/tag/v2.5.0) - 2021-08-03 ### Added - slot to TopAppBar in Drawer diff --git a/components/mdc/Drawer/_index.scss b/components/mdc/Drawer/_index.scss index e36fdd05..3243ab34 100644 --- a/components/mdc/Drawer/_index.scss +++ b/components/mdc/Drawer/_index.scss @@ -4,4 +4,8 @@ @include drawer.core-styles; @include drawer.dismissible-core-styles; @include drawer.modal-core-styles; -@include list.core-styles; \ No newline at end of file +@include list.core-styles; + +.border-white { + @include drawer.border-color(#fff); +} \ No newline at end of file From 46d446ac55212082d81025d0ee4a4233e9425932 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 4 Aug 2021 10:01:40 -0400 Subject: [PATCH 03/17] update CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c3b2c17..b3fb190b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - optinal border-white class to drawer +### Fixed +- TopAppBar adjust class removed when not needed by Drawer + ## [2.5.0](https://github.com/silinternational/ui-components/releases/tag/v2.5.0) - 2021-08-03 ### Added - slot to TopAppBar in Drawer From 22217bd15a80d51d9487f19d988e8202b821cdab Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 4 Aug 2021 10:12:40 -0400 Subject: [PATCH 04/17] add classForContent prop to Drawer, update README --- CHANGELOG.md | 5 ++++- README.md | 2 +- components/mdc/Drawer/Drawer.svelte | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3fb190b..5182b2eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added -- optinal border-white class to drawer +- optinal border-white class and classForContent prop to Drawer + +### Changed +- update README index ### Fixed - TopAppBar adjust class removed when not needed by Drawer diff --git a/README.md b/README.md index 3a5d3b29..62870353 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Dialog [ Dialog.Alert (open, title, defaultAction), Dialog.Simple(open, title) ] -Drawer (title, subtitle, menuItems, toggle, modal, dismissible, hasTopAppBar, isFullHeightMenu) +Drawer (title, subtitle, menuItems, toggle, modal, dismissible, hasTopAppBar, isFullHeightMenu, classForContent) Fab (icon, label, url) diff --git a/components/mdc/Drawer/Drawer.svelte b/components/mdc/Drawer/Drawer.svelte index c2f1b29f..a2033fba 100644 --- a/components/mdc/Drawer/Drawer.svelte +++ b/components/mdc/Drawer/Drawer.svelte @@ -14,6 +14,7 @@ export let modal = false export let dismissible = false export let toggle = false export let isFullHeightMenu = true +export let classForContent = '' //can be used to change background color let mdcDrawer = {} let element = {} @@ -122,7 +123,7 @@ main { {/if} -
+
From e860a8e7e5888e548f9e74a3dfd6f3604144537d Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 4 Aug 2021 10:18:56 -0400 Subject: [PATCH 05/17] added another slot to TopAppBar --- CHANGELOG.md | 2 +- components/mdc/TopAppBar/TopAppBar.svelte | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5182b2eb..9d0be6b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added - optinal border-white class and classForContent prop to Drawer - +- another slot to TopAppBar ### Changed - update README index diff --git a/components/mdc/TopAppBar/TopAppBar.svelte b/components/mdc/TopAppBar/TopAppBar.svelte index 2cb43153..014b5ff0 100644 --- a/components/mdc/TopAppBar/TopAppBar.svelte +++ b/components/mdc/TopAppBar/TopAppBar.svelte @@ -44,6 +44,8 @@ onMount(() => {