fix bg color picker rendered behind shape menu (#1445)

* fix bg color picker rendered behind shape menu

* add comment
This commit is contained in:
David Luzar 2020-04-16 21:31:20 +02:00 committed by GitHub
parent c35d76cb4c
commit 8cfc64a3ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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}