Skip to content

Commit 16d417f

Browse files
authored
Remove the aria-labelledby attribute from DateInput fields (#246)
1 parent 9610acb commit 16d417f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/components/form-elements/date-input/__tests__/__snapshots__/DateInput.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ exports[`DateInput matches snapshot 1`] = `
2323
Day
2424
</label>
2525
<input
26-
aria-labelledby="testInput-day--label"
2726
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-2"
2827
id="testInput-day"
2928
inputmode="numeric"
@@ -48,7 +47,6 @@ exports[`DateInput matches snapshot 1`] = `
4847
Month
4948
</label>
5049
<input
51-
aria-labelledby="testInput-month--label"
5250
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-2"
5351
id="testInput-month"
5452
inputmode="numeric"
@@ -73,7 +71,6 @@ exports[`DateInput matches snapshot 1`] = `
7371
Year
7472
</label>
7573
<input
76-
aria-labelledby="testInput-year--label"
7774
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-4"
7875
id="testInput-year"
7976
inputmode="numeric"

src/components/form-elements/date-input/components/IndividualDateInputs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ const IndividualDateInput: FC<IndividualDateInputProps> = ({
8787
value={inputValue}
8888
defaultValue={inputDefaultValue}
8989
id={inputID}
90-
aria-labelledby={restLabelProps.id || `${inputID}--label`}
9190
name={inputName}
9291
onChange={handleChange}
9392
ref={refCallback}

0 commit comments

Comments
 (0)