mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:18:30 +02:00
Better SegmentedControl styles
This commit is contained in:
@@ -51,8 +51,8 @@ export function SegmentedControl<T extends string>({ value, onChange, options, n
|
|||||||
event={{ id: name, value: String(o.value) }}
|
event={{ id: name, value: String(o.value) }}
|
||||||
tabIndex={isSelected ? 0 : -1}
|
tabIndex={isSelected ? 0 : -1}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
isActive && '!text-text',
|
||||||
'!px-1.5 !w-auto',
|
'!px-1.5 !w-auto',
|
||||||
!isActive && 'opacity-disabled',
|
|
||||||
'focus:ring-border-focus',
|
'focus:ring-border-focus',
|
||||||
)}
|
)}
|
||||||
key={i}
|
key={i}
|
||||||
|
|||||||
Reference in New Issue
Block a user