Skip to content

Commit

Permalink
Merge pull request #24 from joshsylvester/UI-1856
Browse files Browse the repository at this point in the history
2.2.0 Add ability to override stroke-width by css var
  • Loading branch information
arongraham-ge authored Aug 7, 2018
2 parents 38d1abb + 47b623e commit 0d9e626
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v2.2.0
=======
* allow user to override stroke-width by css var

v2.1.11
=======
* add px-vis:reset
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions px-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down

0 comments on commit 0d9e626

Please sign in to comment.