diff --git a/.changeset/metal-dodos-hang.md b/.changeset/metal-dodos-hang.md new file mode 100644 index 0000000000..b5034d96b2 --- /dev/null +++ b/.changeset/metal-dodos-hang.md @@ -0,0 +1,5 @@ +--- +"geohub": patch +--- + +fix: set sidebar border to none diff --git a/.changeset/tricky-hotels-tap.md b/.changeset/tricky-hotels-tap.md new file mode 100644 index 0000000000..446f51475b --- /dev/null +++ b/.changeset/tricky-hotels-tap.md @@ -0,0 +1,5 @@ +--- +"@undp-data/svelte-sidebar": minor +--- + +feat: add new option 'border' to enable customising border style (color, width, etc) for sidebar diff --git a/packages/svelte-sidebar/src/lib/Sidebar.svelte b/packages/svelte-sidebar/src/lib/Sidebar.svelte index 02def4956e..0d192071c5 100644 --- a/packages/svelte-sidebar/src/lib/Sidebar.svelte +++ b/packages/svelte-sidebar/src/lib/Sidebar.svelte @@ -32,6 +32,11 @@ */ export let height: number = undefined; + /** + * Default sidebar border style + */ + export let border = '1px solid #1c1c1c'; + let innerWidth: number; let innerHeight: number; $: isMobile = innerWidth < 768 ? true : false; @@ -52,7 +57,7 @@ {#if show}