Skip to content

Commit

Permalink
Merge pull request Expensify#26874 from Pujan92/fix/25864
Browse files Browse the repository at this point in the history
Fix: styling of Google Sign In button on Safari
  • Loading branch information
arosiclair authored Sep 13, 2023
2 parents 85f950a + 028262f commit e426b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SignInButtons/GoogleSignIn/index.website.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function GoogleSignIn({translate, isDesktopFlow}) {
};
}, [loadScript]);

// willChangeTransform is used to prevent the icon cut in safari when the overflow hidden and width given to the parent
// ref: https://stackoverflow.com/questions/75306089/safari-when-using-border-radius-and-overflow-hidden-to-parent-and-the-child-th
return isDesktopFlow ? (
<View style={styles.googlePillButtonContainer}>
<div
Expand All @@ -77,7 +79,7 @@ function GoogleSignIn({translate, isDesktopFlow}) {
/>
</View>
) : (
<View style={styles.googleButtonContainer}>
<View style={[styles.googleButtonContainer, styles.willChangeTransform]}>
<div
id={mainId}
role="button"
Expand Down

0 comments on commit e426b39

Please sign in to comment.