Skip to content

Commit 9f56fd7

Browse files
committed
fix(DrawerPanelContent): fix issue with styles overriding
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
1 parent ce02202 commit 9f56fd7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/react-core/src/components/Drawer/DrawerPanelContent.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
7777
widths,
7878
colorVariant = DrawerColorVariant.default,
7979
focusTrap,
80+
style,
8081
...props
8182
}: DrawerPanelContentProps) => {
8283
const panel = useRef<HTMLDivElement>(undefined);
@@ -381,9 +382,10 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
381382
}
382383
}}
383384
hidden={hidden}
384-
{...((defaultSize || minSize || maxSize) && {
385-
style: boundaryCssVars as React.CSSProperties
386-
})}
385+
style={{
386+
...((defaultSize || minSize || maxSize) && boundaryCssVars),
387+
...style
388+
}}
387389
{...props}
388390
ref={panel}
389391
>

0 commit comments

Comments
 (0)