mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Fix tooltip trend color
This commit is contained in:
@@ -399,8 +399,14 @@ export default class extends Controller {
|
||||
|
||||
_tooltipTrendColor(datum) {
|
||||
return {
|
||||
up: tailwindColors.success,
|
||||
down: tailwindColors.error,
|
||||
up:
|
||||
datum.trend.favorable_direction === "up"
|
||||
? tailwindColors.success
|
||||
: tailwindColors.error,
|
||||
down:
|
||||
datum.trend.favorable_direction === "down"
|
||||
? tailwindColors.success
|
||||
: tailwindColors.error,
|
||||
flat: tailwindColors.gray[500],
|
||||
}[datum.trend.direction];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user