Merge pull request #504 from kolplattformen/feat/bring-back-faded-background-on-login-modal

feat: 🎸 Use fade on the backdrop on login modal
This commit is contained in:
Andreas Eriksson 2021-10-04 17:55:13 +02:00 committed by GitHub
commit dc5a7a5119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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)
@ -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,