Skip to content

Commit 2f9eac2

Browse files
author
web-ppanel
committed
fix(ui): improve text contrast on renew and purchasing pages (#30)
1 parent f67b49c commit 2f9eac2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/user/src/sections/subscribe/duration-selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DurationSelector: React.FC<DurationSelectorProps> = ({
4040
<div className="relative">
4141
<RadioGroupItem className="peer sr-only" id={value} value={value} />
4242
<Label
43-
className="relative flex h-full flex-col items-center justify-center gap-2 rounded-md border-2 border-muted bg-popover p-2 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary"
43+
className="relative flex h-full flex-col items-center justify-center gap-2 rounded-md border-2 border-muted bg-popover p-2 text-popover-foreground hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary peer-data-[state=checked]:bg-primary/10 peer-data-[state=checked]:text-foreground"
4444
htmlFor={value}
4545
>
4646
{label}

apps/user/src/sections/subscribe/payment-methods.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const PaymentMethods: React.FC<PaymentMethodsProps> = ({
6666
/>
6767
<Label
6868
className={cn(
69-
"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover py-2 hover:bg-accent hover:text-accent-foreground",
70-
String(value) === String(item.id) ? "border-primary" : ""
69+
"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover py-2 text-popover-foreground hover:bg-accent hover:text-accent-foreground",
70+
String(value) === String(item.id) ? "border-primary bg-primary/10 text-foreground" : ""
7171
)}
7272
htmlFor={String(item.id)}
7373
>

apps/user/src/sections/subscribe/renewal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default function Renewal({ id, subscribe }: Readonly<RenewalProps>) {
164164
/>
165165
</div>
166166
<Button
167-
className="sticky bottom-0 left-0 w-full bg-background md:relative md:mt-6"
167+
className="sticky bottom-0 left-0 w-full md:relative md:mt-6"
168168
disabled={loading}
169169
onClick={handleSubmit}
170170
>

0 commit comments

Comments
 (0)