Skip to content

Commit

Permalink
EPMRPP-94553 || modal window jitters (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim73i authored Aug 30, 2024
1 parent e3b8f98 commit d826262
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions src/components/modal/modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ $WIDTH-LARGE: 720px;
overflow: hidden;
}

.scrollable {
overflow: hidden;
}

.overlay-default {
background-color: var(--rp-ui-base-overlay);
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ export const Modal: FC<ModalProps> = ({
return (
<AnimatePresence onExitComplete={onClose}>
{isShown && (
<div
className={cx('modal', { scrollable: scrollable }, { [`overlay-${overlay}`]: overlay })}
style={{ zIndex }}
>
<div className={cx('modal', { [`overlay-${overlay}`]: overlay })} style={{ zIndex }}>
<motion.div
className={cx('modal-window', { [`size-${size}`]: size }, className)}
key="modal-window"
Expand Down

0 comments on commit d826262

Please sign in to comment.