Skip to content

Commit

Permalink
Move global props to better spot drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
markdoeswork committed Dec 4, 2024
1 parent af79551 commit 4817dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbook/app/pb_kits/playbook/pb_drawer/_drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
{...ariaProps}
{...dataProps}
{...htmlProps}
style={dynamicInlineProps}
className={classnames(drawerClassNames.base, {
[drawerClassNames.afterOpen]:
animationState === "afterOpen",
Expand All @@ -296,6 +295,7 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
})}
id={id}
onClick={(e) => e.stopPropagation()}
style={dynamicInlineProps}
>
{children}
</div>
Expand All @@ -306,7 +306,6 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
{...dataProps}
{...htmlProps}
className={classes}
style={dynamicInlineProps}
>
{isModalVisible && (
<div
Expand All @@ -327,6 +326,7 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
animationState === "beforeClose",
})}
onClick={(e) => e.stopPropagation()}
style={dynamicInlineProps}
>
{children}
</div>
Expand Down

0 comments on commit 4817dd2

Please sign in to comment.