Skip to content

Commit 635e5a8

Browse files
Fix hover bg color for social login buttons
1 parent 3556b8a commit 635e5a8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/components/Onboarding/connectOrCreate/OnboardWithEmailButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useOnboardWithSocial } from "./useOnboardWithSocial";
44
import { EmailIcon } from "../../../assets/icons";
55
import colors from "../../../style/colors";
66

7+
// eslint-disable-next-line import/no-unused-modules
78
export const OnboardWithEmailButton = ({ onAuth }: { onAuth: () => void }) => {
89
const { isLoading, onboard } = useOnboardWithSocial("email", onAuth);
910

src/components/Onboarding/connectOrCreate/OnboardWithTwitterButton.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import { IconButton } from "@chakra-ui/react";
22

33
import { useOnboardWithSocial } from "./useOnboardWithSocial";
44
import { TwitterIcon } from "../../../assets/icons";
5-
import colors from "../../../style/colors";
65

76
export const OnboardWithTwitterButton = ({ onAuth }: { onAuth: () => void }) => {
87
const { isLoading, onboard } = useOnboardWithSocial("twitter", onAuth);
98

109
return (
1110
<IconButton
1211
color="black"
13-
_hover={{ color: "white", background: colors.gray[600] }}
1412
aria-label="Twitter SSO"
1513
data-testid="login-button-twitter"
1614
icon={<TwitterIcon fill="currentColor" />}

src/style/theme/button.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,15 @@ export const buttonTheme = defineStyleConfig({
142142
background: "white",
143143
borderWidth: "0",
144144
borderRadius: "full",
145+
_loading: {
146+
color: "white",
147+
background: colors.gray[600],
148+
_hover: {
149+
background: colors.gray[600],
150+
},
151+
},
145152
_hover: {
153+
color: "white",
146154
background: colors.gray[600],
147155
},
148156
},

0 commit comments

Comments
 (0)