From 8dcebc08ca7800ac3aeb93c80b67dae80f4643b7 Mon Sep 17 00:00:00 2001 From: ChloeGarciaMillerand Date: Mon, 24 Aug 2026 18:05:45 +0200 Subject: [PATCH] fix: ESLint errors relating to accessibility in account preferences (#49301) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Improve toggle accessibility and `aria-label` for screen readers. ## What is the current behavior? Toggles have no accessible name or description because FormItemLayout is not properly linked to the Switch. An `aria-label` was missing. ## What is the new behavior? An `aria-label` and IDs have been added to associate the label with the switch and make the toggles accessible to screen readers. ## Additional context No visual changes have been made. ## Summary by CodeRabbit * **Accessibility** * Improved screen reader labels for password visibility controls. * Linked preference labels with their corresponding toggle controls. * Added descriptive identifiers to telemetry, dashboard, and hotkey settings for easier navigation. --- .../interfaces/Account/Preferences/AddPasswordRow.tsx | 1 + .../interfaces/Account/Preferences/AnalyticsSettings.tsx | 2 ++ .../interfaces/Account/Preferences/DashboardToggle.tsx | 8 +++++++- .../interfaces/Account/Preferences/HotkeyToggle.tsx | 5 ++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx index 825d034c785..f73dd41e0e9 100644 --- a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx +++ b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx @@ -120,6 +120,7 @@ const AddPasswordForm = ({ email, onClose }: { email: string; onClose: () => voi actions={