Skip to content

Commit

Permalink
Hide back ones
Browse files Browse the repository at this point in the history
  • Loading branch information
maxphilippov committed Nov 11, 2024
1 parent 14cbb57 commit 4ff611a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/frontend/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const Dialog = React.memo<Props>(

const onClose = (value: any) => {
props.onClose && props.onClose(value)
dialog.current!.style.display = 'none'
}

const onCancel = (ev: React.BaseSyntheticEvent) => {
Expand All @@ -71,7 +70,6 @@ const Dialog = React.memo<Props>(
useEffect(() => {
// calling showModal is "only" the way to have ::backdrop
dialog.current?.showModal()
dialog.current!.style.display = 'flex'
})

let style
Expand Down
5 changes: 5 additions & 0 deletions packages/frontend/src/components/Dialog/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ $paddingHorizontal: 30px;
$paddingVertical: 20px;

.dialog {
opacity: 0;
padding: 0;

&:last-of-type {
opacity: 1;
}

&.unstyled {
background: none;
width: 100vw;
Expand Down

0 comments on commit 4ff611a

Please sign in to comment.