From 63c64109b7bc9a6fb2f13766641bfb4d6f8c1333 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Wed, 20 Apr 2022 15:52:21 +0300 Subject: [PATCH] refactor: apply hover state on breadcrumb link only (#241) --- packages/core/styles/components/breadcrumb.pcss | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/core/styles/components/breadcrumb.pcss b/packages/core/styles/components/breadcrumb.pcss index b515d9e3..f5cdcc65 100644 --- a/packages/core/styles/components/breadcrumb.pcss +++ b/packages/core/styles/components/breadcrumb.pcss @@ -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 { @@ -75,6 +69,7 @@ @mixin transition background color; &:hover { + background: var(--ifm-breadcrumb-item-background-active); text-decoration: none; } }