Skip to content

Commit 79b3104

Browse files
committed
fix(webapp): darken unchecked radio cards in dark themes
1 parent 3b684ef commit 79b3104

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/webapp/app/components/primitives/RadioButton.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ const variants = {
2222
},
2323
"button/small": {
2424
button:
25-
"flex items-center w-fit h-8 pl-2 pr-3 rounded-md border border-border-bright/50 shadow-xs bg-secondary transition hover:bg-background-raised data-disabled:opacity-70 data-disabled:hover:bg-secondary hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
25+
"flex items-center w-fit h-8 pl-2 pr-3 rounded-md border border-border-bright/50 shadow-xs bg-background-bright transition hover:bg-background-hover data-disabled:opacity-70 data-disabled:hover:bg-background-bright hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
2626
label: "text-sm text-text-bright select-none",
2727
description: "text-text-dimmed",
2828
inputPosition: "mt-0",
2929
icon: "w-8 h-8 mb-2",
3030
},
3131
button: {
3232
button:
33-
"w-fit py-2 pl-3 pr-4 rounded border border-border-bright/50 shadow-xs bg-secondary hover:bg-background-raised transition hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control data-disabled:opacity-70",
33+
"w-fit py-2 pl-3 pr-4 rounded border border-border-bright/50 shadow-xs bg-background-bright hover:bg-background-hover transition hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control data-disabled:opacity-70",
3434
label: "text-text-bright select-none",
3535
description: "text-text-dimmed",
3636
inputPosition: "mt-1",
3737
icon: "w-8 h-8 mb-2",
3838
},
3939
description: {
4040
button:
41-
"w-full p-2.5 rounded-md border border-border-bright/50 shadow-xs bg-secondary transition hover:bg-background-raised data-disabled:opacity-70 hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
41+
"w-full p-2.5 rounded-md border border-border-bright/50 shadow-xs bg-background-bright transition hover:bg-background-hover data-disabled:opacity-70 hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
4242
label: "text-text-bright font-semibold -mt-0.5 text-left text-sm",
4343
description: "text-text-dimmed mt-0 text-left",
4444
inputPosition: "mt-0",
4545
icon: "w-8 h-8 mb-2",
4646
},
4747
icon: {
4848
button:
49-
"w-full p-2.5 pb-4 rounded-sm border border-border-bright/50 shadow-xs bg-secondary hover:bg-background-raised transition data-disabled:opacity-70 hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
49+
"w-full p-2.5 pb-4 rounded-sm border border-border-bright/50 shadow-xs bg-background-bright hover:bg-background-hover transition data-disabled:opacity-70 hover:data-[state=checked]:bg-surface-control-hover data-[state=checked]:bg-surface-control",
5050
label: "text-text-bright font-semibold -mt-1 text-left",
5151
description: "text-text-dimmed mt-0 text-left",
5252
inputPosition: "mt-0",

0 commit comments

Comments
 (0)