chore: adjust SelectInputRadio styling

This commit is contained in:
ValdiANS
2026-01-24 11:19:50 +07:00
parent 2d81b0dfba
commit a890ed571b
+11 -4
View File
@@ -21,14 +21,18 @@ const RadioOption = <
>( >(
props: OptionProps<T, IsMulti, Group> props: OptionProps<T, IsMulti, Group>
) => { ) => {
const { isSelected, label, innerRef, innerProps, className } = props; const { isSelected, label, innerRef, innerProps, className, isFocused } =
props;
return ( return (
<div <div
ref={innerRef} ref={innerRef}
{...innerProps} {...innerProps}
className={cn( className={cn(
'flex items-center gap-2 px-3 py-2 cursor-pointer', 'flex items-center gap-3 p-3 cursor-pointer transition-all hover:bg-primary/5',
{
'bg-primary/5': isFocused,
},
className className
)} )}
> >
@@ -36,9 +40,12 @@ const RadioOption = <
type='radio' type='radio'
checked={isSelected} checked={isSelected}
onChange={() => null} onChange={() => null}
className='radio radio-sm radio-primary pointer-events-none' className='radio radio-md radio-primary pointer-events-none'
/> />
<label className='cursor-pointer flex-1 select-none'>{label}</label>
<label className='cursor-pointer flex-1 select-none text-sm text-base-content/50 font-medium'>
{label}
</label>
</div> </div>
); );
}; };