mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-09 10:37:22 +02:00
fix bg color picker rendered behind shape menu (#1445)
* fix bg color picker rendered behind shape menu * add comment
This commit is contained in:
@@ -6,13 +6,14 @@ type IslandProps = {
|
||||
children: React.ReactNode;
|
||||
padding?: number;
|
||||
className?: string;
|
||||
style?: object;
|
||||
};
|
||||
|
||||
export const Island = React.forwardRef<HTMLDivElement, IslandProps>(
|
||||
({ children, padding, className }, ref) => (
|
||||
({ children, padding, className, style }, ref) => (
|
||||
<div
|
||||
className={`${className ?? ""} Island`}
|
||||
style={{ "--padding": padding } as React.CSSProperties}
|
||||
style={{ "--padding": padding, ...style } as React.CSSProperties}
|
||||
ref={ref}
|
||||
>
|
||||
{children}
|
||||
|
Reference in New Issue
Block a user