mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
chore: adjust SelectInputCheckbox styling
This commit is contained in:
@@ -25,14 +25,18 @@ const CheckboxOption = <
|
|||||||
>(
|
>(
|
||||||
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
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@@ -40,9 +44,12 @@ const CheckboxOption = <
|
|||||||
type='checkbox'
|
type='checkbox'
|
||||||
checked={isSelected}
|
checked={isSelected}
|
||||||
onChange={() => null}
|
onChange={() => null}
|
||||||
className='checkbox checkbox-sm rounded checkbox-primary pointer-events-none'
|
className='checkbox checkbox-sm rounded-md checkbox-primary pointer-events-none border-base-content/10'
|
||||||
/>
|
/>
|
||||||
<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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user