Fix loading state - force subtle token to exist (#8153)

* Fix loading state - force subtle token to exist

* Add opacity
This commit is contained in:
sean-brydon
2023-04-08 18:50:17 +02:00
committed by GitHub
parent 5b7c55b029
commit d416386d7b
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -131,6 +131,7 @@ export default function Login({
"--cal-brand": "#111827",
"--cal-brand-emphasis": "#101010",
"--cal-brand-text": "white",
"--cal-brand-subtle": "#9CA3AF",
} as CSSProperties
}>
<AuthContainer
@@ -88,6 +88,7 @@ const OnboardingPage = (props: IOnboardingPageProps) => {
"--cal-brand": "#111827",
"--cal-brand-emphasis": "#101010",
"--cal-brand-text": "white",
"--cal-brand-subtle": "#9CA3AF",
} as CSSProperties
}
key={router.asPath}>
+1
View File
@@ -80,6 +80,7 @@ export default function Signup({ prepopulateFormValues }: inferSSRProps<typeof g
"--cal-brand": "#111827",
"--cal-brand-emphasis": "#101010",
"--cal-brand-text": "white",
"--cal-brand-subtle": "#9CA3AF",
} as CSSProperties
}
aria-labelledby="modal-title"
+2 -2
View File
@@ -73,12 +73,12 @@ const buttonClasses = cva(
{
disabled: true,
color: "primary",
className: "bg-brand-subtle bg-opacity-30",
className: "bg-brand-subtle text-brand-subtle opacity-40",
},
{
loading: true,
color: "primary",
className: "bg-brand-default bg-opacity-30 text-brand-subtle",
className: "bg-brand-subtle text-brand-subtle",
},
// Secondary variants
{