Skip to content

Commit

Permalink
fix: text color in sales funnel report based on theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Aug 12, 2024
1 parent deccb00 commit 61bc092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/page/sales_funnel/sales_funnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61bc092

Please sign in to comment.