-
{{ questionText }}
+
+ {{ questionText }}
-
With Error (class="has-error"):
+ With icon aligned left
+
+
+
+
+
+
With icon aligned right
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 14bb4a062..0d98f6698 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -13,6 +13,7 @@ import ComponentTest from "@/layouts/component-test/component-test.vue";
import AddressPOC from "@/layouts/address-poc/address-poc.vue";
import FormTest from "@/layouts/form-test/form-test.vue";
import NestedRadio from "@/layouts/nested-radio-poc/nested-radio.vue";
+import buttonQuestionExamples from "@/layouts/button-question-examples/button-question-examples.vue"
const routes = [
{
@@ -40,6 +41,11 @@ const routes = [
name: "NestedRadio",
component: NestedRadio,
},
+ {
+ path: "/button-question-examples", // This is a temporary route for testing.
+ name: "buttonQuestionExamples",
+ component: buttonQuestionExamples,
+ },
{
path: "/",
name: "root",
diff --git a/src/ux-components/checkbox/checkbox.vue b/src/ux-components/checkbox/checkbox.vue
index 73eb562bf..448be5859 100644
--- a/src/ux-components/checkbox/checkbox.vue
+++ b/src/ux-components/checkbox/checkbox.vue
@@ -41,9 +41,16 @@ export default {
&:checked {
background-size: 125%;
border: 1px solid $blue;
+ + label {
+ p {
+ font-weight: 500;
+ font-size: .875rem;
+ color: $black;
+ }
+ }
}
&:focus {
- box-shadow: 0 0 0 4px $blue-300;
+ box-shadow: 0 0 0 2.5px $blue;
}
}
&:hover {
@@ -51,5 +58,10 @@ export default {
box-shadow: 0 0 0 4px $blue-300;
}
}
+ p {
+ font-weight: 400;
+ font-size: .875rem;
+ color: $gray-600;
+ }
}
diff --git a/src/ux-components/list-card/list-card.spec.js b/src/ux-components/list-card/list-card.spec.js
index a345c7b18..2176e683d 100644
--- a/src/ux-components/list-card/list-card.spec.js
+++ b/src/ux-components/list-card/list-card.spec.js
@@ -145,7 +145,7 @@ describe("list-card.vue", () => {
// Assert
const label = wrapper.find("label");
- expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-8"]);
+ expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4"]);
});
it("Should return flex row classes if isWide is true and checkboxTop if buttonLabelSubCopy is true", async () => {
@@ -167,7 +167,7 @@ describe("list-card.vue", () => {
// Assert
const label = wrapper.find("label");
- expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-8", "checkboxTop"]);
+ expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4", "checkboxTop"]);
});
it("Should return flex column classes if isWide is false", async () => {
diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue
index b091ba259..b94ba4863 100644
--- a/src/ux-components/list-card/list-card.vue
+++ b/src/ux-components/list-card/list-card.vue
@@ -85,7 +85,7 @@ export default {
computed: {
getLabelClasses() {
if (this.isWide) {
- let classes = "flex-row py-r ps-3 pe-8";
+ let classes = "flex-row py-r ps-3 pe-4";
if (this.buttonLabelSubCopy) {
classes += " checkboxTop";
}
diff --git a/src/ux-components/radio/radio.vue b/src/ux-components/radio/radio.vue
index 6b0fa291d..99629a39b 100644
--- a/src/ux-components/radio/radio.vue
+++ b/src/ux-components/radio/radio.vue
@@ -97,9 +97,16 @@ export default {
background-size: 71%;
border: 1px solid $blue;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' xml:space='preserve'%3e%3ccircle cx='25' cy='25' r='25' fill='%231574A1'/%3e%3c/svg%3e");
+ + label {
+ p {
+ font-weight: 500;
+ font-size: .875rem;
+ color: $black;
+ }
+ }
}
&:focus {
- box-shadow: 0 0 0 4px $blue-300;
+ box-shadow: 0 0 0 2.5px $blue;
}
}
&:hover {
@@ -107,5 +114,10 @@ export default {
box-shadow: 0 0 0 4px $blue-300;
}
}
+ p {
+ font-weight: 400;
+ font-size: .875rem;
+ color: $gray-600;
+ }
}