Skip to content

Commit

Permalink
fix(Drawer): fix z-index error
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Jan 23, 2024
1 parent 741c9c0 commit 266d3cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Drawer/BaseDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type BaseDrawerProps = {
direction: 'left' | 'right' | 'top' | 'bottom'
children?: React.ReactNode
duration?: number
zIndex?: number
enableOverlay?: boolean
className?: string
size?: number | string
Expand Down Expand Up @@ -67,11 +68,13 @@ export const BaseDrawer = ({
direction,
children,
duration,
zIndex = 100,
enableOverlay,
className,
size,
}: BaseDrawerProps) => {
const drawerStyles: CSSProperties = {
zIndex: zIndex,
transitionDuration: `${duration}ms`,
...getDirectionStyle(direction, size),
}
Expand Down

0 comments on commit 266d3cc

Please sign in to comment.