Skip to content

Commit

Permalink
Merge pull request #160 from City-of-Helsinki/fix/icon-size
Browse files Browse the repository at this point in the history
[Fix] Icon size bug
  • Loading branch information
niglu1 authored Jun 3, 2020
2 parents 5b9d597 + 65cf415 commit 7ae8588
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.11.1] - June 2, 2020
### Core
#### Fixed
- [Icons] Sizing bug

### React
#### Fixed
- [Icons] Sizing bug

## [0.11.0] - June 2, 2020
### Core
#### Breaking changes
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-core",
"version": "0.11.0",
"version": "0.11.1",
"description": "Core styles for the Helsinki Design System",
"author": "Anssi Lehtonen <lehtovaaralainen@gmail.com>",
"contributors": [
Expand Down Expand Up @@ -28,7 +28,7 @@
"@storybook/addons": "6.0.0-beta.13",
"@storybook/html": "6.0.0-beta.13",
"copyfiles": "2.2.0",
"hds-design-tokens": "0.11.0",
"hds-design-tokens": "0.11.1",
"normalize.css": "8.0.1",
"postcss": "7.0.30",
"postcss-cli": "7.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/icons/icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
--icon-size: 100%;
display: inline-block;
background-color: currentColor;
width: var(--size);
height: var(--size);
width: var(--icon-size);
height: var(--icon-size);
mask-repeat: no-repeat;
mask-position: center;
mask-size: auto;
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-design-tokens",
"version": "0.11.0",
"version": "0.11.1",
"description": "Design tokens for the Helsinki Design System",
"author": "Niclas Liimatainen <niclas.liimatainen@digia.com>",
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-react",
"version": "0.11.0",
"version": "0.11.1",
"license": "MIT",
"main": "lib/index.js",
"module": "lib-esm/index.js",
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"dependencies": {
"downshift": "5.4.0",
"hds-core": "0.11.0",
"hds-core": "0.11.1",
"lodash.isequal": "4.5.0",
"lodash.uniqueid": "4.0.1",
"react-spring": "8.0.27"
Expand Down
8 changes: 4 additions & 4 deletions site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "0.11.0",
"version": "0.11.1",
"private": true,
"description": "Documentation for Helsinki Design System",
"license": "MIT",
Expand All @@ -22,9 +22,9 @@
"devDependencies": {
"gatsby-cli": "2.12.29",
"gatsby-plugin-matomo": "0.8.3",
"hds-core": "0.11.0",
"hds-design-tokens": "0.11.0",
"hds-react": "0.11.0",
"hds-core": "0.11.1",
"hds-design-tokens": "0.11.1",
"hds-react": "0.11.1",
"react-helmet": "6.0.0",
"rimraf": "3.0.2"
}
Expand Down

0 comments on commit 7ae8588

Please sign in to comment.