diff --git a/src/lib/components/sidebar/SidebarItem.svelte b/src/lib/components/sidebar/SidebarItem.svelte index e6db79406..a827d775b 100644 --- a/src/lib/components/sidebar/SidebarItem.svelte +++ b/src/lib/components/sidebar/SidebarItem.svelte @@ -2,11 +2,25 @@ export let disabled = false; export let small = false; export let hover = false; + // handling link behavior export let href: string = undefined; + export let target: string = undefined; + export let rel: string = undefined; + export let download: boolean | string = undefined; {#if href} - + {:else} diff --git a/src/lib/components/sidebar/stories/SidebarItem.stories.svelte b/src/lib/components/sidebar/stories/SidebarItem.stories.svelte index 80bfe369b..c34ba5c2c 100644 --- a/src/lib/components/sidebar/stories/SidebarItem.stories.svelte +++ b/src/lib/components/sidebar/stories/SidebarItem.stories.svelte @@ -7,6 +7,7 @@ export const meta = { title: "Components / Sidebar / Item", component: SidebarItem, + tags: ["autodocs"], parameters: { layout: "centered" }, }; diff --git a/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte b/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte index 7adbc68d2..e80d00aed 100644 --- a/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte +++ b/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte @@ -44,14 +44,14 @@ - + - Revision History + Revision History - + - Download PDF + Download File @@ -61,19 +61,19 @@ Share … - + - Add a note … + Add a note … - + - Redact … + Redact … - + - Modify Pages … + Modify Pages …