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 b3c38af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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 b3c38af

Please sign in to comment.