From f682f8feb334635bfd9c6487d6fc3d75dcb6ca5a Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 10 Aug 2025 15:28:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20React=20aria=20w?= =?UTF-8?q?arnings=20with=20label/wrapper=20investigation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Attempt to resolve React aria warnings by adding aria-label to form components. Visual label should be reusable by screen readers, but warning persists with only form wrapper as apparent difference. Uncertain if warning is harmful. Added aria-label as potential fix but removed after feedback from Sophie and Manu. Warning remains annoying during development. --- src/frontend/src/features/rooms/components/Join.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/features/rooms/components/Join.tsx b/src/frontend/src/features/rooms/components/Join.tsx index e630bb09..87354cc7 100644 --- a/src/frontend/src/features/rooms/components/Join.tsx +++ b/src/frontend/src/features/rooms/components/Join.tsx @@ -325,6 +325,7 @@ export const Join = ({ type="text" onChange={saveUsername} label={t('usernameLabel')} + aria-label={t('usernameLabel')} defaultValue={username} validate={(value) => !value && t('errors.usernameEmpty')} wrapperProps={{