File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,9 @@ function Radio<T extends RadioValue>({
44
44
className = { classnames (
45
45
'focus-visible-ring rounded-lg px-3 py-2 flex-1 group' ,
46
46
{
47
- 'bg-grey-3/50' : isSelected ,
48
- 'hover:bg-grey-3/25' : ! isSelected && ! disabled ,
47
+ 'hover: bg-grey-3/25 aria-checked:bg-grey-3/50 cursor-pointer' :
48
+ ! disabled ,
49
49
'opacity-70' : disabled ,
50
- 'cursor-pointer' : ! disabled ,
51
50
} ,
52
51
) }
53
52
data-value = { value }
@@ -66,13 +65,20 @@ function Radio<T extends RadioValue>({
66
65
>
67
66
< div className = "flex items-center gap-x-1.5" >
68
67
{ isSelected ? < RadioCheckedIcon /> : < RadioIcon /> }
69
- { children }
68
+ < span
69
+ className = { classnames ( 'flex items-center gap-x-1.5' , {
70
+ 'text-grey-7 group-hover:text-grey-8 group-aria-checked:text-grey-8' :
71
+ ! disabled ,
72
+ } ) }
73
+ >
74
+ { children }
75
+ </ span >
70
76
</ div >
71
77
{ subtitle && (
72
78
< div
73
79
className = { classnames ( 'pl-4 ml-1.5 mt-1 text-sm' , {
74
- 'text-grey-7' : isSelected ,
75
- 'text-grey-6 group-hover:text-grey-7' : ! isSelected && ! disabled ,
80
+ 'text-grey-6 group-hover:text-grey-7 group-aria-checked:text-grey-7' :
81
+ ! disabled ,
76
82
} ) }
77
83
>
78
84
{ subtitle }
You can’t perform that action at this time.
0 commit comments