From 79d9da43fd47c40b6ffb3eb3e266e23763aaaf1a Mon Sep 17 00:00:00 2001 From: Sebastian-Webster <84299475+Sebastian-Webster@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:37:57 +1200 Subject: [PATCH] fix(#4541): fixed transparent background not appearing with dark mode --- src/modules/Theme.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/Theme.js b/src/modules/Theme.js index b71ed3b78..0a1cfcccd 100644 --- a/src/modules/Theme.js +++ b/src/modules/Theme.js @@ -179,11 +179,11 @@ export default class Theme { options.chart = options.chart || {} options.tooltip = options.tooltip || {} const mode = options.theme.mode - const background = mode === 'dark' - ? '#424242' - : mode === 'light' - ? '#fff' - : options.chart.background || '#fff' + const background = options.chart.background + ? options.chart.background + : mode === 'dark' + ? '#424242' + : '#fff' const palette = mode === 'dark' ? 'palette4' : mode === 'light'