From c87f673c4c40853df6de33ddd168ee2f1617e4ce Mon Sep 17 00:00:00 2001 From: ChloeGarciaMillerand Date: Mon, 6 Jul 2026 16:59:40 +0200 Subject: [PATCH] Fix: improve accessibility for icon buttons (database menu) (#47531) ## 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? Bug fix (accessibility improvement) ## What is the current behavior? Icon-only buttons do not have explicit accessible names for screen readers or tooltips. ## What is the new behavior? All icon-only buttons now have explicit accessible names using visually hidden text (sr-only), ensuring proper screen reader support. ## Additional context Tooltip text is preserved or added for visual users. No visual changes were introduced. ## Summary by CodeRabbit * **Tests** * Tightened end-to-end checks for policy creation so policy names must match exactly in the list. * Improved validation coverage for SELECT, INSERT, UPDATE, and DELETE policy flows, reducing the chance of false-positive test matches. --- .../interfaces/Database/Indexes/Indexes.tsx | 22 +++++++++++------ .../Policies/PolicyTableRow/PolicyRow.tsx | 22 ++++++++++------- .../interfaces/Database/Roles/RoleRow.tsx | 24 ++++++++++++------- .../interfaces/Database/Tables/TableList.tsx | 21 +++++++++------- e2e/studio/features/rls-policies.spec.ts | 8 +++---- 5 files changed, 62 insertions(+), 35 deletions(-) diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx index 7c9dc433c26..86958d4846c 100644 --- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx +++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx @@ -14,6 +14,9 @@ import { TableHead, TableHeader, TableRow, + Tooltip, + TooltipContent, + TooltipTrigger, } from 'ui' import { Input } from 'ui-patterns/DataInputs/Input' import { ConfirmationModal } from 'ui-patterns/Dialogs/ConfirmationModal' @@ -264,13 +267,18 @@ export const Indexes = () => { View definition {!isSchemaLocked && ( -