Skip to content

Commit

Permalink
use currentColor for default line color
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Jan 21, 2024
1 parent 899fed7 commit 7beddd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chrisburnell/svg-sparkline",
"version": "0.0.5",
"version": "0.0.6",
"description": "A Web Component for building an SVG Sparkline.",
"main": "svg-sparkline.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion svg-sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SVGSparkline extends HTMLElement {
this.values = this.getAttribute("values").split(",")
this.width = parseFloat(this.getAttribute("width")) || 160
this.height = parseFloat(this.getAttribute("height")) || 28
this.color = this.getAttribute("color") || window.getComputedStyle(this).getPropertyValue("color")
this.color = this.getAttribute("color") || "currentColor"
this.curve = this.getAttribute("curve") === "true"
this.animationDuration = this.getAttribute("animation-duration") || "1s"
this.endpoint = this.getAttribute("endpoint") !== "false"
Expand Down

0 comments on commit 7beddd6

Please sign in to comment.