From 98e9b4e02ab0fb7e5f9083c0b5bbf880e970c552 Mon Sep 17 00:00:00 2001 From: Prathamesh Chavan Date: Sun, 20 Aug 2023 18:45:29 +0530 Subject: [PATCH] Fixed Popover content not interactive --- ui/editor/components/color-selector.tsx | 111 +++++++++++------------- 1 file changed, 53 insertions(+), 58 deletions(-) diff --git a/ui/editor/components/color-selector.tsx b/ui/editor/components/color-selector.tsx index d7262de01..2ae9cf449 100644 --- a/ui/editor/components/color-selector.tsx +++ b/ui/editor/components/color-selector.tsx @@ -125,68 +125,63 @@ export const ColorSelector: FC = ({ - - -
-
Color
- {TEXT_COLORS.map(({ name, color }, index) => ( - - ))} - -
- Background + A +
+ {name} + {editor.isActive("textStyle", { color }) && ( + + )} + + ))} + +
+ Background +
- {HIGHLIGHT_COLORS.map(({ name, color }, index) => ( - - ))} -
-
-
+ A + + {name} + + {editor.isActive("highlight", { color }) && ( + + )} + + ))} + );