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/Buttons/Buttons.module.scss | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/components/Buttons/Buttons.module.scss') diff --git a/src/components/Buttons/Buttons.module.scss b/src/components/Buttons/Buttons.module.scss index 2a6daca..0ea9289 100644 --- a/src/components/Buttons/Buttons.module.scss +++ b/src/components/Buttons/Buttons.module.scss @@ -177,7 +177,7 @@ } .toolbar { - --draw-border-thickness: #{fun.convert-px(5)}; + --draw-border-thickness: #{fun.convert-px(4)}; --icon-size: 100%; display: flex; @@ -198,15 +198,11 @@ @extend %draw-borders; } - /* @include mix.media("screen") { + @include mix.media("screen") { @include mix.dimensions("md") { - &:hover, - &:focus { - transform: rotate(360deg); - transition: all 0.8s ease-in-out 0s; - } + border-radius: 8%; } - } */ + } } .icon { -- cgit v1.2.3