The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): chip away explicit-tabindex ratchet debt (#48040)
Danny Whitee3d7267845d1
diff --git a/apps/learn/components/side-navigation-item.tsx b/apps/learn/components/side-navigation-item.tsxindex 664a822759b..0961fd40c7a 100644--- a/apps/learn/components/side-navigation-item.tsx+++ b/apps/learn/components/side-navigation-item.tsx@@ -93,6 +93,8 @@ const NavigationItem: React.FC<NavigationItemProps> = ({{hasChildren ? (<><button+ type="button"+ tabIndex={0}onClick={handleButtonClick}className={cn('w-full flex items-center justify-between gap-2 zans', itemClasses)}>diff --git a/apps/studio/.github/eslint-rule-baselines.json b/apps/studio/.github/eslint-rule-baselines.jsonindex c9717ecb62b..8a8bd15bd16 100644--- a/apps/studio/.github/eslint-rule-baselines.json+++ b/apps/studio/.github/eslint-rule-baselines.json@@ -19,8 +19,7 @@"jsx-a11y/tabindex-no-positive": 0,"jsx-a11y/anchor-is-valid": 7,"jsx-a11y/heading-has-content": 2,- "jsx-a11y/no-distracting-elements": 0,- "supabase/require-explicit-tabindex": 82+ "jsx-a11y/no-distracting-elements": 0},"ruleFiles": {"react-hooks/exhaustive-deps": {@@ -1060,72 +1059,6 @@"jsx-a11y/heading-has-content": {"components/layouts/Scaffold.tsx": 2},- "jsx-a11y/no-distracting-elements": {},- "supabase/require-explicit-tabindex": {- "components/grid/components/grid/ColumnHeader.tsx": 1,- "components/grid/components/header/sort/SortRow.tsx": 1,- "components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx": 1,- "components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx": 1,- "components/interfaces/BranchManagement/WorkflowLogs.tsx": 1,- "components/interfaces/Connect/OrganizationSelector.tsx": 1,- "components/interfaces/ConnectSheet/ConnectConfigSection.tsx": 1,- "components/interfaces/ConnectSheet/ConnectionParameters.tsx": 1,- "components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx": 1,- "components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx": 1,- "components/interfaces/Database/Privileges/PrivilegesTable.tsx": 1,- "components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx": 1,- "components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx": 1,- "components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotLagMetrics.tsx": 1,- "components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotStatus.tsx": 1,- "components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx": 1,- "components/interfaces/Database/Roles/RoleRow.tsx": 1,- "components/interfaces/Database/Roles/RolesList.tsx": 2,- "components/interfaces/Database/Triggers/TriggerSheet.tsx": 1,- "components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx": 1,- "components/interfaces/Functions/CommandRender.tsx": 1,- "components/interfaces/Functions/EdgeFunctionsListItem.tsx": 1,- "components/interfaces/Integrations/Integration/MarkdownContent.tsx": 1,- "components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx": 3,- "components/interfaces/LogDrains/LogDrainsCard.tsx": 1,- "components/interfaces/Observability/ServiceHealthTable.tsx": 1,- "components/interfaces/Organization/OrganizationCard.tsx": 1,- "components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx": 1,- "components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx": 6,- "components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx": 1,- "components/interfaces/ProjectHome/ConnectSection.tsx": 1,- "components/interfaces/ProjectHome/SortableSection.tsx": 1,- "components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx": 2,- "components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx": 2,- "components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx": 3,- "components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx": 1,- "components/interfaces/Storage/StorageExplorer/FileExplorerRowEditing.tsx": 1,- "components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx": 1,- "components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx": 1,- "components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx": 1,- "components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx": 1,- "components/interfaces/Support/AttachmentUpload.tsx": 3,- "components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx": 1,- "components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx": 3,- "components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx": 1,- "components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx": 1,- "components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuItem.tsx": 1,- "components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/TopLevelRouteItem.tsx": 1,- "components/layouts/TableEditorLayout/EntityListItem.tsx": 1,- "components/layouts/Tabs/CollapseButton.tsx": 1,- "components/layouts/Tabs/SortableTab.tsx": 1,- "components/layouts/Tabs/Tabs.tsx": 1,- "components/ui/AIAssistantPanel/ModelSelector.tsx": 1,- "components/ui/Charts/ChartHighlightActions.tsx": 1,- "components/ui/Charts/ComposedChart.utils.tsx": 1,- "components/ui/ComputeBadgeWrapper.tsx": 1,- "components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx": 2,- "components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx": 1,- "components/ui/DevToolbar/ProjectStatusTab.tsx": 1,- "components/ui/DevToolbar/ResourceWarningsTab.tsx": 2,- "components/ui/FeaturePreviewBadge.tsx": 1,- "components/ui/FilterPopover.tsx": 1,- "components/ui/PasswordStrengthBar.tsx": 1,- "components/ui/SingleStat.tsx": 1- }+ "jsx-a11y/no-distracting-elements": {}}}diff --git a/apps/studio/components/grid/components/grid/ColumnHeader.tsx b/apps/studio/components/grid/components/grid/ColumnHeader.tsxindex d5e528b7c38..306834fa840 100644--- a/apps/studio/components/grid/components/grid/ColumnHeader.tsx+++ b/apps/studio/components/grid/components/grid/ColumnHeader.tsx@@ -85,6 +85,7 @@ export function ColumnHeader<R>({<TooltipTrigger asChild><buttonclassName="flex items-center"+ tabIndex={0}onClick={() => openSheet(column.name as string)}><span className="sr-only">View {column.name} index suggestion</span>diff --git a/apps/studio/components/grid/components/header/sort/SortRow.tsx b/apps/studio/components/grid/components/header/sort/SortRow.tsxindex 59f66857874..61642b4de27 100644--- a/apps/studio/components/grid/components/header/sort/SortRow.tsx+++ b/apps/studio/components/grid/components/header/sort/SortRow.tsx@@ -40,6 +40,7 @@ const SortRow = ({ index, columnName, sort, onDelete, onToggle }: SortRowProps){...listeners}className="opacity-50 hover:opacity-100 transition cursor-grab text-foreground"type="button"+ tabIndex={0}><GripVertical size={16} strokeWidth={1.5} /></button>diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsxindex 7a03d13ea76..5453e536903 100644--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx@@ -251,6 +251,7 @@ const FeaturePreviewItem = ({return (<buttontype="button"+ tabIndex={0}key={feature.key}onClick={() => selectFeaturePreview(feature.key)}className={cn(diff --git a/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx b/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsxindex fdaa39ad42a..70af737772e 100644--- a/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx+++ b/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx@@ -128,6 +128,7 @@ const FunctionDiff = ({<li key={fileInfo.key} className="flex"><buttontype="button"+ tabIndex={0}onClick={() => setActiveFileKey(fileInfo.key)}className={cn('flex-1 text-left text-xs px-4 py-2 flex items-center gap-2',diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsxindex 8ead7ed8cd5..50118d69a6d 100644--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx@@ -115,6 +115,7 @@ export const WorkflowLogs = ({ branch }: WorkflowLogsProps) => {<li key={workflowRun.id} className="flex justify-between px-4 py-3 gap-2"><buttontype="button"+ tabIndex={workflowRun.id === projectRef ? -1 : 0}disabled={workflowRun.id === projectRef}onClick={() => setSelectedWorkflowRun(workflowRun)}className="flex items-center gap-2 w-full justify-between"diff --git a/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx b/apps/studio/components/interfaces/Connect/OrganizationSelector.tsxindex 42fd4aad6b4..1981518849c 100644--- a/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx+++ b/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx@@ -193,6 +193,7 @@ const ConnectOrganizationButton = ({}) => (<buttontype="button"+ tabIndex={disabled ? -1 : 0}disabled={disabled}onClick={onClick}aria-pressed={selected}diff --git a/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx b/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsxindex 566bc55d720..ac4ef2009a1 100644--- a/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx@@ -253,6 +253,7 @@ export function ModeSelector({ modes, selected, onChange }: ModeSelectorProps) {<buttonkey={mode.id}type="button"+ tabIndex={0}onClick={() => onChange(mode.id)}className={cn('flex flex-col items-center gap-2 p-4 transition-colors border-r last:border-r-0',diff --git a/apps/studio/components/interfaces/ConnectSheet/ConnectionParameters.tsx b/apps/studio/components/interfaces/ConnectSheet/ConnectionParameters.tsxindex 4e372d1bcf7..db4ba4464fd 100644--- a/apps/studio/components/interfaces/ConnectSheet/ConnectionParameters.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/ConnectionParameters.tsx@@ -23,6 +23,9 @@ export const ConnectionParameters = ({ parameters, onCopy }: ConnectionParameter<span className="text-foreground-lighter">{param.key}:</span><span className="ml-1 text-foreground">{param.value}</span><button+ type="button"+ tabIndex={0}+ aria-label={`Copy ${param.key}`}onClick={() => {copyToClipboard(param.value, () => {setCopiedMap((prev) => ({ ...prev, [param.key]: true }))@@ -34,7 +37,7 @@ export const ConnectionParameters = ({ parameters, onCopy }: ConnectionParameter}}className={cn('text-foreground-lighter',- 'ml-2 opacity-0 group-hover/param:opacity-100',+ 'ml-2 opacity-0 group-hover/param:opacity-100 focus-visible:opacity-100','hover:text-foreground rounded-xs p-1',copiedMap[param.key] && 'opacity-100','transition-all'diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsxindex 206aa08b206..884ca841a2d 100644--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx@@ -52,6 +52,7 @@ const EnumeratedTypeValueRow = <TFieldValues extends FieldValues>({isDisabled ? 'text-foreground-lighter cursor-default!' : 'text-foreground'}`}type="button"+ tabIndex={isDisabled ? -1 : 0}disabled={isDisabled}><GripVertical size={16} strokeWidth={1.5} />diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsxindex 7ea2ad0db2e..60b646d64c2 100644--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx@@ -105,6 +105,7 @@ export const PolicyEditorPanelHeader = ({<Tooltip><TooltipTrigger asChild><button+ tabIndex={0}aria-expanded={showTools}aria-controls="ai-chat-assistant"className={cn(diff --git a/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx b/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsxindex 0c2764abb91..b96bdf8a1a6 100644--- a/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx+++ b/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx@@ -73,6 +73,7 @@ const PrivilegesTable = ({<Table.tr key={column.column_id}><Table.td><button+ tabIndex={0}onClick={() => handleClickColumnName(column.column_id)}className="block w-full truncate text-left text-foreground">diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsxindex 263d70410ad..2e02ce5bc4d 100644--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx@@ -76,6 +76,7 @@ const DuckLakeModeSelector = ({<buttonkey={option.value}type="button"+ tabIndex={0}role="radio"aria-checked={selected}onClick={() => onChange(option.value)}diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsxindex 6cf774e2c96..ca4ed2aa46e 100644--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx@@ -37,6 +37,7 @@ export const ReadReplicaPricingDialog = () => {<DialogTrigger asChild><buttontype="button"+ tabIndex={0}className={cn(InlineLinkClassName, 'cursor-pointer text-foreground-light')}>Learn morediff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotLagMetrics.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotLagMetrics.tsxindex 2c1f88748db..9c69b77f5ad 100644--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotLagMetrics.tsx+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotLagMetrics.tsx@@ -133,6 +133,7 @@ export const SlotLagMetricsList = ({<TooltipTrigger asChild><buttontype="button"+ tabIndex={0}aria-label={`What is ${field.label}`}className="inline-flex h-4 w-4 items-center justify-center rounded-full bg-surface-200 text-foreground-lighter transition-colors hover:bg-surface-300 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-foreground-lighter">diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotStatus.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotStatus.tsxindex 70a1397f20a..85bd503a804 100644--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotStatus.tsx+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/SlotStatus.tsx@@ -64,6 +64,7 @@ export const SlotStatusLegend = () => {<PopoverTrigger asChild><buttontype="button"+ tabIndex={0}aria-label="What do the slot statuses mean?"className="inline-flex h-4 w-4 items-center justify-center rounded-full bg-surface-200 text-foreground-lighter transition-colors hover:bg-surface-300 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-foreground-lighter">diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsxindex 17f61d935c7..8aac3f7cce7 100644--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx@@ -81,7 +81,11 @@ export const TableReplicationRow = ({<div className="text-sm text-foreground">{statusConfig.description}{' '}{isErrorState && 'reason' in table.state && (- <button className={InlineLinkClassName} onClick={() => onSelectShowError()}>+ <button+ tabIndex={0}+ className={InlineLinkClassName}+ onClick={() => onSelectShowError()}+ >View error.</button>)}diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsxindex 68f082b276c..21937060ab0 100644--- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx+++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx@@ -117,6 +117,7 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps<buttonid={`collapsible-trigger-${role.id}`}type="button"+ tabIndex={0}className="group flex w-full items-center justify-between rounded-sm py-3 px-card text-foreground"onClick={(event) => {event.preventDefault()diff --git a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx b/apps/studio/components/interfaces/Database/Roles/RolesList.tsxindex 8b023a30e8b..3378e5ef6b4 100644--- a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx+++ b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx@@ -149,6 +149,7 @@ export const RolesList = () => {/><div className="flex items-center border border-strong rounded-full w-min h-[26px]"><button+ tabIndex={0}className={cn('text-xs w-[80px] h-full text-center rounded-l-full flex items-center justify-center transition',filterType === 'all'@@ -161,6 +162,7 @@ export const RolesList = () => {</button><div className="h-full w-px border-r border-strong"></div><button+ tabIndex={0}className={cn('text-xs w-[80px] h-full text-center rounded-r-full flex items-center justify-center transition',filterType === 'active'diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsxindex 8ab5c68edc8..8ae2a45bffb 100644--- a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx+++ b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx@@ -420,6 +420,7 @@ export const TriggerSheet = ({{function_name.length === 0 ? (<buttontype="button"+ tabIndex={0}className={cn('relative w-full rounded-sm border border-default','bg-surface-200 px-5 py-1 shadow-xs transition-all',diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsxindex f29e61ce397..71579244113 100644--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx@@ -49,6 +49,7 @@ export function ExplainNodeRow({ node, depth, maxDuration }: ExplainNodeRowProps{/* Expand/collapse button */}<buttontype="button"+ tabIndex={canExpand ? 0 : -1}onClick={() => canExpand && setIsExpanded(!isExpanded)}disabled={!canExpand}className={cn(diff --git a/apps/studio/components/interfaces/Functions/CommandRender.tsx b/apps/studio/components/interfaces/Functions/CommandRender.tsxindex 37ad088e1bc..c6a5446d497 100644--- a/apps/studio/components/interfaces/Functions/CommandRender.tsx+++ b/apps/studio/components/interfaces/Functions/CommandRender.tsx@@ -31,6 +31,7 @@ const Command = ({ item }: any) => {<span>{item.jsx ? item.jsx() : null} </span><buttontype="button"+ tabIndex={0}className="text-foreground-lighter hover:text-foreground"onClick={() => {function onCopy(value: any) {diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsxindex c8e31584ba5..470e5620f97 100644--- a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx@@ -74,6 +74,7 @@ export const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemP</p><buttontype="button"+ tabIndex={0}className="text-foreground-lighter hover:text-foreground transition"onClick={(event: MouseEvent<HTMLButtonElement>) => {function onCopy(value: string) {diff --git a/apps/studio/components/interfaces/Integrations/Integration/MarkdownContent.tsx b/apps/studio/components/interfaces/Integrations/Integration/MarkdownContent.tsxindex b156d96ad94..105b7ac30e4 100644--- a/apps/studio/components/interfaces/Integrations/Integration/MarkdownContent.tsx+++ b/apps/studio/components/interfaces/Integrations/Integration/MarkdownContent.tsx@@ -58,6 +58,8 @@ export const MarkdownContent = ({{supportExpanding && (<div className={cn('bottom-0', !isExpanded ? 'absolute' : 'relative mt-3')}><button+ type="button"+ tabIndex={0}className="text-foreground-light hover:text-foreground underline text-sm"onClick={() => setIsExpanded(!isExpanded)}>diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsxindex 3d81037f7b4..b6678268947 100644--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx@@ -201,18 +201,21 @@ export const MarketplaceFilterBar = ({</DropdownMenu>{showClear && (- <button+ <Buttontype="button"+ variant="text"+ size="tiny"onClick={onClearFilters}- className="px-1 text-xs text-foreground-light underline-offset-2 hover:underline"+ className="text-foreground-light">Clear all- </button>+ </Button>)}<div className="ml-auto flex rounded-md border"><buttontype="button"+ tabIndex={0}aria-label="Grid view"onClick={() => onViewModeChange('grid')}className={cn(@@ -227,6 +230,7 @@ export const MarketplaceFilterBar = ({</button><buttontype="button"+ tabIndex={0}aria-label="List view"onClick={() => onViewModeChange('list')}className={cn(diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainsCard.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainsCard.tsxindex b3a5c6b5e9f..839f5fcfe8c 100644--- a/apps/studio/components/interfaces/LogDrains/LogDrainsCard.tsx+++ b/apps/studio/components/interfaces/LogDrains/LogDrainsCard.tsx@@ -16,7 +16,7 @@ export const LogDrainsCard = ({onClick,}: LogDrainsCardProps) => {return (- <button className="w-full h-full text-left" onClick={onClick}>+ <button type="button" tabIndex={0} className="w-full h-full text-left" onClick={onClick}><Card className="p-6 cursor-pointer hover:bg-surface-200 hover:border-strong transition-colors h-48"><div className="flex flex-col gap-5"><div className="flex items-start justify-between w-full">diff --git a/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx b/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsxindex a8f567a8d70..3b6063e7376 100644--- a/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx+++ b/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx@@ -127,6 +127,7 @@ const ServiceCell = ({<TooltipTrigger asChild><buttontype="button"+ tabIndex={0}className="relative z-10 text-foreground-lighter hover:text-foreground-light transition-colors shrink-0"aria-label={`About ${service.name}`}>diff --git a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx b/apps/studio/components/interfaces/Organization/OrganizationCard.tsxindex 93075704bc3..32dbb9554f7 100644--- a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx+++ b/apps/studio/components/interfaces/Organization/OrganizationCard.tsx@@ -118,6 +118,7 @@ export const CreateOrganizationCard = ({return (<buttontype="button"+ tabIndex={disabled ? -1 : 0}disabled={disabled}onClick={onClick}className={cn(diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsxindex 37da58d47a4..9298948b4c8 100644--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx@@ -37,6 +37,8 @@ function CopyableId({ id, label }: { id: string; label: string }) {return (<button+ type="button"+ tabIndex={0}onClick={handleCopy}className="inline-flex items-center gap-x-1 cursor-pointer border border-transparent border-dashed rounded-sm transition-colors hover:bg-surface-100 hover:border hover:border-strong group font-mono text-xs text-foreground-light px-1 -ml-1">diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsxindex 8fabf212664..2a2b7f3fa31 100644--- a/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx+++ b/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx@@ -86,6 +86,7 @@ export const FirstLevelNav = (): ReactNode => {return (<Fragment key={item.key}><button+ tabIndex={0}aria-current={isActive ? 'page' : undefined}className={cn('w-full px-3 py-2 rounded-md',@@ -168,6 +169,7 @@ const Subsections = ({ category }: SubsectionsProps): ReactNode => {{snippets.map((snippet) => (<buttonkey={snippet.key}+ tabIndex={0}className={MENU_BUTTON_CLASSES}onClick={() => {navigateToSection(snippet.key)@@ -197,6 +199,7 @@ const TablesSubsections = (): ReactNode => {{tables.map((table) => (<buttonkey={table.name}+ tabIndex={0}className={MENU_BUTTON_CLASSES}onClick={() => snap.setActiveDocsSection([API_DOCS_CATEGORIES.ENTITIES, table.name])}>@@ -226,6 +229,7 @@ const DbFunctionsSubsections = (): ReactNode => {{functions.map((fn) => (<buttonkey={fn.name}+ tabIndex={0}className={MENU_BUTTON_CLASSES}onClick={() =>snap.setActiveDocsSection([API_DOCS_CATEGORIES.STORED_PROCEDURES, fn.name])@@ -250,6 +254,7 @@ const BucketButton = ({ item: bucket, style }: RowComponentBaseProps<Bucket>) =>return (<buttonkey={bucket.name}+ tabIndex={0}className={cn(MENU_BUTTON_CLASSES, 'py-1')}style={style}onClick={() => snap.setActiveDocsSection([API_DOCS_CATEGORIES.STORAGE, bucket.name])}@@ -301,6 +306,7 @@ const EdgeFunctionsSubsections = (): ReactNode => {{(edgeFunctions ?? []).map((fn) => (<buttonkey={fn.name}+ tabIndex={0}className={MENU_BUTTON_CLASSES}onClick={() => snap.setActiveDocsSection([API_DOCS_CATEGORIES.EDGE_FUNCTIONS, fn.name])}>diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsxindex 05ed7f5bf11..8de14c0e22e 100644--- a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx+++ b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx@@ -153,6 +153,7 @@ const MenuItems = ({ category, menuItemFilter }: MenuItemsProps) => {{menuItems.map((item) => (<buttonkey={item.key}+ tabIndex={0}className="w-full text-left text-sm text-foreground-light px-4 hover:text-foreground"onClick={() => navigateToSection(item.key)}>diff --git a/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx b/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsxindex 1a0e8c03607..587ba378057 100644--- a/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx+++ b/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx@@ -77,6 +77,15 @@ export const ConnectSection = () => {<buttonkey={action.id}type="button"+ tabIndex={+ (action.requiresActiveProject ?? true)+ ? !isActiveHealthy+ ? -1+ : 0+ : !selectedProject?.ref+ ? -1+ : 0+ }disabled={(action.requiresActiveProject ?? true) ? !isActiveHealthy : !selectedProject?.ref}diff --git a/apps/studio/components/interfaces/ProjectHome/Home.tsx b/apps/studio/components/interfaces/ProjectHome/Home.tsxindex 9bb44825bc8..35c6c12d72b 100644--- a/apps/studio/components/interfaces/ProjectHome/Home.tsx+++ b/apps/studio/components/interfaces/ProjectHome/Home.tsx@@ -1,5 +1,17 @@-import { DndContext, DragEndEvent, PointerSensor, useSensor, useSensors } from '@dnd-kit/core'-import { arrayMove, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'+import {+ DndContext,+ DragEndEvent,+ KeyboardSensor,+ PointerSensor,+ useSensor,+ useSensors,+} from '@dnd-kit/core'+import {+ arrayMove,+ SortableContext,+ sortableKeyboardCoordinates,+ verticalListSortingStrategy,+} from '@dnd-kit/sortable'import { useFlag, useParams } from 'common'import dayjs from 'dayjs'import { useEffect, useRef } from 'react'@@ -42,7 +54,10 @@ export const ProjectHome = () => {const UsageSection = showHomepageUsageDeltas ? ProjectUsageSectionDeltas : ProjectUsageSection- const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 8 } }))+ const sensors = useSensors(+ useSensor(PointerSensor, { activationConstraint: { distance: 8 } }),+ useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates })+ )const handleDragEnd = (event: DragEndEvent) => {const { active, over } = eventdiff --git a/apps/studio/components/interfaces/ProjectHome/SortableSection.tsx b/apps/studio/components/interfaces/ProjectHome/SortableSection.tsxindex 136b9a6271b..3074852d286 100644--- a/apps/studio/components/interfaces/ProjectHome/SortableSection.tsx+++ b/apps/studio/components/interfaces/ProjectHome/SortableSection.tsx@@ -23,10 +23,16 @@ export const SortableSection = ({ id, children }: SortableSectionProps) => {return (<div ref={setNodeRef} style={style} className="relative will-change-transform"><button+ type="button"aria-label="Drag to reorder section"- className="absolute -left-6 top-2 text-foreground-muted hover:text-foreground focus:outline-hidden cursor-grab active:cursor-grabbing"+ className={cn(+ 'absolute -left-6 top-2 text-foreground-muted hover:text-foreground cursor-grab active:cursor-grabbing',+ 'rounded-sm outline-hidden',+ 'focus-visible:outline-solid focus-visible:outline-4 focus-visible:outline-offset-1 focus-visible:outline-border-strong'+ )}{...attributes}{...listeners}+ tabIndex={0}><GripVertical size={14} /></button>diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsxindex ef6267c18b2..b2e4d3e18f7 100644--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx@@ -103,6 +103,7 @@ export const QueryInsightsChart = ({<buttonkey={item.dataKey}type="button"+ tabIndex={0}onClick={() => toggleSeries(item.dataKey)}className={cn('flex items-center gap-1.5 text-[11px] transition-colors cursor-pointer',@@ -124,6 +125,7 @@ export const QueryInsightsChart = ({{hasSelection && (<buttontype="button"+ tabIndex={0}onClick={() => toggleSeries(selDataKey)}className={cn('flex items-center gap-1.5 text-[11px] transition-colors cursor-pointer',diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsxindex 7d4fe46038d..7063136cca5 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx@@ -69,6 +69,7 @@ export const QueryPerformanceMetrics = () => {<TooltipTrigger asChild><buttontype="button"+ tabIndex={0}aria-label="How are slow queries calculated?"className="inline-flex h-4 w-4 items-center justify-center rounded-full bg-surface-200 text-foreground-lighter transition-colors hover:bg-surface-300 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-foreground-lighter"onClick={(e) => {@@ -89,6 +90,7 @@ export const QueryPerformanceMetrics = () => {<TooltipTrigger asChild><buttontype="button"+ tabIndex={0}aria-label={`What is ${card.title}?`}className="inline-flex h-4 w-4 items-center justify-center rounded-full bg-surface-200 text-foreground-lighter transition-colors hover:bg-surface-300 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-foreground-lighter"onClick={(e) => {diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsxindex f8b133fb6ec..a968219bc5b 100644--- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx+++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx@@ -295,35 +295,26 @@ const VercelIntegrationConnectionForm = ({</FormControl><FormDescription className="col-start-5 col-span-8 text-xs">e.g.{' '}- <code- className="cursor-pointer"- role="button"- onClick={() => {- field.onChange('NEXT_PUBLIC_')- }}- >- NEXT_PUBLIC_- </code>- ,{' '}- <code- className="cursor-pointer"- role="button"- onClick={() => {- field.onChange('VITE_PUBLIC_')- }}- >- VITE_PUBLIC_- </code>- ,{' '}- <code- className="cursor-pointer"- role="button"- onClick={() => {- field.onChange('PUBLIC_')- }}- >- PUBLIC_- </code>+ {(+ [+ ['NEXT_PUBLIC_', 'NEXT_PUBLIC_'],+ ['VITE_PUBLIC_', 'VITE_PUBLIC_'],+ ['PUBLIC_', 'PUBLIC_'],+ ] as const+ ).map(([label, value], index) => (+ <span key={value}>+ {index > 0 && ', '}+ <button+ type="button"+ tabIndex={disabled ? -1 : 0}+ disabled={disabled}+ className="font-mono text-xs rounded-sm bg-surface-200 px-1 py-0.5 hover:bg-surface-300 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => field.onChange(value)}+ >+ {label}+ </button>+ </span>+ ))}, etc.</FormDescription>diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsxindex a172e4309cc..0f077cd4aa5 100644--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx@@ -97,6 +97,7 @@ const HeaderBreadcrumbs = ({) : (<buttontype="button"+ tabIndex={0}className="max-w-24 truncate border-0 bg-transparent p-0 text-left text-sm text-foreground-lighter transition-colors hover:text-foreground focus-visible:text-foreground"onClick={() => selectBreadcrumb(crumb.index)}>diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowEditing.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowEditing.tsxindex 3eb8c024913..98b32930d0c 100644--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowEditing.tsx+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowEditing.tsx@@ -115,6 +115,7 @@ export const FileExplorerRowEditing = ({onBlur={(event) => onSaveItemName(itemName.trim() || item.name, event)}/><button+ tabIndex={-1}className="hidden"type="submit"onClick={(event) => onSaveItemName(itemName.trim() || item.name, event)}diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsxindex b75ecf32940..ba3f84a69db 100644--- a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx@@ -85,7 +85,7 @@ export const MoveItemsModal = ({/></FormItemLayout>- <button className="hidden" type="submit" onClick={onConfirmMove} />+ <button tabIndex={-1} className="hidden" type="submit" onClick={onConfirmMove} /></form></DialogSection><DialogFooter>diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsxindex ac2243ddc8d..98cff2d6550 100644--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx@@ -68,18 +68,14 @@ export const BucketsPolicies = ({Write policies for each bucket to control access to the bucket and its contents</PageSectionDescription></PageSectionSummary>- <CollapsibleTrigger asChild>- <button>- <span className="sr-only">Toggle bucket list</span>- <ChevronUp- size={14}- className={cn(- !expanded && 'rotate-180',- 'transition',- 'text-foreground-light hover:text-foreground'- )}- />- </button>+ <CollapsibleTrigger+ aria-label="Toggle bucket list"+ className={cn(+ 'rounded-md p-1 text-foreground-light hover:text-foreground',+ 'outline-hidden focus-visible:ring-2 focus-visible:ring-foreground-muted focus-visible:ring-offset-1 focus-visible:ring-offset-background'+ )}+ >+ <ChevronUp size={14} className={cn(!expanded && 'rotate-180', 'transition')} /></CollapsibleTrigger></PageSectionMeta><CollapsibleContent>diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsxindex 7138302232b..8f837ab6c38 100644--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx@@ -29,6 +29,7 @@ export const StoragePolicyEditorModalTitle = ({<div><div className="flex items-center space-x-3"><button+ tabIndex={0}onClick={onSelectBackFromTemplates}className={cn('cursor-pointer rounded-xs opacity-20 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted',diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsxindex 364f08fd4f6..9c34fed9483 100644--- a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx+++ b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx@@ -123,6 +123,7 @@ export const ValidateSizeLimit = ({<TooltipTrigger asChild><buttontype="button"+ tabIndex={isValidating ? -1 : 0}className={cn('mt-2 ml-auto text-foreground-lighter','w-fit! text-xs',diff --git a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx b/apps/studio/components/interfaces/Support/AttachmentUpload.tsxindex 47d5d883ec5..18613095630 100644--- a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx+++ b/apps/studio/components/interfaces/Support/AttachmentUpload.tsx@@ -22,6 +22,19 @@ import { useProfile } from '@/lib/profile'const MAX_ATTACHMENTS = 5+const removeAttachmentButtonClassName = cn(+ 'absolute -top-1 -right-1 size-4 shrink-0 rounded-full bg-red-900 p-0 cursor-pointer',+ 'outline-hidden focus-visible:ring-2 focus-visible:ring-foreground-muted focus-visible:ring-offset-1 focus-visible:ring-offset-background'+)++const RemoveAttachmentIcon = () => (+ <X+ aria-hidden="true"+ strokeWidth={3}+ className="pointer-events-none absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 text-contrast"+ />+)+const uploadAttachments = async ({ userId, files }: { userId: string; files: File[] }) => {const supportSupabaseClient = createSupportStorageClient()@@ -209,14 +222,12 @@ export function AttachmentUploadDisplay({<buttontype="button"+ tabIndex={0}aria-label="Remove attachment"- className={cn(- 'flex h-4 w-4 items-center justify-center rounded-full bg-red-900',- 'absolute -top-1 -right-1 cursor-pointer'- )}+ className={removeAttachmentButtonClassName}onClick={() => removeFileUpload(idx)}>- <X aria-hidden="true" size={10} strokeWidth={3} className="text-contrast" />+ <RemoveAttachmentIcon /></button></div>)@@ -229,14 +240,12 @@ export function AttachmentUploadDisplay({><buttontype="button"+ tabIndex={0}aria-label="Remove attachment"- className={cn(- 'flex h-4 w-4 items-center justify-center rounded-full bg-red-900',- 'absolute -top-1 -right-1 cursor-pointer'- )}+ className={removeAttachmentButtonClassName}onClick={() => removeFileUpload(idx)}>- <X aria-hidden="true" size={10} strokeWidth={3} className="text-contrast" />+ <RemoveAttachmentIcon /></button></div>)@@ -245,9 +254,12 @@ export function AttachmentUploadDisplay({{!isFull && (<buttontype="button"+ tabIndex={0}+ aria-label="Add attachment"className={cn('border border-stronger opacity-50 transition hover:opacity-100',- 'group flex h-14 w-14 cursor-pointer items-center justify-center rounded-sm'+ 'group flex h-14 w-14 cursor-pointer items-center justify-center rounded-sm',+ 'outline-hidden focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-foreground-muted focus-visible:ring-offset-1 focus-visible:ring-offset-background')}onClick={addFile}>diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsxindex 45ea0d5d847..67268cdfeee 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx@@ -178,6 +178,7 @@ export const SpreadsheetImportPreview = ({{errorData !== undefined ? (<buttontype="button"+ tabIndex={0}className="flex items-center space-x-2 cursor-pointer focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary"onClick={() => onSelectExpandError(key)}aria-expanded={isExpanded}diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsxindex c347ed55900..c0c8d8687b4 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx@@ -126,6 +126,7 @@ export const Column = ({ref={setActivatorNodeRef}{...attributes}{...listeners}+ tabIndex={0}className="opacity-50 hover:opacity-100 disabled:hover:opacity-50 transition cursor-grab text-foreground"type="button">@@ -163,6 +164,7 @@ export const Column = ({<Tooltip><TooltipTrigger asChild><button+ tabIndex={0}onClick={() => {const SENSITIVE_DATA_MARKER = '[SENSITIVE]'@@ -448,7 +450,13 @@ export const Column = ({</div>{!hasImportContent && (<div className="flex w-[5%] justify-end">- <button className="cursor-pointer" onClick={() => onRemoveColumn()}>+ <button+ type="button"+ tabIndex={0}+ aria-label="Remove column"+ className="cursor-pointer"+ onClick={() => onRemoveColumn()}+ ><X size={16} strokeWidth={1} /></button></div>diff --git a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsxindex f32b32e2cb7..ff75219096f 100644--- a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx+++ b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx@@ -313,7 +313,7 @@ const EdgeFunctionDetailsLayout = ({onOpenChange={setIsTimestampHoverCardOpen}><HoverCardTrigger asChild>- <button type="button" className="flex items-center gap-2 group">+ <button type="button" tabIndex={0} className="flex items-center gap-2 group"><Clock size={16} strokeWidth={1.5} className="text-foreground-lighter" /><span className="transition text-foreground-light group-hover:text-foreground underline decoration-dotted decoration-foreground-muted underline-offset-4">{updatedRelative ?? 'Deploy status unavailable'}diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsxindex a01143df780..3dc429217f3 100644--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx@@ -252,6 +252,9 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidgclassName="cursor-pointer rounded-sm h-[26px] w-[26px] border border-control relative bg-cover bg-center bg-no-repeat"><button+ type="button"+ tabIndex={0}+ aria-label="Remove screenshot"className={['cursor-pointer rounded-full bg-red-900 h-3 w-3','flex items-center justify-center absolute -top-1 -right-1',diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuItem.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuItem.tsxindex 5e5cd8371ec..85c57074a82 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuItem.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuItem.tsx@@ -39,6 +39,7 @@ export function OrgMenuItem({{onSubmenuClick ? (<buttontype="button"+ tabIndex={disabled ? -1 : 0}data-active={isActive}onClick={() => onSubmenuClick?.(item)}disabled={disabled}@@ -46,6 +47,10 @@ export function OrgMenuItem({>{content}</button>+ ) : disabled ? (+ <span aria-disabled="true" data-active={isActive} className={menuButtonClass}>+ {content}+ </span>) : (<Linkhref={item.href}diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/TopLevelRouteItem.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/TopLevelRouteItem.tsxindex d378251d87e..72c3063cb93 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/TopLevelRouteItem.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/TopLevelRouteItem.tsx@@ -40,6 +40,7 @@ export function TopLevelRouteItem({{hasItems ? (<buttontype="button"+ tabIndex={route.disabled ? -1 : 0}data-active={isActive}onClick={() => onTopLevelClick(route)}disabled={route.disabled}@@ -48,14 +49,20 @@ export function TopLevelRouteItem({{content}</button>) : route.link ? (- <Link- href={route.link}- onClick={onCloseSheet}- data-active={isActive}- className={menuButtonClass}- >- {content}- </Link>+ route.disabled ? (+ <span aria-disabled="true" data-active={isActive} className={menuButtonClass}>+ {content}+ </span>+ ) : (+ <Link+ href={route.link}+ onClick={onCloseSheet}+ data-active={isActive}+ className={menuButtonClass}+ >+ {content}+ </Link>+ )) : (<span data-active={false} className={cn(menuButtonClass, 'cursor-default')}>{content}diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsxindex 82b246ec302..eeffd9a142f 100644--- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx+++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx@@ -184,6 +184,7 @@ export const EntityListItem = ({id={String(entity.id)}href={buildTableEditorUrl({ projectRef, tableId: entity.id, schema: entity.schema })}role="button"+ tabIndex={0}aria-label={`View ${entity.name}`}className={cn(TreeViewItemVariant({diff --git a/apps/studio/components/layouts/Tabs/CollapseButton.tsx b/apps/studio/components/layouts/Tabs/CollapseButton.tsxindex 09ccf987554..89aafc488f0 100644--- a/apps/studio/components/layouts/Tabs/CollapseButton.tsx+++ b/apps/studio/components/layouts/Tabs/CollapseButton.tsx@@ -20,6 +20,7 @@ export function CollapseButton({ hideTabs }: { hideTabs: boolean }) {<Tooltip><TooltipTrigger asChild><button+ tabIndex={0}className={cn('hidden md:flex items-center justify-center w-10 h-(--header-height) hover:bg-surface-100 shrink-0',!hideTabs && 'border-b border-b-default'diff --git a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsxindex 9c599cacb0d..809f2cc79ff 100644--- a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx@@ -82,9 +82,7 @@ export const ModelSelector = ({ selectedModel, onSelectModel }: ModelSelectorPro<Tooltip><TooltipTrigger asChild><div>- <Badge role="button" variant="warning">- Upgrade- </Badge>+ <Badge variant="warning">Upgrade</Badge></div></TooltipTrigger><TooltipContent side="right">diff --git a/apps/studio/components/ui/Charts/ChartHighlightActions.tsx b/apps/studio/components/ui/Charts/ChartHighlightActions.tsxindex 418b7c5c8be..b881ad82120 100644--- a/apps/studio/components/ui/Charts/ChartHighlightActions.tsx+++ b/apps/studio/components/ui/Charts/ChartHighlightActions.tsx@@ -134,6 +134,7 @@ export const ChartHighlightActions = ({<DropdownMenuItem asChild key={action.id} disabled={disabled} className={cn('group')}><buttondisabled={disabled}+ tabIndex={-1}onClick={() => ctx && action.onSelect({ ...ctx })}className="w-full flex items-center gap-1.5">diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsxindex 94d80ca6b1c..9cfce65eec8 100644--- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx+++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx@@ -368,6 +368,7 @@ export const CustomLabel = ({return (<buttonkey={entry.name}+ tabIndex={0}className="flex md:flex-col gap-1 md:gap-0 w-fit text-foreground rounded-lg hover:bg-background-overlay-hover"onMouseOver={() => handleMouseEnter(entry.name)}onMouseOutCapture={handleMouseLeave}diff --git a/apps/studio/components/ui/ComputeBadgeWrapper.tsx b/apps/studio/components/ui/ComputeBadgeWrapper.tsxindex f83aaaf9e10..671791b97ac 100644--- a/apps/studio/components/ui/ComputeBadgeWrapper.tsx+++ b/apps/studio/components/ui/ComputeBadgeWrapper.tsx@@ -189,8 +189,6 @@ export const ComputeBadgeWrapper = ({<ButtonasChildvariant="default"- type="button"- role="button"onClick={() => {track('compute_badge_upgrade_clicked', {computeSize: computeSize ?? 'unknown',diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsxindex f5f23bd6e67..01d5f1d1967 100644--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx@@ -123,6 +123,7 @@ export function DataTableFilterCheckbox<TData>({{hasNested && (<buttontype="button"+ tabIndex={0}aria-label={isExpanded ? 'Collapse' : 'Expand'}aria-expanded={isExpanded}onClick={() => toggleExpanded(optionKey)}@@ -147,10 +148,11 @@ export function DataTableFilterCheckbox<TData>({<buttontype="button"+ tabIndex={0}onClick={() => column?.setFilterValue([option.value])}className={cn('text-xs text-muted-foreground hover:text-foreground',- 'absolute inset-y-0 right-0 hidden bg-surface-100 group-hover:flex items-center cursor-pointer',+ 'absolute inset-y-0 right-0 hidden bg-surface-100 group-hover:flex group-focus-within:flex items-center cursor-pointer','ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2')}>diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsxindex 443cc14538b..a8ba1cea405 100644--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx@@ -118,10 +118,11 @@ export function DataTableFilterCheckboxAsync<TData>({</span><buttontype="button"+ tabIndex={0}onClick={() => column?.setFilterValue([option.value])}className={cn('text-xs text-muted-foreground hover:text-foreground',- 'absolute inset-y-0 right-0 hidden bg-surface-100 group-hover:flex items-center cursor-pointer',+ 'absolute inset-y-0 right-0 hidden bg-surface-100 group-hover:flex group-focus-within:flex items-center cursor-pointer','ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2')}>diff --git a/apps/studio/components/ui/DevToolbar/ProjectStatusTab.tsx b/apps/studio/components/ui/DevToolbar/ProjectStatusTab.tsxindex e31ebe9c9de..a013a6e0731 100644--- a/apps/studio/components/ui/DevToolbar/ProjectStatusTab.tsx+++ b/apps/studio/components/ui/DevToolbar/ProjectStatusTab.tsx@@ -124,6 +124,7 @@ export const ProjectStatusTab = () => {<buttononClick={handleReset}disabled={isDisabled || !hasOverride}+ tabIndex={isDisabled || !hasOverride ? -1 : 0}className="text-xs text-foreground-lighter hover:text-foreground transition underline disabled:opacity-50 disabled:cursor-not-allowed">Reset to real datadiff --git a/apps/studio/components/ui/DevToolbar/ResourceWarningsTab.tsx b/apps/studio/components/ui/DevToolbar/ResourceWarningsTab.tsxindex 328112f4798..575fa25ffaa 100644--- a/apps/studio/components/ui/DevToolbar/ResourceWarningsTab.tsx+++ b/apps/studio/components/ui/DevToolbar/ResourceWarningsTab.tsx@@ -138,6 +138,7 @@ export const ResourceWarningsTab = () => {<buttononClick={handleReset}disabled={isDisabled}+ tabIndex={isDisabled ? -1 : 0}className="text-xs text-foreground-lighter hover:text-foreground transition underline disabled:opacity-50 disabled:cursor-not-allowed">Reset to real data@@ -157,6 +158,7 @@ export const ResourceWarningsTab = () => {<SeverityButtonactive={!isReadOnly}variant="off"+ disabled={isDisabled}onClick={() => handleReadOnlyChange(false)}>Off@@ -164,6 +166,7 @@ export const ResourceWarningsTab = () => {<SeverityButtonactive={isReadOnly}variant="critical"+ disabled={isDisabled}onClick={() => handleReadOnlyChange(true)}>On@@ -178,6 +181,7 @@ export const ResourceWarningsTab = () => {<SeverityButtonactive={severities[key] === null}variant="off"+ disabled={isDisabled}onClick={() => handleSeverityChange(key, null)}>Off@@ -185,6 +189,7 @@ export const ResourceWarningsTab = () => {<SeverityButtonactive={severities[key] === 'warning'}variant="warning"+ disabled={isDisabled}onClick={() => handleSeverityChange(key, 'warning')}>Warn@@ -193,6 +198,7 @@ export const ResourceWarningsTab = () => {<SeverityButtonactive={severities[key] === 'critical'}variant="critical"+ disabled={isDisabled}onClick={() => handleSeverityChange(key, 'critical')}>Crit@@ -209,13 +215,17 @@ export const ResourceWarningsTab = () => {interface SeverityButtonProps {active: booleanvariant: 'off' | 'warning' | 'critical'+ disabled?: booleanonClick: () => voidchildren: React.ReactNode}-const SeverityButton = ({ active, variant, onClick, children }: SeverityButtonProps) => (+const SeverityButton = ({ active, variant, disabled, onClick, children }: SeverityButtonProps) => (<button+ type="button"onClick={onClick}+ disabled={disabled}+ tabIndex={disabled ? -1 : 0}className={cn('px-1.5 py-0.5 rounded-sm text-xs font-mono transition border',active@@ -224,7 +234,8 @@ const SeverityButton = ({ active, variant, onClick, children }: SeverityButtonPr: variant === 'warning'? 'bg-warning/20 text-warning border-warning': 'bg-destructive/20 text-destructive border-destructive'- : 'bg-transparent text-foreground-muted border-transparent hover:border-border'+ : 'bg-transparent text-foreground-muted border-transparent hover:border-border',+ disabled && 'opacity-50 cursor-not-allowed')}>{children}diff --git a/apps/studio/components/ui/FeaturePreviewBadge.tsx b/apps/studio/components/ui/FeaturePreviewBadge.tsxindex 094e94c7774..5e7784e0693 100644--- a/apps/studio/components/ui/FeaturePreviewBadge.tsx+++ b/apps/studio/components/ui/FeaturePreviewBadge.tsx@@ -14,6 +14,7 @@ export const FeaturePreviewBadge = ({ featureKey, className }: FeaturePreviewBadreturn (<buttontype="button"+ tabIndex={0}onClick={() => selectFeaturePreview(featureKey)}className="group flex items-center"title="Feature preview — click to manage"diff --git a/apps/studio/components/ui/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsxindex f29d00f7ed7..e79b916ed43 100644--- a/apps/studio/components/ui/FilterPopover.tsx+++ b/apps/studio/components/ui/FilterPopover.tsx@@ -121,7 +121,8 @@ export const FilterPopover = <T extends Record<string, any>>({<div className="flex-1">{label}</div>{showOnlyButton && (<button- className="text-xs text-foreground-lighter hover:text-foreground-muted opacity-0 group-hover:opacity-100 transition-opacity"+ tabIndex={0}+ className="text-xs text-foreground-lighter hover:text-foreground-muted opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity"onClick={(e) => {e.preventDefault()setSelectedOptions([value])diff --git a/apps/studio/components/ui/PasswordStrengthBar.tsx b/apps/studio/components/ui/PasswordStrengthBar.tsxindex 8c96203bdb8..3d43d09ed75 100644--- a/apps/studio/components/ui/PasswordStrengthBar.tsx+++ b/apps/studio/components/ui/PasswordStrengthBar.tsx@@ -41,7 +41,12 @@ export const PasswordStrengthBar = ({? passwordStrengthMessage: 'This is the password to your Postgres database, so it must be strong and hard to guess.') +' '}- <button type="button" className={InlineLinkClassName} onClick={generateStrongPassword}>+ <button+ type="button"+ tabIndex={0}+ className={InlineLinkClassName}+ onClick={generateStrongPassword}+ >Generate a password</button>.diff --git a/apps/studio/components/ui/SingleStat.tsx b/apps/studio/components/ui/SingleStat.tsxindex 0cc07c2a2c1..3feae911a6b 100644--- a/apps/studio/components/ui/SingleStat.tsx+++ b/apps/studio/components/ui/SingleStat.tsx@@ -59,7 +59,7 @@ export const SingleStat = ({if (onClick) {return (- <button className="group" onClick={onClick}>+ <button type="button" className="group" tabIndex={0} onClick={onClick}>{content}</button>)diff --git a/apps/studio/scripts/ratchet-rules.json b/apps/studio/scripts/ratchet-rules.jsonindex c681e8b26c9..4f0135b422e 100644--- a/apps/studio/scripts/ratchet-rules.json+++ b/apps/studio/scripts/ratchet-rules.json@@ -18,6 +18,5 @@"jsx-a11y/tabindex-no-positive","jsx-a11y/anchor-is-valid","jsx-a11y/heading-has-content",- "jsx-a11y/no-distracting-elements",- "supabase/require-explicit-tabindex"+ "jsx-a11y/no-distracting-elements"]diff --git a/apps/ui-library/registry/default/platform/platform-kit-nextjs/components/supabase-manager/index.tsx b/apps/ui-library/registry/default/platform/platform-kit-nextjs/components/supabase-manager/index.tsxindex c6699186675..df2b7164878 100644--- a/apps/ui-library/registry/default/platform/platform-kit-nextjs/components/supabase-manager/index.tsx+++ b/apps/ui-library/registry/default/platform/platform-kit-nextjs/components/supabase-manager/index.tsx@@ -224,7 +224,12 @@ function DialogView({ projectRef, isMobile }: { projectRef: string; isMobile?: b{index === stack.length - 1 ? (<span className="font-semibold text-foreground">{item.title}</span>) : (- <button onClick={() => popTo(index)} className="hover:underline">+ <button+ type="button"+ tabIndex={0}+ onClick={() => popTo(index)}+ className="hover:underline"+ >{item.title}</button>)}diff --git a/e2e/studio/features/table-editor.spec.ts b/e2e/studio/features/table-editor.spec.tsindex 5b898591a02..649f527acc5 100644--- a/e2e/studio/features/table-editor.spec.ts+++ b/e2e/studio/features/table-editor.spec.ts@@ -1,5 +1,7 @@import fs from 'fs'import path from 'path'+import { expect, Page } from '@playwright/test'+import { env } from '../env.config.js'import { expectClipboardValue } from '../utils/clipboard.js'import { dropTable, query } from '../utils/db/index.js'@@ -14,7 +16,6 @@ import {waitForGridDataToLoad,waitForTableToLoad,} from '../utils/wait-for-response.js'-import { expect, Page } from '@playwright/test'const deleteTable = async (page: Page, ref: string, tableName: string) => {const viewLocator = page.getByLabel(`View ${tableName}`)@@ -1254,7 +1255,7 @@ testRunner('table editor', () => {await expect(page.getByRole('link', { name: 'public.pw_table_fk_target' })).toBeVisible()// Remove the foreign key relation- await page.getByRole('button', { name: 'Remove' }).click()+ await page.getByRole('button', { name: 'Remove', exact: true }).click()// Save the table changes after removing foreign keyconst removeFkPromise = waitForApiResponseWithTimeout(