Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
improve disabled input and buttons styling (#720)
Ameer Al Ashhab0b3a2dddbf2b
diff --git a/apps/web/app/(org)/login/form.tsx b/apps/web/app/(org)/login/form.tsxindex 4d168669b..173c16c81 100644--- a/apps/web/app/(org)/login/form.tsx+++ b/apps/web/app/(org)/login/form.tsx@@ -333,7 +333,7 @@ const NormalLogin = ({autoComplete="email"requiredvalue={email}- disabled={emailSent}+ disabled={emailSent || loading}onChange={(e) => {setEmail(e.target.value);}}@@ -342,7 +342,7 @@ const NormalLogin = ({variant="primary"type="submit"disabled={loading || emailSent}- icon={<FontAwesomeIcon className="size-4" icon={faEnvelope} />}+ icon={<FontAwesomeIcon className="mr-1 size-4" icon={faEnvelope} />}>{emailSent? NODE_ENV === "development"diff --git a/packages/ui/src/components/Button.tsx b/packages/ui/src/components/Button.tsxindex e4e5b9b7e..1d12ceb48 100644--- a/packages/ui/src/components/Button.tsx+++ b/packages/ui/src/components/Button.tsx@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";import * as React from "react";const buttonVariants = cva(- "flex items-center justify-center rounded-full cursor-pointer font-medium px-[1.25rem] ring-offset-transparent relative gap-1",+ "flex items-center justify-center rounded-full disabled:cursor-not-allowed cursor-pointer font-medium px-[1.25rem] ring-offset-transparent relative gap-1",{defaultVariants: {variant: "primary",@@ -12,12 +12,12 @@ const buttonVariants = cva(},variants: {variant: {- primary: "bg-gray-12 text-gray-1 hover:bg-gray-11",+ primary: "bg-gray-12 text-gray-1 hover:bg-gray-11 disabled:bg-gray-6 disabled:text-gray-9",blue: "bg-blue-600 text-white hover:bg-blue-700 disabled:bg-blue-200 disabled:text-gray-8",destructive:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-200",white: "bg-gray-1 text-gray-12 hover:bg-gray-2 disabled:bg-gray-8",- gray: "bg-gray-4 text-gray-12 hover:bg-gray-5 disabled:bg-gray-8",+ gray: "bg-gray-4 text-gray-12 hover:bg-gray-5 disabled:bg-gray-6 disabled:text-gray-9",dark: "bg-gray-12 text-gray-1 disabled:cursor-not-allowed hover:bg-gray-11 disabled:text-gray-10 disabled:bg-gray-7 disabled:border-gray-8",darkgradient:"bg-gradient-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",diff --git a/packages/ui/src/components/input/Input.tsx b/packages/ui/src/components/input/Input.tsxindex 3405996b9..d3aa61806 100644--- a/packages/ui/src/components/input/Input.tsx+++ b/packages/ui/src/components/input/Input.tsx@@ -14,7 +14,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>("flex px-4 w-full font-thin transition-all duration-200 text-[13px] text-gray-12 bg-gray-1 border-gray-4 outline-0 focus:bg-gray-2","rounded-xl hover:bg-gray-2 hover:border-gray-5 h-[44px] placeholder:text-gray-8 border-[1px] focus:border-gray-5","file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none",- "disabled:cursor-not-allowed disabled:bg-gray-2 disabled:text-gray-9 placeholder:transition-all",+ "disabled:cursor-not-allowed disabled:bg-gray-2 disabled:text-gray-8 disabled:placeholder:text-gray-8 placeholder:transition-all","ring-0 ring-gray-2 focus:ring-1 focus:ring-gray-12 focus:ring-offset-2 ring-offset-gray-1 hover:placeholder:text-gray-12 placeholder:duration-200",className)}