From ac93b8fc6006d1acb3405865a416afd43d87949a Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 11 Apr 2022 17:03:37 -0400 Subject: [PATCH 1/2] CSR-459: fixes to error focus direction and error styling --- .../button-question/button-question.vue | 4 +++- .../textbox-question/textbox-question.vue | 2 +- src/styles/common-error-styles.scss | 10 ---------- .../list-button-horizontal/list-button-horizontal.vue | 10 ++++++---- src/ux-components/list-button/list-button.vue | 5 ++--- src/ux-components/list-card/list-card.vue | 4 +--- 6 files changed, 13 insertions(+), 22 deletions(-) diff --git a/src/common-components/button-question/button-question.vue b/src/common-components/button-question/button-question.vue index 79937c780..7b208a51e 100644 --- a/src/common-components/button-question/button-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -6,7 +6,9 @@
- {{groupName}} + + {{(isMultiSelect && answers.length > 1) ? 'Select one or more options below.' : 'Select an option below.' }} +
-
+
@@ -11,7 +11,6 @@ :name="groupName" :value="value" :aria-required="isRequired" - :data-focus-target="groupName" v-model="checkValue" @change="!selectingInitiatesLoad ? handleCheckChange() : ''" /> @@ -143,11 +142,11 @@ export default { height: 0; position: absolute; &:focus-visible + label { - box-shadow: 0 0 0 2px $blue; + box-shadow: 0 0 0 2.5px $blue; z-index: 2; } &:focus + label { - box-shadow: 0 0 0 2px $blue; + box-shadow: 0 0 0 2.5px $blue; z-index: 3; } &:checked + label { @@ -156,6 +155,9 @@ export default { outline: none; z-index: 2; } + &:checked:focus + label { + box-shadow: 0 0 0 2.5px $blue; + } &:checked + label p:first-child { font-weight: 500; } diff --git a/src/ux-components/list-button/list-button.vue b/src/ux-components/list-button/list-button.vue index 775b19ff4..d48b2407d 100644 --- a/src/ux-components/list-button/list-button.vue +++ b/src/ux-components/list-button/list-button.vue @@ -1,7 +1,7 @@