Merge pull request #42740 from frappe/mergify/bp/version-14-hotfix/pr-42726

fix: text color in sales funnel report based on theme (backport #42726)
This commit is contained in:
ruthra kumar
2024-08-13 16:49:01 +05:30
committed by GitHub

View File

@@ -248,7 +248,7 @@ erpnext.SalesFunnel = class SalesFunnel {
context.fill();
// draw text
context.fillStyle = "";
context.fillStyle = getComputedStyle(document.body).getPropertyValue("--text-color");
context.textBaseline = "middle";
context.font = "1.1em sans-serif";
context.fillText(__(title), width + 20, y_mid);