Skip to content

Commit 38cb799

Browse files
authored
Fix text color (#13)
1 parent 3b9d685 commit 38cb799

9 files changed

+20
-20
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@authsignal/react",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "",
55
"keywords": [
66
"authsignal",

src/components/challenge/challenge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function Challenge({
141141
<Drawer.Overlay className="as-fixed as-inset-0 as-z-50 as-bg-black/80" />
142142
<Drawer.Content
143143
aria-describedby={undefined}
144-
className="as-fixed as-inset-x-0 as-bottom-0 as-z-50 as-mt-24 as-flex as-h-auto as-flex-col as-rounded-t-[10px] as-border as-bg-background as-px-4 as-pb-8"
144+
className="as-fixed as-inset-x-0 as-bottom-0 as-z-50 as-mt-24 as-flex as-h-auto as-flex-col as-rounded-t-[10px] as-bg-background as-px-4 as-pb-8"
145145
>
146146
<div className="as-mx-auto as-mt-4 as-h-2 as-w-[100px] as-rounded-full as-bg-muted" />
147147
{content}

src/components/challenge/screens/authenticator-app-challenge.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ export function AuthenticatorAppChallenge() {
8282
return (
8383
<div className="as-flex as-flex-col as-space-y-6">
8484
<div className="as-space-y-2">
85-
<TitleComponent className="as-text-center as-text-xl as-font-medium">
85+
<TitleComponent className="as-text-center as-text-xl as-font-medium as-text-foreground">
8686
Confirm it&apos;s you
8787
</TitleComponent>
88-
<p className="as-text-center as-text-sm">
88+
<p className="as-text-center as-text-sm as-text-foreground">
8989
Enter the code from your authenticator app to proceed.
9090
</p>
9191
</div>

src/components/challenge/screens/email-otp-challenge.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export function EmailOtpChallenge() {
8686
return (
8787
<div className="as-flex as-flex-col as-space-y-6">
8888
<div className="as-space-y-2">
89-
<TitleComponent className="as-text-center as-text-xl as-font-medium">
89+
<TitleComponent className="as-text-center as-text-xl as-font-medium as-text-foreground">
9090
Confirm it&apos;s you
9191
</TitleComponent>
92-
<p className="as-text-center as-text-sm">
92+
<p className="as-text-center as-text-sm as-text-foreground">
9393
Enter the code sent to {user?.email ?? ""} to proceed.
9494
</p>
9595
</div>

src/components/challenge/screens/passkey-challenge.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,31 @@ export function PasskeyChallenge({ token }: PasskeyChallengeProps) {
5757
{state === State.AUTHENTICATING && (
5858
<>
5959
<div className="as-space-y-2">
60-
<TitleComponent className="as-text-xl as-font-medium">
60+
<TitleComponent className="as-text-xl as-font-medium as-text-foreground">
6161
Confirm it&apos;s you
6262
</TitleComponent>
63-
<p className="as-text-sm">
63+
<p className="as-text-sm as-text-foreground">
6464
You will receive a prompt from your browser to authenticate with
6565
your passkey.
6666
</p>
6767
</div>
68-
<ReloadIcon className="as-mx-auto as-size-8 as-animate-spin" />
68+
<ReloadIcon className="as-mx-auto as-size-8 as-animate-spin as-text-foreground" />
6969
</>
7070
)}
7171

7272
{state === State.ERROR && (
7373
<>
7474
<div className="as-space-y-2">
75-
<TitleComponent className="as-text-xl as-font-medium">
75+
<TitleComponent className="as-text-xl as-font-medium as-text-foreground">
7676
Confirm it&apos;s you
7777
</TitleComponent>
78-
<p className="as-text-sm">
78+
<p className="as-text-sm as-text-foreground">
7979
There was a problem authenticating with your passkey.
8080
</p>
8181
</div>
8282

8383
<button
84-
className="as-inline-flex as-w-full as-items-center as-justify-center as-rounded-lg as-bg-primary as-px-3 as-py-2 as-text-sm as-font-medium as-text-white"
84+
className="as-inline-flex as-w-full as-items-center as-justify-center as-rounded-lg as-bg-primary as-px-3 as-py-2 as-text-sm as-font-medium as-text-primary-foreground"
8585
type="button"
8686
onClick={handlePasskeyAuthentication}
8787
>

src/components/challenge/screens/sms-otp-challenge.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export function SmsOtpChallenge() {
8686
return (
8787
<div className="as-flex as-flex-col as-space-y-6">
8888
<div className="as-space-y-2">
89-
<TitleComponent className="as-text-center as-text-xl as-font-medium">
89+
<TitleComponent className="as-text-center as-text-xl as-font-medium as-text-foreground">
9090
Confirm it&apos;s you
9191
</TitleComponent>
92-
<p className="as-text-center as-text-sm">
92+
<p className="as-text-center as-text-sm as-text-foreground">
9393
Enter the code sent to {user?.phoneNumber ?? ""} to proceed.
9494
</p>
9595
</div>

src/components/challenge/screens/verification-methods.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function VerificationMethods() {
1717

1818
return (
1919
<div className="as-space-y-4">
20-
<TitleComponent className="as-text-center as-text-xl as-font-medium">
20+
<TitleComponent className="as-text-center as-text-xl as-font-medium as-text-foreground">
2121
Select an authentication method
2222
</TitleComponent>
2323
<ul className="as-space-y-3">
@@ -74,13 +74,13 @@ function VerificationMethodItem({
7474
return (
7575
<li>
7676
<button
77-
className="as-flex as-w-full as-items-center as-rounded as-border as-p-2 as-shadow"
77+
className="as-flex as-w-full as-items-center as-rounded as-border as-p-2 as-text-foreground as-shadow"
7878
onClick={() => setVerificationMethod(verificationMethod)}
7979
type="button"
8080
>
8181
<div className="as-flex as-items-center as-space-x-2">
8282
{icon}
83-
<span className="as-text-sm as-font-medium">{label}</span>
83+
<span className="as-text-sm as-font-medium ">{label}</span>
8484
</div>
8585
<ChevronRightIcon className="as-ml-auto as-size-4" />
8686
</button>

src/ui/dialog.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ const DialogContent = React.forwardRef<
3838
<DialogPrimitive.Content
3939
ref={ref}
4040
className={cn(
41-
"as-fixed as-left-1/2 as-top-1/2 as-z-50 as-grid as-w-full as-max-w-lg -as-translate-x-1/2 -as-translate-y-1/2 as-gap-4 as-border as-bg-background as-p-6 as-shadow-lg as-duration-200 data-[state=open]:as-animate-in data-[state=closed]:as-animate-out data-[state=closed]:as-fade-out-0 data-[state=open]:as-fade-in-0 data-[state=closed]:as-zoom-out-95 data-[state=open]:as-zoom-in-95 data-[state=closed]:as-slide-out-to-left-1/2 data-[state=closed]:as-slide-out-to-top-[48%] data-[state=open]:as-slide-in-from-left-1/2 data-[state=open]:as-slide-in-from-top-[48%] sm:as-rounded-lg",
41+
"as-fixed as-left-1/2 as-top-1/2 as-z-50 as-grid as-w-full as-max-w-lg -as-translate-x-1/2 -as-translate-y-1/2 as-gap-4 as-bg-background as-p-6 as-shadow-lg as-duration-200 data-[state=open]:as-animate-in data-[state=closed]:as-animate-out data-[state=closed]:as-fade-out-0 data-[state=open]:as-fade-in-0 data-[state=closed]:as-zoom-out-95 data-[state=open]:as-zoom-in-95 data-[state=closed]:as-slide-out-to-left-1/2 data-[state=closed]:as-slide-out-to-top-[48%] data-[state=open]:as-slide-in-from-left-1/2 data-[state=open]:as-slide-in-from-top-[48%] sm:as-rounded-lg",
4242
className,
4343
)}
4444
{...props}
4545
>
4646
{children}
47-
<DialogPrimitive.Close className="as-absolute as-right-4 as-top-4 as-rounded-sm as-opacity-70 as-ring-offset-background as-transition-opacity hover:as-opacity-100 focus:as-outline-none focus:as-ring-2 focus:as-ring-ring focus:as-ring-offset-2 disabled:as-pointer-events-none data-[state=open]:as-text-foreground">
47+
<DialogPrimitive.Close className="as-absolute as-right-4 as-top-4 as-rounded-sm as-text-foreground as-opacity-70 as-ring-offset-background as-transition-opacity hover:as-opacity-100 focus:as-outline-none focus:as-ring-2 focus:as-ring-ring focus:as-ring-offset-2 disabled:as-pointer-events-none data-[state=open]:as-text-foreground">
4848
<Cross2Icon className="as-size-[1rem]" />
4949
<span className="as-sr-only">Close</span>
5050
</DialogPrimitive.Close>

src/ui/input-otp.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const InputOTPSlot = React.forwardRef<
4343
<div
4444
ref={ref}
4545
className={cn(
46-
"as-relative as-flex as-size-10 as-items-center as-justify-center as-rounded-lg as-border as-border-input-border as-text-sm as-shadow-sm as-transition-all xs:as-size-12",
46+
"as-relative as-flex as-size-10 as-items-center as-justify-center as-rounded-lg as-border as-border-input-border as-text-sm as-text-foreground as-shadow-sm as-transition-all xs:as-size-12",
4747
isActive && "as-z-10 as-ring-1 as-ring-ring",
4848
className,
4949
)}

0 commit comments

Comments
 (0)