fix: text color in sales funnel report based on theme

(cherry picked from commit 61bc0925d5)

# Conflicts:
#	erpnext/selling/page/sales_funnel/sales_funnel.js
This commit is contained in:
ljain112
2024-08-12 17:09:39 +05:30
committed by Mergify
parent a5b5b5e62c
commit 25096185c9

View File

@@ -248,7 +248,11 @@ erpnext.SalesFunnel = class SalesFunnel {
context.fill();
// draw text
<<<<<<< HEAD
context.fillStyle = "";
=======
context.fillStyle = getComputedStyle(document.body).getPropertyValue("--text-color");
>>>>>>> 61bc0925d5 (fix: text color in sales funnel report based on theme)
context.textBaseline = "middle";
context.font = "1.1em sans-serif";
context.fillText(__(title), width + 20, y_mid);