Skip to content

Commit

Permalink
Remove the aria-labelledby attribute from DateInput fields (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeb-nhs authored Aug 9, 2024
1 parent 9610acb commit 16d417f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ exports[`DateInput matches snapshot 1`] = `
Day
</label>
<input
aria-labelledby="testInput-day--label"
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-2"
id="testInput-day"
inputmode="numeric"
Expand All @@ -48,7 +47,6 @@ exports[`DateInput matches snapshot 1`] = `
Month
</label>
<input
aria-labelledby="testInput-month--label"
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-2"
id="testInput-month"
inputmode="numeric"
Expand All @@ -73,7 +71,6 @@ exports[`DateInput matches snapshot 1`] = `
Year
</label>
<input
aria-labelledby="testInput-year--label"
class="nhsuk-input nhsuk-date-input__input nhsuk-input--width-4"
id="testInput-year"
inputmode="numeric"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const IndividualDateInput: FC<IndividualDateInputProps> = ({
value={inputValue}
defaultValue={inputDefaultValue}
id={inputID}
aria-labelledby={restLabelProps.id || `${inputID}--label`}
name={inputName}
onChange={handleChange}
ref={refCallback}
Expand Down

0 comments on commit 16d417f

Please sign in to comment.