Skip to content

Commit

Permalink
fix(fa): Fixing click outside of aid amount modal (#6147)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
MargretFinnboga and kodiakhq[bot] authored Jan 6, 2022
1 parent f85c833 commit 14e3532
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import { style } from '@vanilla-extract/css'
import { theme } from '@island.is/island-ui/theme'

export const modalBase = style({
height: '100%',
display: 'block',
})

export const modalContainer = style({
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
})

export const modal = style({
display: 'block',
width: '100%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ModalBase, Text, Box, Button } from '@island.is/island-ui/core'

import * as styles from './AidAmountModal.css'

import * as modalStyles from '../StateModal/StateModal.css'

import { Calculations } from '@island.is/financial-aid/shared/lib'

import { Breakdown } from '@island.is/financial-aid/shared/components'
Expand Down Expand Up @@ -33,9 +35,14 @@ const AidAmountModal = ({
onVisibilityChange(visibility)
}
}}
className={styles.modalBase}
className={modalStyles.modalBase}
>
<Box onClick={closeModal} className={styles.modalContainer}>
<Box
className={modalStyles.closeModalBackground}
onClick={closeModal}
></Box>

<Box className={modalStyles.modalContainer}>
<Box
position="relative"
borderRadius="large"
Expand All @@ -49,13 +56,8 @@ const AidAmountModal = ({

<Breakdown calculations={calculations} />

<Box
display="flex"
justifyContent="flexEnd"
onClick={closeModal}
marginTop={4}
>
<Button>Loka</Button>
<Box display="flex" justifyContent="flexEnd" marginTop={4}>
<Button onClick={closeModal}>Loka</Button>
</Box>
</Box>
</Box>
Expand Down

0 comments on commit 14e3532

Please sign in to comment.