add fallback variable to backdrop

This commit is contained in:
Jacob Overgaard
2024-04-05 17:19:44 +02:00
parent f43941dd6a
commit 54f5a4c0ec

View File

@@ -96,8 +96,8 @@ export class UmbAppAuthController extends UmbControllerBase {
},
modal: {
backdropBackground: this.#firstTimeLoggingIn
? "url('https://picsum.photos/1440?grayscale&blur=2') center center / cover no-repeat"
: 'rgb(0, 0, 0)',
? "var(--umb-auth-backdrop, url('https://picsum.photos/1440?grayscale&blur=2') center center / cover no-repeat)"
: 'var(--umb-auth-backdrop-timedout, rgb(0, 0, 0))',
},
})
.onSubmit()