From 47b623eb536fe44a5f3cd7ef5df3b62ec83094c4 Mon Sep 17 00:00:00 2001 From: josh sylvester Date: Fri, 13 Jul 2018 19:35:18 -0700 Subject: [PATCH] 2.2.0 added ability to override stroke width by css var --- HISTORY.md | 4 ++++ package.json | 2 +- px-icon.html | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 36a5792..baf136a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,7 @@ +v2.2.0 +======= +* allow user to override stroke-width by css var + v2.1.11 ======= * add px-vis:reset diff --git a/package.json b/package.json index 62e9e31..b0fc793 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "px-icon-set", - "version": "2.1.11", + "version": "2.2.0", "description": "Base icon styles for Predix UI", "private": false, "scripts": { diff --git a/px-icon.html b/px-icon.html index 86e3d45..555f8d3 100644 --- a/px-icon.html +++ b/px-icon.html @@ -25,6 +25,7 @@ /* Create some vars we can manipulate asour icons change*/ --px-icon-default-width: 22px; --px-icon-default-height: 22px; + --px-icon-stroke-width: 1; /* Update iron-icon vars so we can overwrite */ --iron-icon-width: var(--px-icon-default-width); @@ -45,6 +46,7 @@ width: var(--iron-icon-width); height: var(--iron-icon-height); + stroke-width: var(--px-icon-stroke-width); @apply --iron-icon; } /* Also copied exactly from iron-icon */