mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Heatmap: fix color scheme reversal (#56227)
This commit is contained in:
parent
f7c6fe0c97
commit
eeb31c2901
@ -97,13 +97,16 @@ export function quantizeScheme(opts: HeatmapColorOptions, theme: GrafanaTheme2):
|
||||
}
|
||||
|
||||
if (
|
||||
opts.reverse ||
|
||||
scheme.invert === 'always' ||
|
||||
(scheme.invert === 'dark' && theme.isDark) ||
|
||||
(scheme.invert === 'light' && theme.isLight)
|
||||
) {
|
||||
palette.reverse();
|
||||
}
|
||||
|
||||
if (opts.reverse) {
|
||||
palette.reverse();
|
||||
}
|
||||
}
|
||||
|
||||
return palette;
|
||||
|
Loading…
Reference in New Issue
Block a user