From 0e0321b30e67f5a2f094318382e7d169b954f122 Mon Sep 17 00:00:00 2001 From: bmauger Date: Thu, 9 Dec 2021 16:26:28 -0500 Subject: [PATCH] CSR-186 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Indicate that clicking a radio-button takes the user somewhere Add a fieldset around the radio button group Update the loader to indicate that it’s loading Update the page-header component to use a new color: Gray 550 (#727676) --- .../radio-question/radio-question.vue | 11 +++--- src/layouts/component-test/component-test.vue | 12 +++++++ src/layouts/vehicle-year/vehicle-year.vue | 36 +++++++++---------- .../year-question/year-question.vue | 7 ++-- src/styles/ux-variables.scss | 1 + src/ux-components/header/header.vue | 8 ++++- src/ux-components/loader/loader.vue | 2 ++ .../radio-horizontal/radio-horizontal.vue | 2 ++ src/ux-components/radio/radio.vue | 6 ++-- 9 files changed, 55 insertions(+), 30 deletions(-) diff --git a/src/common-components/radio-question/radio-question.vue b/src/common-components/radio-question/radio-question.vue index 1abf5bb0f..0a04f49cf 100644 --- a/src/common-components/radio-question/radio-question.vue +++ b/src/common-components/radio-question/radio-question.vue @@ -6,8 +6,8 @@ }}
-
-

Vehicle Year

+
+ {{groupName}} -
+
@@ -33,7 +33,8 @@ export default { props: { questionText: String, answers: Array, - modelValue: String + modelValue: String, + groupName: String }, methods: { chooseAnswer(answer) { diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index d1b96ff23..38391ac59 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -86,6 +86,7 @@ loaderColor="blue" loaderPosition="right" sizeInRem="1" + screenReaderOnlyText="(opens new window)" /> @@ -128,6 +131,7 @@ loaderColor="blue" loaderPosition="right" sizeInRem="1" + screenReaderOnlyText="(opens new window)" /> @@ -170,6 +176,7 @@ loaderColor="blue" loaderPosition="right" sizeInRem="1" + screenReaderOnlyText="(opens new window)" /> @@ -214,6 +223,7 @@ sizeInRem="1" v-bind:totalInGroup="3" v-bind:positionInGroup="1" + screenReaderOnlyText="(opens new window)" /> diff --git a/src/layouts/vehicle-year/vehicle-year.vue b/src/layouts/vehicle-year/vehicle-year.vue index 4da235fcc..470acc446 100644 --- a/src/layouts/vehicle-year/vehicle-year.vue +++ b/src/layouts/vehicle-year/vehicle-year.vue @@ -1,10 +1,12 @@ @@ -66,8 +68,8 @@ export default { watch: { selectedYear(year) { - this.$store.commit(this.storeMutations.UPDATE_YEAR, year); - this.$router.push('?fmgPage=vehicle-make'); + this.$store.commit(this.storeMutations.UPDATE_YEAR, year); + this.$router.push('?fmgPage=vehicle-make'); } }, @@ -81,15 +83,13 @@ export default { diff --git a/src/layouts/vehicle-year/year-question/year-question.vue b/src/layouts/vehicle-year/year-question/year-question.vue index 4c5bb8d30..b6af42a07 100644 --- a/src/layouts/vehicle-year/year-question/year-question.vue +++ b/src/layouts/vehicle-year/year-question/year-question.vue @@ -1,7 +1,8 @@ @@ -18,7 +19,7 @@ export default { }, props: { questionText: String, - years: Array, + years: Array, modelValue: String }, components: { diff --git a/src/styles/ux-variables.scss b/src/styles/ux-variables.scss index a6e84d369..a9857c420 100644 --- a/src/styles/ux-variables.scss +++ b/src/styles/ux-variables.scss @@ -54,6 +54,7 @@ $gray-200: #E3E4E4;// Used in theme $gray-300: #D2D4D4; $gray: #B0B3B3;// Default Gray $gray-500: #8E9292;// Used in theme +$gray-550: #727676;// Used in theme $gray-600: #4D5151;// Used in theme $gray-700: #303333;// Used in theme $gray-800: #222424;// Used in theme diff --git a/src/ux-components/header/header.vue b/src/ux-components/header/header.vue index 0749c0462..3395a7e93 100644 --- a/src/ux-components/header/header.vue +++ b/src/ux-components/header/header.vue @@ -1,7 +1,7 @@ @@ -14,3 +14,9 @@ export default { }, }; + + diff --git a/src/ux-components/loader/loader.vue b/src/ux-components/loader/loader.vue index 66ac9bc85..0170fe468 100644 --- a/src/ux-components/loader/loader.vue +++ b/src/ux-components/loader/loader.vue @@ -1,5 +1,7 @@