diff --git a/changelog/unreleased/enhancement-left-sidebar-hover b/changelog/unreleased/enhancement-left-sidebar-hover new file mode 100644 index 00000000000..32d781ae303 --- /dev/null +++ b/changelog/unreleased/enhancement-left-sidebar-hover @@ -0,0 +1,6 @@ +Enhancement: Left sidebar hover effect + +We've added a hover effect to the left sidebar items. + +https://github.com/owncloud/web/issues/7540 +https://github.com/owncloud/web/pull/7567 diff --git a/packages/web-runtime/src/components/SidebarNav/SidebarNav.vue b/packages/web-runtime/src/components/SidebarNav/SidebarNav.vue index 24af5f0e13a..ab04bdbff3e 100644 --- a/packages/web-runtime/src/components/SidebarNav/SidebarNav.vue +++ b/packages/web-runtime/src/components/SidebarNav/SidebarNav.vue @@ -141,6 +141,22 @@ export default { .toggle-sidebar-button-expanded { justify-content: flex-end !important; } + + .oc-sidebar-nav li a { + &:hover, + &:focus { + text-decoration: none !important; + background-color: var(--oc-color-background-hover); + color: var(--oc-color-swatch-passive-default); + } + } + + .oc-sidebar-nav li a.active { + &:focus, + &:hover { + color: var(--oc-color-swatch-inverse-default); + } + } } .oc-app-navigation-expanded { min-width: 230px !important; diff --git a/packages/web-runtime/src/components/SidebarNav/SidebarNavItem.vue b/packages/web-runtime/src/components/SidebarNav/SidebarNavItem.vue index 6d0f9cca90b..dc8b512057a 100644 --- a/packages/web-runtime/src/components/SidebarNav/SidebarNavItem.vue +++ b/packages/web-runtime/src/components/SidebarNav/SidebarNavItem.vue @@ -9,7 +9,11 @@ type="router-link" appearance="raw" :variation="active ? 'inverse' : 'passive'" - :class="['oc-sidebar-nav-item-link', { active: active }]" + :class="[ + 'oc-sidebar-nav-item-link', + { active: active }, + { 'oc-background-primary-gradient': active } + ]" :to="target" :data-nav-id="index" :data-nav-name="navName" @@ -126,7 +130,6 @@ export default { .text { opacity: 1; transition: all 0s; - transition-delay: 0.1s; } .text-invisible { opacity: 0 !important;