Skip to content

Commit

Permalink
fix(modal): add spreading backdrop props (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrAnomalyy committed Nov 8, 2021
1 parent 45cdefb commit b523426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/modal/src/Component.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const ModalDesktopComponent = forwardRef<HTMLDivElement, ModalDesktopProps>(
})}
className={cn(styles.component, className, !fullscreen && styles[size])}
backdropProps={{
...restProps.backdropProps,
invisible: fullscreen,
}}
transitionProps={{
Expand Down
1 change: 1 addition & 0 deletions packages/modal/src/Component.mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const ModalMobileComponent = forwardRef<HTMLDivElement, ModalMobileProps>(
}}
className={cn(className, styles.component)}
backdropProps={{
...restProps.backdropProps,
invisible: true,
}}
>
Expand Down

0 comments on commit b523426

Please sign in to comment.