Commit f487cf10 authored by isstuev's avatar isstuev

tag theme fix

parent c9157c28
......@@ -25,12 +25,13 @@ const variants = {
color: 'blue.400',
opacity: 0.76,
},
},
})),
selectActive: definePartsStyle((props) => ({
container: {
bg: mode('blue.500', 'blue.900')(props),
color: 'whiteAlpha.800',
[`
&[data-selected=true],
&[data-selected=true][aria-selected=true]
`]: {
bg: mode('blue.500', 'blue.900')(props),
color: 'whiteAlpha.800',
},
},
})),
};
......
......@@ -34,12 +34,13 @@ const TagGroupSelect = <T extends string>({ items, value, isMulti, onChange }: P
return (
<HStack>
{ items.map(item => {
const isActive = isMulti ? value.includes(item.id) : value === item.id;
const isSelected = isMulti ? value.includes(item.id) : value === item.id;
return (
<Tag
variant="select"
key={ item.id }
data-id={ item.id }
variant={ isActive ? 'selectActive' : 'select' }
data-selected={ isSelected }
fontWeight={ 500 }
cursor="pointer"
onClick={ onItemClick }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment