From 764bf9afb86c2ba82fc200ad38154b1043785821 Mon Sep 17 00:00:00 2001 From: Niclas Liimatainen Date: Fri, 5 Jun 2020 10:28:33 +0300 Subject: [PATCH 1/3] Remove redundant style imports causing browser console warnings --- packages/react/.storybook/preview.js | 1 + packages/react/src/components/button/Button.module.css | 2 -- packages/react/src/components/checkbox/Checkbox.module.css | 2 -- packages/react/src/components/dropdown/Dropdown.module.css | 2 -- .../react/src/components/radiobutton/RadioButton.module.css | 2 -- packages/react/src/components/textinput/TextInput.module.css | 2 -- 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/react/.storybook/preview.js b/packages/react/.storybook/preview.js index 8c1e7cc6ab..4660900d7b 100644 --- a/packages/react/.storybook/preview.js +++ b/packages/react/.storybook/preview.js @@ -3,6 +3,7 @@ import { Props, Stories, Title } from '@storybook/addon-docs/dist/blocks'; import { addParameters } from '@storybook/react'; import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; +import 'hds-core'; import './index.css'; const viewports = { diff --git a/packages/react/src/components/button/Button.module.css b/packages/react/src/components/button/Button.module.css index 647e1b6f97..7abdf21eba 100644 --- a/packages/react/src/components/button/Button.module.css +++ b/packages/react/src/components/button/Button.module.css @@ -1,5 +1,3 @@ -@import "hds-core"; - .button { composes: hds-button from 'hds-core/lib/components/button/button.css'; } diff --git a/packages/react/src/components/checkbox/Checkbox.module.css b/packages/react/src/components/checkbox/Checkbox.module.css index f536bb66a3..5c6d49bc79 100644 --- a/packages/react/src/components/checkbox/Checkbox.module.css +++ b/packages/react/src/components/checkbox/Checkbox.module.css @@ -1,5 +1,3 @@ -@import "hds-core"; - .checkbox { composes: hds-checkbox from 'hds-core/lib/components/checkbox/checkbox.css'; } diff --git a/packages/react/src/components/dropdown/Dropdown.module.css b/packages/react/src/components/dropdown/Dropdown.module.css index e68add5acb..129a5c344e 100644 --- a/packages/react/src/components/dropdown/Dropdown.module.css +++ b/packages/react/src/components/dropdown/Dropdown.module.css @@ -1,5 +1,3 @@ -@import "hds-core"; - .root { --border-radius: 2px; --border-width: 2px; diff --git a/packages/react/src/components/radiobutton/RadioButton.module.css b/packages/react/src/components/radiobutton/RadioButton.module.css index 38a650db2a..ca4a11fa42 100644 --- a/packages/react/src/components/radiobutton/RadioButton.module.css +++ b/packages/react/src/components/radiobutton/RadioButton.module.css @@ -1,5 +1,3 @@ -@import "hds-core"; - .radioButton { composes: hds-radio-button from 'hds-core/lib/components/radio-button/radio-button.css'; } diff --git a/packages/react/src/components/textinput/TextInput.module.css b/packages/react/src/components/textinput/TextInput.module.css index 1393cb7a76..2d3a1311f8 100644 --- a/packages/react/src/components/textinput/TextInput.module.css +++ b/packages/react/src/components/textinput/TextInput.module.css @@ -1,5 +1,3 @@ -@import "hds-core"; - .root { composes: hds-text-input from 'hds-core/lib/components/text-input/text-input.css'; position: relative; From ff74e1c3ce8fd6745f64cface9c6f16dca1f6f98 Mon Sep 17 00:00:00 2001 From: Niclas Liimatainen Date: Fri, 5 Jun 2020 11:10:24 +0300 Subject: [PATCH 2/3] Update package versions --- CHANGELOG.md | 5 +++++ packages/core/package.json | 4 ++-- packages/design-tokens/package.json | 2 +- packages/react/package.json | 4 ++-- site/package.json | 8 ++++---- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0953002178..a487af0cdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.11.2] - June 5, 2020 +### React +#### Fixed +- Removed redundant style imports causing browser console warnings + ## [0.11.1] - June 2, 2020 ### Core #### Fixed diff --git a/packages/core/package.json b/packages/core/package.json index 9c3a24eeb1..f8e16c5ddf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "hds-core", - "version": "0.11.1", + "version": "0.11.2", "description": "Core styles for the Helsinki Design System", "author": "Anssi Lehtonen ", "contributors": [ @@ -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.1", + "hds-design-tokens": "0.11.2", "normalize.css": "8.0.1", "postcss": "7.0.30", "postcss-cli": "7.1.1", diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json index cba4c410e4..a520e5b48f 100644 --- a/packages/design-tokens/package.json +++ b/packages/design-tokens/package.json @@ -1,6 +1,6 @@ { "name": "hds-design-tokens", - "version": "0.11.1", + "version": "0.11.2", "description": "Design tokens for the Helsinki Design System", "author": "Niclas Liimatainen ", "homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme", diff --git a/packages/react/package.json b/packages/react/package.json index 85eeab1a58..3e99d90b15 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "hds-react", - "version": "0.11.1", + "version": "0.11.2", "license": "MIT", "main": "lib/index.js", "module": "lib-esm/index.js", @@ -72,7 +72,7 @@ }, "dependencies": { "downshift": "5.4.0", - "hds-core": "0.11.1", + "hds-core": "0.11.2", "lodash.isequal": "4.5.0", "lodash.uniqueid": "4.0.1", "react-spring": "8.0.27" diff --git a/site/package.json b/site/package.json index d6d4cbadbb..801a01abb1 100644 --- a/site/package.json +++ b/site/package.json @@ -1,6 +1,6 @@ { "name": "site", - "version": "0.11.1", + "version": "0.11.2", "private": true, "description": "Documentation for Helsinki Design System", "license": "MIT", @@ -22,9 +22,9 @@ "devDependencies": { "gatsby-cli": "2.12.29", "gatsby-plugin-matomo": "0.8.3", - "hds-core": "0.11.1", - "hds-design-tokens": "0.11.1", - "hds-react": "0.11.1", + "hds-core": "0.11.2", + "hds-design-tokens": "0.11.2", + "hds-react": "0.11.2", "react-helmet": "6.0.0", "rimraf": "3.0.2" } From 22bcbc6e94bd0bce8a7291129fefde9859e56987 Mon Sep 17 00:00:00 2001 From: Niclas Liimatainen Date: Fri, 5 Jun 2020 13:08:54 +0300 Subject: [PATCH 3/3] Update change log --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a487af0cdb..cac677aae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [0.11.2] - June 5, 2020 +### Documentation site +#### Added +- Link to logo kit download to Visual elements/Logo page +- Statement to Accessibility page about which WCAG guideline version HDS follows + +#### Changed +- Moved Resources page to upper navigation level for better visibility +- External links now include icon +- External links now open to a new tab +- "Work in progress" text now uses current implementation of Notification component +- "Coming soon" text no longer uses block quote (text contrast was not accessible) +- Names of links to Visual Identity Guidelines now clearly state the page title + +#### Fixed +- Multiple typos +- Multiple links that pointed to old WCAG 2.0 now point to WCAG 2.1 version +- Blurry image on the Visual assets/Icons page + ### React +#### Added +- [Dropdown] `selectedOption` prop for controlling the selected option(s) of a dropdown + #### Fixed - Removed redundant style imports causing browser console warnings