Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix tooltips on login page (#2015)

Bogdan Chadkincb2f71988598
diff --git a/apps/builder/app/auth/login.tsx b/apps/builder/app/auth/login.tsx
index 3995e7c085..2f3ee55aec 100644
--- a/apps/builder/app/auth/login.tsx
+++ b/apps/builder/app/auth/login.tsx
@@ -1,3 +1,4 @@
+import { TooltipProvider } from "@radix-ui/react-tooltip";
import {
AccessibleIcon,
Box,
@@ -86,25 +87,27 @@ export const Login = ({
Sign in
</Text>
<Flex direction="column" gap="4">
- <Flex gap="3" direction="column">
- <Form action={authPath({ provider: "google" })} method="post">
- <LoginButton
- disabled={isGoogleEnabled === false}
- icon={<GoogleIcon size={22} />}
- >
- Sign in with Google
- </LoginButton>
- </Form>
- <Form action={authPath({ provider: "github" })} method="post">
- <LoginButton
- disabled={isGithubEnabled === false}
- icon={<GithubIcon size={22} />}
- >
- Sign in with GitHub
- </LoginButton>
- </Form>
- {isSecretLoginEnabled && <SecretLogin />}
- </Flex>
+ <TooltipProvider>
+ <Flex gap="3" direction="column">
+ <Form action={authPath({ provider: "google" })} method="post">
+ <LoginButton
+ disabled={isGoogleEnabled === false}
+ icon={<GoogleIcon size={22} />}
+ >
+ Sign in with Google
+ </LoginButton>
+ </Form>
+ <Form action={authPath({ provider: "github" })} method="post">
+ <LoginButton
+ disabled={isGithubEnabled === false}
+ icon={<GithubIcon size={22} />}
+ >
+ Sign in with GitHub
+ </LoginButton>
+ </Form>
+ {isSecretLoginEnabled && <SecretLogin />}
+ </Flex>
+ </TooltipProvider>
{errorMessage ? (
<Text align="center" color="destructive">
{errorMessage}