Skip to content

Commit

Permalink
Merge pull request #1039 from glints-dev/feature/sidesheet-classnames
Browse files Browse the repository at this point in the history
chore: adds class name for side sheet container
  • Loading branch information
Afsal102 authored Jul 9, 2024
2 parents 823cf04 + beb5dbf commit 71a558d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/@next/SideSheet/SideSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
SideSheetContent,
} from './SideSheetStyle';
import { Typography } from '../Typography';
import classNames from 'classnames';

export interface SideSheetProps {
isOpen: boolean;
Expand Down Expand Up @@ -90,7 +91,12 @@ const SideSheet = React.forwardRef<HTMLDivElement, SideSheetProps>(
onClick={handleClose}
>
<StyledSideSheetContainer
className={`${isClosedAnimation ? 'closed' : ''}`}
className={classNames(
{
closed: isClosedAnimation,
},
'side-sheet-container'
)}
ref={ref}
onClick={e => e.stopPropagation()}
{...props}
Expand Down

0 comments on commit 71a558d

Please sign in to comment.