From c5bd8b7944961e0abb4d080c1312e181ba19c435 Mon Sep 17 00:00:00 2001 From: Shanna Murry Date: Tue, 10 Jan 2023 12:05:01 -0500 Subject: [PATCH] Dang-1757/RadioButton & RadioButtonLarge design update (#361) * default state for default radio button * hover state * active state * error state for default radio buttons * font weights for label, typography for helper text * disabled states for default radio buttons * work on spacing for large buttons * large button default and active state; hover state; selected state * disabled state for large radio buttons * error state for large radio buttons * working on spacing * forgot to commit for several hours - so not sure what this entails - outline stuff for focus states * refresh * pr suggestions * change dotted outline to dashed * remove div wrapper - add v-if to helper text * fix height issue * update height stuff on large radio buttons * remove empty class * add customOutline class so that the outline shows only on tabbing * package version & changelog Co-authored-by: Myrtle Co-authored-by: Myrtle <50080618+Mrtly@users.noreply.github.com> --- CHANGELOG.md | 7 + package-lock.json | 4 +- package.json | 2 +- .../RadioButton/RadioButton.stories.js | 4 +- src/components/RadioButton/RadioButton.vue | 151 +++++------- .../RadioButtonLarge.stories.js | 17 -- .../RadioButtonLarge/RadioButtonLarge.vue | 217 +++++++++++------- .../RadioGroup/RadioGroup.stories.js | 7 +- src/components/RadioGroup/RadioGroup.vue | 16 +- 9 files changed, 221 insertions(+), 204 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2290ee095..f47957135 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## v2.0.0-beta.28 + +### Features + +`RadioButton` and `RadioButtonLarge` design updates + ## v2.0.0-beta.27 ### Features @@ -11,6 +17,7 @@ changes the `LoadingIndicator` background color to transparent ### Bug fixes Restores the Badge background color + ## v2.0.0-beta.25 ### Features diff --git a/package-lock.json b/package-lock.json index 84a924f84..f233c8225 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lob/ui-components", - "version": "2.0.0-beta.27", + "version": "2.0.0-beta.28", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lob/ui-components", - "version": "2.0.0-beta.27", + "version": "2.0.0-beta.28", "dependencies": { "date-fns": "^2.29.3", "date-fns-holiday-us": "^0.3.1", diff --git a/package.json b/package.json index e22d5b02b..c7aed6676 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lob/ui-components", - "version": "2.0.0-beta.27", + "version": "2.0.0-beta.28", "engines": { "node": ">=14.18.2", "npm": ">=8.3.0" diff --git a/src/components/RadioButton/RadioButton.stories.js b/src/components/RadioButton/RadioButton.stories.js index 1f3676553..397f42678 100644 --- a/src/components/RadioButton/RadioButton.stories.js +++ b/src/components/RadioButton/RadioButton.stories.js @@ -34,7 +34,7 @@ const WithHelperTextTemplate = (args, { argTypes }) => ({ components: { RadioButton }, data: () => ({ vModel }), setup: () => ({ args }), - template: '' + template: '
' }); export const WithHelperText = WithHelperTextTemplate.bind({}); @@ -43,5 +43,5 @@ WithHelperText.args = { id: '4x6', label: '4x6', value: '4x6', - helperText: 'Standard Postcard Size' + helperText: 'Standard Postcard Size and a second line of text' }; diff --git a/src/components/RadioButton/RadioButton.vue b/src/components/RadioButton/RadioButton.vue index 421d1da1d..0696674e3 100644 --- a/src/components/RadioButton/RadioButton.vue +++ b/src/components/RadioButton/RadioButton.vue @@ -1,10 +1,10 @@