Skip to content

Commit

Permalink
Fix modal fading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
madalynbartman committed Dec 21, 2024
1 parent cf55526 commit 334e635
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/core/src/components/components/Modal/Modal.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const Overlay = styled.div({
height: '100%',
zIndex: 10,
animation: `${fadeIn} 200ms`,
opacity: 1,
transition: 'none',
});

export const Container = styled.div<{ width?: number; height?: number }>(
Expand All @@ -55,7 +57,8 @@ export const Container = styled.div<{ width?: number; height?: number }>(
overflow: 'hidden',
zIndex: 11,
animation: `${zoomIn} 200ms`,

opacity: 1,
transition: 'none',
'&:focus-visible': {
outline: 'none',
},
Expand Down Expand Up @@ -118,7 +121,7 @@ export const Actions = styled.div({
export const ErrorWrapper = styled.div(({ theme }) => ({
maxHeight: 100,
overflow: 'auto',
animation: `${expand} 300ms, ${fadeIn} 300ms`,
animation: `${expand} 300ms`,
backgroundColor: theme.background.critical,
color: theme.color.lightest,
fontSize: theme.typography.size.s2,
Expand Down
6 changes: 6 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 334e635

Please sign in to comment.