Skip to content

Commit

Permalink
fix: don't apply hover and focus nav item style to active item
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Sep 1, 2022
1 parent 10df928 commit 944e478
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/enhancement-left-sidebar-hover
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ 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
https://github.com/owncloud/web/pull/7575
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default {
justify-content: flex-end !important;
}
.oc-sidebar-nav li a {
.oc-sidebar-nav li a:not(.active) {
&:hover,
&:focus {
text-decoration: none !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
type="router-link"
appearance="raw"
:variation="active ? 'inverse' : 'passive'"
:class="[
'oc-sidebar-nav-item-link',
{ active: active },
{ 'oc-background-primary-gradient': active }
]"
:class="['oc-sidebar-nav-item-link', { active: active }]"
:to="target"
:data-nav-id="index"
:data-nav-name="navName"
Expand Down

0 comments on commit 944e478

Please sign in to comment.