Skip to content

Commit

Permalink
feat: 🎸 Use fade on the backdrop on login modal
Browse files Browse the repository at this point in the history
Much better than the greyish backdrop that we use now
  • Loading branch information
whyer committed Oct 4, 2021
1 parent fba7b3e commit e99494b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/skolplattformen-sthlm/components/login.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export const Login = () => {
}
status.on('PENDING', () => console.log('BankID app not yet opened'))
status.on('USER_SIGN', () => console.log('BankID app is open'))
status.on('CANCELLED', () => {
console.log('User pressed cancel in BankID')
showModal(false)
})
status.on('ERROR', () => {
setError(t('auth.loginFailed'))
showModal(false)
Expand Down Expand Up @@ -247,7 +251,7 @@ export const Login = () => {

const themedStyles = StyleService.create({
backdrop: {
backgroundColor: 'color-basic-transparent-600',
backgroundColor: 'rgba(0, 0, 0, 0.5)',
},
loginForm: {
...Layout.mainAxis.flexStart,
Expand Down

0 comments on commit e99494b

Please sign in to comment.