File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/components/form-elements/radios Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ :wrench : ** Fixes**
6+ * Remove the unnecessary aria-labelledby tags from radio items. PR [ #253 ] ( https://github.com/NHSDigital/nhsuk-react-components/pull/253 )
7+
8+
59## 4.1.2 - 3 September 2024
610
711:wrench : ** Fixes**
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ exports[`Radios matches snapshot 1`] = `
1313 class = " nhsuk-radios__item"
1414 >
1515 <input
16- aria-labelledby = " example-1--label"
1716 class = " nhsuk-radios__input"
1817 id = " example-1"
1918 name = " example"
@@ -32,7 +31,6 @@ exports[`Radios matches snapshot 1`] = `
3231 class = " nhsuk-radios__item"
3332 >
3433 <input
35- aria-labelledby = " example-2--label"
3634 class = " nhsuk-radios__input"
3735 id = " example-2"
3836 name = " example"
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ const Radio: FC<RadioProps> = ({
5959 className = { classNames ( 'nhsuk-radios__input' , className ) }
6060 id = { inputID }
6161 name = { name }
62- aria-labelledby = { children ? `${ inputID } --label` : undefined }
6362 aria-describedby = { hint ? `${ inputID } --hint` : undefined }
6463 checked = { checked }
6564 defaultChecked = { defaultChecked }
You can’t perform that action at this time.
0 commit comments