From 71edab6b74804cc44c10dc0fa56377b133edf1ea Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 26 May 2021 02:10:34 +0100 Subject: [PATCH] Add icon to Collapsible sections --- src/assets/icons/arrow.svg | 3 +++ src/components/Sidebar.vue | 8 ++++++ src/components/sidebar/CollapsibleSection.vue | 25 ++++++++++++++++--- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 src/assets/icons/arrow.svg diff --git a/src/assets/icons/arrow.svg b/src/assets/icons/arrow.svg new file mode 100644 index 0000000..33654d0 --- /dev/null +++ b/src/assets/icons/arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index d940f83..007dfa5 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -195,11 +195,19 @@ export default defineComponent({ background-color: transparent; color: inherit; text-align: left; + display: flex; + align-items: center; &:hover, &:focus-visible, &.focus-visible, &:active { background-color: transparent; color: inherit; } + + .svg-icon { + margin-left: auto; + width: 1.5rem; + height: 1.5rem; + } } .section__content { diff --git a/src/components/sidebar/CollapsibleSection.vue b/src/components/sidebar/CollapsibleSection.vue index c80537c..fcc512f 100644 --- a/src/components/sidebar/CollapsibleSection.vue +++ b/src/components/sidebar/CollapsibleSection.vue @@ -1,9 +1,12 @@