Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix tooltip a11y comment (#50640)

Gildas Garcia3669fef74972
diff --git a/apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx b/apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx
index ce42fa22472..91d1080dc99 100644
--- a/apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx
+++ b/apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx
@@ -233,7 +233,7 @@ export function CodeCopyButton({
className
)}
aria-label={label}
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
>
<CrossfadeIcon active={copied} activeIcon={Check} inactiveIcon={Copy} />
@@ -288,7 +288,7 @@ export function CodeBlockControls({ content }: { content: string }) {
'hover:bg-[var(--btn-active)]'
)}
aria-label={isWrapped ? 'Disable word wrap' : 'Enable word wrap'}
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
>
<CrossfadeIcon
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
index f4a5dbdead1..094838ff1b5 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
@@ -78,7 +78,7 @@ const EnumeratedTypeValueRow = <TFieldValues extends FieldValues>({
className="px-2"
onClick={() => onRemoveValue()}
aria-label="Remove value"
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
index efefb13a2b7..44011b6a0a6 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
@@ -45,7 +45,7 @@ export const FunctionEditor = ({
onClick={() => setFocused(!focused)}
icon={focused ? <Minimize2 /> : <Maximize2 />}
aria-label={focused ? 'Minimize editor' : 'Maximize editor'}
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
index 14d1c72a62c..98c26629d89 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
@@ -547,7 +547,7 @@ const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => {
onClick={() => remove(index)}
className="h-[34px] w-[34px]"
aria-label="Remove argument"
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index 356b0fbd423..fb2d9a56d14 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -107,7 +107,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
className="px-1"
icon={<MoreVertical />}
aria-label={`${x.name} actions`}
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
/>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
index f10afa33df2..ef8e216691c 100644
--- a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
@@ -379,7 +379,7 @@ export const ColumnList = ({
<DropdownMenuTrigger asChild>
<Button
aria-label={`Delete ${column.name} column`}
- // Tooltip repeats the label; the description would read the name twice
+ // Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
className="px-1"
icon={<MoreVertical />}