Skip to content

Commit

Permalink
refactor: apply hover state on breadcrumb link only (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Apr 20, 2022
1 parent 42e716b commit 63c6410
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/core/styles/components/breadcrumb.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,11 @@
}

&--active {
& .breadcrumbs__link {
& ^^&__link {
background: var(--ifm-breadcrumb-item-background-active);
color: var(--ifm-breadcrumb-color-active);
}
}

&:not(.breadcrumbs__item--active):hover {
& .breadcrumbs__link {
background: var(--ifm-breadcrumb-item-background-active);
}
}
}

&__link {
Expand All @@ -75,6 +69,7 @@
@mixin transition background color;

&:hover {
background: var(--ifm-breadcrumb-item-background-active);
text-decoration: none;
}
}
Expand Down

0 comments on commit 63c6410

Please sign in to comment.