From 3ad0243db14f918e471b317685ca8590ed467bc4 Mon Sep 17 00:00:00 2001 From: Pouya Saadeghi Date: Sun, 27 Jun 2021 19:49:10 +0430 Subject: [PATCH] fix: prevent dropdown to open on click when it should open with hover --- src/components/unstyled/dropdown.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/unstyled/dropdown.css b/src/components/unstyled/dropdown.css index b6c1ee6fb1f..10292926293 100644 --- a/src/components/unstyled/dropdown.css +++ b/src/components/unstyled/dropdown.css @@ -27,7 +27,7 @@ } .dropdown.dropdown-open .dropdown-content, .dropdown.dropdown-hover:hover .dropdown-content, -.dropdown:focus .dropdown-content, -.dropdown:focus-within .dropdown-content{ +.dropdown:not(.dropdown-hover):focus .dropdown-content, +.dropdown:not(.dropdown-hover):focus-within .dropdown-content{ @apply visible opacity-100; } \ No newline at end of file