From 33d570a2c718a5749a74237d76e48338294e724c Mon Sep 17 00:00:00 2001 From: Rayane Djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 22 Aug 2023 01:19:54 +0000 Subject: [PATCH 1/3] fix iframe for Google Sign-In --- contributingGuides/APPLE_GOOGLE_SIGNIN.md | 2 -- src/pages/signin/LoginForm.js | 5 ++--- src/styles/styles.js | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/contributingGuides/APPLE_GOOGLE_SIGNIN.md b/contributingGuides/APPLE_GOOGLE_SIGNIN.md index 17d2b13812bd..cd18ff336a79 100644 --- a/contributingGuides/APPLE_GOOGLE_SIGNIN.md +++ b/contributingGuides/APPLE_GOOGLE_SIGNIN.md @@ -82,8 +82,6 @@ The current Sign in with Google library for web [does not allow arbitrary custom This means the button is limited in design: there are no offline or hover states, and there can only be a white background for the button. We were able to get the official Apple button options to match, so we used the Google options as the starting point for the design. -Additionally, note that the Google button has a rectangular white background when shown in a client app served on `localhost`, due to the iframe it uses in that scenario. This is expected, and will not be present when the app is hosted on other domains. - ### Sign in with Apple does not allow `localhost` Unlike Google, Apple does not allow `localhost` as a domain to host a pop-up or redirect to. In order to test Sign in with Apple on web or desktop, this means we have to: diff --git a/src/pages/signin/LoginForm.js b/src/pages/signin/LoginForm.js index bc14a5844f09..28193c42502d 100644 --- a/src/pages/signin/LoginForm.js +++ b/src/pages/signin/LoginForm.js @@ -230,9 +230,8 @@ function LoginForm(props) { containerStyles={[styles.mh0]} /> { - // This feature has a few behavioral and visual differences in development mode. To prevent confusion - // for developers about possible regressions, we won't render - // buttons in development mode. + // This feature has a few behavioral differences in development mode. To prevent confusion + // for developers about possible regressions, we won't render buttons in development mode. // For more information about these differences and how to test in development mode, // For more information about these differences and how to test in development mode, // see`Expensify/App/contributingGuides/APPLE_GOOGLE_SIGNIN.md` CONFIG.ENVIRONMENT !== CONST.ENVIRONMENT.DEV && ( diff --git a/src/styles/styles.js b/src/styles/styles.js index 03ff84eb0665..4d90a48519cd 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -3636,6 +3636,7 @@ const styles = { }, googleButtonContainer: { + colorScheme: 'light', width: 40, height: 40, marginLeft: 12, @@ -3643,6 +3644,7 @@ const styles = { }, googlePillButtonContainer: { + colorScheme: 'light', height: 40, width: 219, }, From d04aa15a84246905a2b1078d312163c36e2e24a3 Mon Sep 17 00:00:00 2001 From: Rayane Djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 22 Aug 2023 02:26:39 +0000 Subject: [PATCH 2/3] dummy commit to trigger checks --- contributingGuides/APPLE_GOOGLE_SIGNIN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributingGuides/APPLE_GOOGLE_SIGNIN.md b/contributingGuides/APPLE_GOOGLE_SIGNIN.md index cd18ff336a79..dd52b9890f26 100644 --- a/contributingGuides/APPLE_GOOGLE_SIGNIN.md +++ b/contributingGuides/APPLE_GOOGLE_SIGNIN.md @@ -80,7 +80,7 @@ Due to Expensify's expectation that a user will be using the same account on web The current Sign in with Google library for web [does not allow arbitrary customization of the sign-in button](https://developers.google.com/identity/gsi/web/guides/offerings#sign_in_with_google_button). (The recently deprecated version of the Sign in with Google for web did offer this capability.) -This means the button is limited in design: there are no offline or hover states, and there can only be a white background for the button. We were able to get the official Apple button options to match, so we used the Google options as the starting point for the design. +This means the button is limited in design: there are no offline or hover states, and there can only be a white background for the button. We were able to get the official Apple button options to match, so we used the Google options as the starting point for the design. ### Sign in with Apple does not allow `localhost` From 0f8e7a6580e6c78f1e34cb53a1a03a0382f93996 Mon Sep 17 00:00:00 2001 From: Rayane Djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 22 Aug 2023 03:59:19 +0000 Subject: [PATCH 3/3] correct comment --- src/pages/signin/LoginForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/signin/LoginForm.js b/src/pages/signin/LoginForm.js index 28193c42502d..b3a154763067 100644 --- a/src/pages/signin/LoginForm.js +++ b/src/pages/signin/LoginForm.js @@ -231,7 +231,7 @@ function LoginForm(props) { /> { // This feature has a few behavioral differences in development mode. To prevent confusion - // for developers about possible regressions, we won't render buttons in development mode. // For more information about these differences and how to test in development mode, + // for developers about possible regressions, we won't render buttons in development mode. // For more information about these differences and how to test in development mode, // see`Expensify/App/contributingGuides/APPLE_GOOGLE_SIGNIN.md` CONFIG.ENVIRONMENT !== CONST.ENVIRONMENT.DEV && (