Merge pull request #42726 from ljain112/sales-funnel

fix: text color in sales funnel report based on theme
This commit is contained in:
ruthra kumar
2024-08-13 14:05:08 +05:30
committed by GitHub

View File

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