Skip to content

Commit

Permalink
fix: hover colors barlist
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Mar 27, 2024
1 parent 260fd86 commit 1613fb2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/vis-elements/BarList/BarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,15 @@ function BarListInner<T>(props: BarListProps<T>, ref: React.ForwardedRef<HTMLDiv
"flex items-center rounded transition-all bg-opacity-40",
rowHeight,
item.color || color
? getColorClassNames(item.color ?? (color as Color), colorPalette.background)
.bgColor
? [
getColorClassNames(item.color ?? (color as Color), colorPalette.background)
.bgColor,
onValueChange ? "group-hover:bg-opacity-30" : "",
]
: "bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle/60",
onValueChange && !(item.color || color)
? "group-hover:bg-tremor-brand-subtle/30 group-hover:dark:bg-dark-tremor-brand-subtle/70"
: "group-hover:bg-opacity-80",
: "",
// margin and duration
index === sortedData.length - 1 ? "mb-0" : "",
showAnimation ? "duration-500" : "",
Expand Down

0 comments on commit 1613fb2

Please sign in to comment.