diff --git a/src/components/Header/components/__snapshots__/HeaderSearchForm.test.tsx.snap b/src/components/Header/components/__snapshots__/HeaderSearchForm.test.tsx.snap index 9d9aae010..cb932117b 100644 --- a/src/components/Header/components/__snapshots__/HeaderSearchForm.test.tsx.snap +++ b/src/components/Header/components/__snapshots__/HeaderSearchForm.test.tsx.snap @@ -102,10 +102,12 @@ exports[`HeaderSearchForm renders the UI snapshot correctly 1`] = ` > Type of search
@@ -403,10 +405,12 @@ exports[`HeaderSearchForm renders the UI snapshot correctly 2`] = ` > Type of search
diff --git a/src/components/RadioGroup/RadioGroup.tsx b/src/components/RadioGroup/RadioGroup.tsx index 1c07eac78..1d363328b 100644 --- a/src/components/RadioGroup/RadioGroup.tsx +++ b/src/components/RadioGroup/RadioGroup.tsx @@ -104,6 +104,7 @@ export const RadioGroup: ChakraComponent< }); // Props for the `ChakraRadioGroup` component. const radioGroupProps = { + ["aria-labelledby"]: `rg-span-title-${id}`, name, onChange: (selected: string) => { setValue(selected); @@ -154,7 +155,7 @@ export const RadioGroup: ChakraComponent< {...rest} __css={styles} > - + {labelText} {showRequiredLabel && isRequired && (required)} diff --git a/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap b/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap index 9e26437e9..20e6d646f 100644 --- a/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +++ b/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap @@ -7,10 +7,12 @@ exports[`Radio Button renders the UI snapshot correctly 1`] = ` > column
@@ -150,10 +152,12 @@ exports[`Radio Button renders the UI snapshot correctly 2`] = ` > row
@@ -293,10 +297,12 @@ exports[`Radio Button renders the UI snapshot correctly 3`] = ` > no label
@@ -436,10 +442,12 @@ exports[`Radio Button renders the UI snapshot correctly 4`] = ` > helperText
@@ -584,10 +592,12 @@ exports[`Radio Button renders the UI snapshot correctly 5`] = ` > invalidText
@@ -727,10 +737,12 @@ exports[`Radio Button renders the UI snapshot correctly 6`] = ` > no optional or required label
@@ -872,6 +884,7 @@ exports[`Radio Button renders the UI snapshot correctly 7`] = ` > required @@ -879,6 +892,7 @@ exports[`Radio Button renders the UI snapshot correctly 7`] = `
@@ -1020,10 +1034,12 @@ exports[`Radio Button renders the UI snapshot correctly 8`] = ` > invalid
@@ -1171,10 +1187,12 @@ exports[`Radio Button renders the UI snapshot correctly 9`] = ` > disabled
@@ -1322,10 +1340,12 @@ exports[`Radio Button renders the UI snapshot correctly 10`] = ` > RadioGroup example
@@ -1489,10 +1509,12 @@ exports[`Radio Button renders the UI snapshot correctly 11`] = ` > chakra
@@ -1633,10 +1655,12 @@ exports[`Radio Button renders the UI snapshot correctly 12`] = ` > props