File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,8 +360,10 @@ function SignInPageWrapper({ref}: SignInPageProps) {
360360function WithTheme ( Component : React . ComponentType < SignInPageProps > ) {
361361 function ThemedComponent ( { ref} : SignInPageProps ) {
362362 const [ preferredTheme ] = useOnyx ( ONYXKEYS . PREFERRED_THEME ) ;
363+ const [ highContrastIntent ] = useOnyx ( ONYXKEYS . SIGN_IN_HIGH_CONTRAST_INTENT ) ;
363364 const contrastThemes : string [ ] = [ CONST . THEME . DARK_CONTRAST , CONST . THEME . LIGHT_CONTRAST , CONST . THEME . SYSTEM_CONTRAST ] ;
364- const signInTheme = contrastThemes . includes ( preferredTheme ?? '' ) ? CONST . THEME . DARK_CONTRAST : CONST . THEME . DARK ;
365+ const isHighContrast = highContrastIntent ?? contrastThemes . includes ( preferredTheme ?? '' ) ;
366+ const signInTheme = isHighContrast ? CONST . THEME . DARK_CONTRAST : CONST . THEME . DARK ;
365367
366368 return (
367369 < ThemeProvider theme = { signInTheme } >
You can’t perform that action at this time.
0 commit comments