From 137545c606a55d15ff0fd536fd9310413f0c1e0e Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Thu, 29 Aug 2024 23:49:28 +0530 Subject: [PATCH] fix: tooltips can show if one button is focused & another is hovered --- src/components/FlickerList.tsx | 19 +++++++++++++------ src/index.css | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/FlickerList.tsx b/src/components/FlickerList.tsx index bd85082..3ed94a1 100644 --- a/src/components/FlickerList.tsx +++ b/src/components/FlickerList.tsx @@ -42,14 +42,14 @@ const Flicker: React.FC<{ className={css` position: relative; - & button:focus ~ .tooltip, - & button:hover ~ .tooltip { + &&& button:focus ~ .tooltip, + &&& button:hover ~ .tooltip { opacity: 1; } - & button:focus, - & button:hover { - opacity: 1 !important; + &&& button:focus, + &&& button:hover { + opacity: 1; } `}>