From 68d93a6310938f5dda378e9185cdfb0086f90de8 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 14 Feb 2022 16:27:14 +0100 Subject: fix: open toolbar menu without double click When the main nav was opened, a double click on the search button or the settings button was necessary to open a new menu. Now, it works as expected: the main nav is closed and the menu is opened in one click. --- src/components/MainNav/MainNav.module.scss | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/components/MainNav/MainNav.module.scss') diff --git a/src/components/MainNav/MainNav.module.scss b/src/components/MainNav/MainNav.module.scss index 3ced245..f3e6c10 100644 --- a/src/components/MainNav/MainNav.module.scss +++ b/src/components/MainNav/MainNav.module.scss @@ -37,12 +37,7 @@ padding: var(--spacing-2xs); &:hover { - span, - span::before, - span::after { - background: var(--color-primary-lighter); - box-shadow: fun.convert-px(2) fun.convert-px(2) 0 0 var(--color-shadow); - } + @extend %draw-borders; } @include mix.media("screen") { @@ -63,12 +58,7 @@ &:hover { ~ .label { - span, - span::before, - span::after { - background: var(--color-primary-lighter); - box-shadow: fun.convert-px(2) fun.convert-px(2) 0 0 var(--color-shadow); - } + @extend %draw-borders; } } -- cgit v1.2.3