setIsOpen((prev) => !prev)}
- className="w-8 h-8 p-1 transition-transform border-0 rounded-md shadow-xs cursor-pointer hover:scale-105 active:scale-95"
+ className="w-8 h-8 p-1 transition-transform border-0 shadow-xs cursor-pointer rounded-xl hover:scale-105 active:scale-95"
style={{ backgroundColor: displayColor }}
/>
{isOpen && (
-
-
-
+
+
+ {mode === 'hex' ? (
+
+ ) : (
+
+ )}
+
+
)}
)
diff --git a/src/components/ui/modal/modal.tsx b/src/components/ui/modal/modal.tsx
index 2844554a6..95a35955d 100644
--- a/src/components/ui/modal/modal.tsx
+++ b/src/components/ui/modal/modal.tsx
@@ -100,7 +100,9 @@ export function Modal({
style={
{
'--modal-duration': `${modalDurationMs}ms`,
- zIndex: assignedZIndex ?? (customZIndex !== undefined ? customZIndex : BASE_MODAL_Z_INDEX),
+ zIndex:
+ assignedZIndex ??
+ (customZIndex !== undefined ? customZIndex : BASE_MODAL_Z_INDEX),
} as React.CSSProperties
}
>
@@ -123,7 +125,7 @@ export function Modal({