@@ -44,26 +18,17 @@ import loader from "@/ux-components/loader/loader";
export default {
name: "radioHorizontal",
props: {
- groupName: String /* Required, unique for each radio button GROUP */,
- radioID:
- String /* Required, unique for each radio button. Used for button id, label and */,
- radioLabelSubCopy: String /* Optional, used for multi-line radio buttons */,
- textPosition:
- String /* Optional, use Bootstrap classes: text-start, text-center, text-end. Default (empty) is text-start */,
- errorMessage:
- String /* Optional, if there is an error message to be displayed */,
- loaderColor:
- String /* Specify color of loader/spinner. Options are blue, red, green, white, black. Default is blue */,
- loaderPosition:
- String /* Specify horizontal position of loader/spinner. Options are center, right, left */,
- sizeInRem: [
- Number,
- String,
- ] /* Specify size of loader/spinner in rem. Example: 1.5 (equals 24px (16x1.5)) */,
- totalInGroup:
- Number /* Required, total number of radio buttons in group. Used to tell first and last in group to apply border radius. */,
- positionInGroup:
- Number /* Rquired, position of radio button in group. Example, 1,2,3 */,
+ groupName: String, /* Required, unique for each radio button GROUP */
+ radioID: String, /* Required, unique for each radio button. Used for button id, label and */
+ radioLabelSubCopy: String, /* Optional, used for multi-line radio buttons */
+ screenReaderOnlyText: String, /* Optional, copy to be read by screenreader */
+ textPosition: String, /* Optional, use Bootstrap classes: text-start, text-center, text-end. Default (empty) is text-start */
+ errorMessage: String, /* Optional, if there is an error message to be displayed */
+ loaderColor: String, /* Specify color of loader/spinner. Options are blue, red, green, white, black. Default is blue */
+ loaderPosition: String, /* Specify horizontal position of loader/spinner. Options are center, right, left */
+ sizeInRem: [Number,String], /* Specify size of loader/spinner in rem. Example: 1.5 (equals 24px (16x1.5)) */
+ totalInGroup: Number, /* Required, total number of radio buttons in group. Used to tell first and last in group to apply border radius. */
+ positionInGroup: Number /* Rquired, position of radio button in group. Example, 1,2,3 */
},
data() {
return {
diff --git a/src/ux-components/radio/radio.spec.js b/src/ux-components/radio/radio.spec.js
index c1b726dca..c24f6a2a1 100644
--- a/src/ux-components/radio/radio.spec.js
+++ b/src/ux-components/radio/radio.spec.js
@@ -27,7 +27,7 @@ describe("radio.vue", () => {
type: "radio",
value: "2023",
name: "TestGroup",
- "aria-required": "true",
+ "aria-required": "false",
});
expect(label.attributes()).toEqual({
diff --git a/src/ux-components/radio/radio.vue b/src/ux-components/radio/radio.vue
index fbc7396b0..d38dcab37 100644
--- a/src/ux-components/radio/radio.vue
+++ b/src/ux-components/radio/radio.vue
@@ -1,40 +1,15 @@
-
-
-
-
-
-