From 8308b9fd90c3f19fe405c72dd9915001369af5ae Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 15 Dec 2020 16:37:13 +0530 Subject: [PATCH] feat: default to css vars in makeText --- src/js/utils/draw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils/draw.js b/src/js/utils/draw.js index d1b4557..da3c943 100644 --- a/src/js/utils/draw.js +++ b/src/js/utils/draw.js @@ -277,7 +277,7 @@ export function legendDot(x, y, size, radius, fill = 'none', label, value, font_ export function makeText(className, x, y, content, options = {}) { let fontSize = options.fontSize || FONT_SIZE; let dy = options.dy !== undefined ? options.dy : (fontSize / 2); - let fill = options.fill || FONT_FILL; + let fill = options.fill || "var(--charts-label-color)"; let textAnchor = options.textAnchor || 'start'; return createSVG('text', { className: className,