From 16d417f596601130c7a4f5099b63fbe060b0f316 Mon Sep 17 00:00:00 2001
From: Jake Barron <150710532+jakeb-nhs@users.noreply.github.com>
Date: Fri, 9 Aug 2024 11:12:12 +0100
Subject: [PATCH] Remove the aria-labelledby attribute from DateInput fields
(#246)
---
.../date-input/__tests__/__snapshots__/DateInput.test.tsx.snap | 3 ---
.../date-input/components/IndividualDateInputs.tsx | 1 -
2 files changed, 4 deletions(-)
diff --git a/src/components/form-elements/date-input/__tests__/__snapshots__/DateInput.test.tsx.snap b/src/components/form-elements/date-input/__tests__/__snapshots__/DateInput.test.tsx.snap
index a93db7f9..35d7d457 100644
--- a/src/components/form-elements/date-input/__tests__/__snapshots__/DateInput.test.tsx.snap
+++ b/src/components/form-elements/date-input/__tests__/__snapshots__/DateInput.test.tsx.snap
@@ -23,7 +23,6 @@ exports[`DateInput matches snapshot 1`] = `
Day
= ({
value={inputValue}
defaultValue={inputDefaultValue}
id={inputID}
- aria-labelledby={restLabelProps.id || `${inputID}--label`}
name={inputName}
onChange={handleChange}
ref={refCallback}