Skip to content

fix(eslint): promote require-explicit-tabindex to error - #48170

Merged
dnywh merged 3 commits into
masterfrom
danny/depr-627-promote-require-explicit-tabindex-to-error-sweep
Jul 22, 2026
Merged

dnywh merged 3 commits into
masterfrom
danny/depr-627-promote-require-explicit-tabindex-to-error-sweep

Conversation

@dnywh

@dnywh dnywh commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Accessibility / lint hardening (Safari keyboard focus).

What is the current behavior?

supabase/require-explicit-tabindex is 'warn'. Studio’s ratchet was at 0 but the rule was still ratcheted; www / docs / design-system still had raw <button> / role="button" call sites without an explicit tabIndex.

DEPR-627 · follow-up to #47984 / #48040

What is the new behavior?

  • Shared config: 'supabase/require-explicit-tabindex': 'error'
  • Swept www / docs / design-system (+ Studio test fixtures the ratchet skipped)
  • Removed the rule from the Studio ratchet + baselines

To test

Prefer Safari. This PR only adds explicit tabIndex to raw <button> / role="button" call sites — not links, and not controls that already go through Button from ui.

Marketing (www) (staging link)

  • Homepage frameworks / dashboard feature tabs — Tab through each tab button
  • Product pages (e.g. /auth, /database) — section tab switchers
  • Narrow viewport — open the hamburger; Tab through menu buttons
  • /partners/catalog — filter / view controls
  • Blog view toggle (list ↔ grid)

Docs (staging link)

  • Desktop (≥ lg): top-right ⋯ menu (hamburger icon) — opens a dropdown that includes Theme. Not a separate theme button.
  • Mobile (< lg): top-right hamburger opens the sheet; close (X) is the raw button we tagged. Theme inside the sheet uses ThemeToggle / DropdownMenuTrigger from ui (already supposed to set tabIndex).
  • Code blocks — copy / language controls
  • Is this helpful? — X / check are Button from ui (should already Tab). After voting while signed in, the follow-up “What went well?” / “How can we improve?” text button is the raw one we tagged.
  • AI Tools → Copy as Markdown (right rail on a guide) — this is the only GuidesSidebar control this PR changed. “On this page” TOC items are links, not covered by this lint.
  • Reference docs (e.g. JS client reference) — section headers that expand/collapse in the left nav (Collapsible.Trigger)
  • Troubleshooting index — type in the search field, then Tab to the clear (X) control

Dashboard (studio)

No production UI changes in this PR (tests + lint config only). Quick Safari smoke that prior tabindex work still holds:

  • Project sidebar — Tab through primary nav links
  • Settings → General — Tab through inputs / buttons
  • Storage → Files — Tab a bucket row / file actions

Sweep www/docs/design-system (and Studio test fixtures the ratchet
excluded) so the shared Safari keyboard-focus lint can be a hard error
instead of a warn, and drop it from the Studio ratchet.
@dnywh
dnywh requested review from a team as code owners July 21, 2026 20:51
@supabase

supabase Bot commented Jul 21, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 22, 2026 5:12pm
docs Ready Ready Preview, Comment, Open in v0 Jul 22, 2026 5:12pm
studio-self-hosted Ready Ready Preview, Comment Jul 22, 2026 5:12pm
studio-staging Ready Ready Preview, Comment Jul 22, 2026 5:12pm
ui-library Ready Ready Preview, Comment Jul 22, 2026 5:12pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 22, 2026 5:12pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 22, 2026 5:12pm

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change adds explicit tabIndex={0} values to interactive controls across the design system, documentation, Studio test fixtures, and www components. The corresponding ESLint rule is promoted to an error and removed from Studio baseline configurations.

Changes

Explicit tabindex enforcement

Layer / File(s) Summary
Enforce explicit tabindex
packages/eslint-config-supabase/next.js, apps/studio/.github/*, apps/studio/scripts/*
The ESLint rule is changed from warning to error and removed from Studio baseline and ratchet configurations.
Design-system and documentation controls
apps/design-system/..., apps/docs/components/..., apps/docs/features/..., apps/docs/layouts/...
Interactive buttons, popover triggers, upload controls, copy controls, and navigation controls receive explicit tabIndex={0} values.
Studio test controls
apps/studio/components/**/*.test.tsx, apps/studio/tests/**/*.test.tsx
Mocked buttons and test helper controls receive explicit tabIndex={0} values without changing assertions or handlers.
www tab focus management
apps/www/app/..., apps/www/components/Sections/*, apps/www/components/TabsWithHighlights.tsx
Tab controls receive explicit tabIndex={0} values across product and section interfaces.
www interactive controls
apps/www/components/*, apps/www/pages/*, apps/www/app/partners/*, apps/www/app/state-of-startups/*
Navigation, toggle, copy, media, pricing, menu, and other controls receive explicit tabindex values; selected button and link markup is adjusted.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main change: promoting require-explicit-tabindex to error.
Description check ✅ Passed The description is mostly complete and matches the template, but it omits the required CONTRIBUTING.md acknowledgement section.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch danny/depr-627-promote-require-explicit-tabindex-to-error-sweep

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
apps/www/app/state-of-startups/components/YearToggle.tsx (1)

25-29: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Use roving focus for the radio group.

All role="radio" options receive tabIndex={0}, creating multiple tab stops without arrow-key navigation. Keep only the active option at tabIndex={0}, move inactive options to -1, and add arrow-key focus/selection handling—or remove the radio roles if these are intended to behave as independent buttons.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/app/state-of-startups/components/YearToggle.tsx` around lines 25 -
29, Update the radio options in the YearToggle component so only the active
option has tabIndex={0} and inactive options use -1, then add arrow-key handling
that moves focus and selection among options while preserving the current
selection behavior; alternatively, remove the radio roles if these controls are
intended to remain independent buttons.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/www/app/`(home)/_components/DashboardFeaturesSection.tsx:
- Line 38: Complete roving-tab keyboard navigation in
DashboardFeaturesSection.tsx (38-38), ApiSectionClient.tsx (123-123), and
IntegratesSectionClient.tsx (121-121): add key handling that updates the
respective active index for ArrowLeft/ArrowRight, preferably wrapping between
tabs, and Home/End to select the first/last tab; preserve the existing tabIndex
behavior and focus the newly active tab.

In `@apps/www/app/`(home)/_components/FrameworksSectionClient.tsx:
- Line 61: Implement roving-tabindex arrow-key navigation for every affected
tablist: FrameworksSectionClient.tsx (61-61), RLSSectionClient.tsx (114-114),
EnterpriseFormQuotes.tsx (13-13), Repos.tsx (19-19), TimedAccordionPanels.tsx
(39-39), TimedAccordionSection.tsx (28-28), TimedTabsSection.tsx (24-24), and
TabsWithHighlights.tsx (101-101). Add handlers so ArrowLeft/ArrowUp and
ArrowRight/ArrowDown move focus and activate the previous or next tab, while
Home and End move to the first or last tab, with appropriate wrapping or
existing component behavior preserved.

In `@apps/www/components/Nav/RightClickBrandLogo.tsx`:
- Line 130: Remove the explicit tabIndex={0} from the child rendered by
DropdownMenuItem asChild in the right-click brand logo menu, allowing the menu’s
roving tabindex focus behavior to control keyboard navigation without adding an
extra tab stop.

---

Nitpick comments:
In `@apps/www/app/state-of-startups/components/YearToggle.tsx`:
- Around line 25-29: Update the radio options in the YearToggle component so
only the active option has tabIndex={0} and inactive options use -1, then add
arrow-key handling that moves focus and selection among options while preserving
the current selection behavior; alternatively, remove the radio roles if these
controls are intended to remain independent buttons.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 982c80d0-78c3-402f-897c-3a7774671a78

📥 Commits

Reviewing files that changed from the base of the PR and between 3d83e02 and 6eac27b.

⛔ Files ignored due to path filters (1)
  • apps/design-system/__registry__/default/block/chart-bar-interactive.tsx is excluded by !apps/design-system/__registry__/**
📒 Files selected for processing (89)
  • apps/design-system/components/click-counter.tsx
  • apps/design-system/components/color-palette.tsx
  • apps/design-system/registry/default/block/chart-bar-interactive.tsx
  • apps/design-system/registry/default/example/form-patterns-pagelayout.tsx
  • apps/design-system/registry/default/example/form-patterns-sidepanel.tsx
  • apps/design-system/registry/default/example/page-layout-auth-emails.tsx
  • apps/design-system/registry/default/example/page-layout-edge-function.tsx
  • apps/design-system/registry/default/example/page-nav-demo.tsx
  • apps/design-system/registry/default/example/success-check-selected.tsx
  • apps/docs/components/ApiSchemaOption.tsx
  • apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx
  • apps/docs/components/Extensions/Extensions.tsx
  • apps/docs/components/Feedback/Feedback.tsx
  • apps/docs/components/GuidesSidebar.tsx
  • apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
  • apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
  • apps/docs/components/Navigation/NavigationMenu/TopNavDropdown.tsx
  • apps/docs/components/Options.tsx
  • apps/docs/components/TerraformProviderSchema.tsx
  • apps/docs/features/directives/CodeSample.client.tsx
  • apps/docs/features/docs/Reference.navigation.client.tsx
  • apps/docs/features/docs/Troubleshooting.ui.client.tsx
  • apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx
  • apps/docs/features/ui/PromptPanel.tsx
  • apps/docs/layouts/MainSkeleton.tsx
  • apps/studio/.github/eslint-rule-baselines.json
  • apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.test.tsx
  • apps/studio/components/interfaces/LocalDropdown.test.tsx
  • apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.test.tsx
  • apps/studio/components/interfaces/Settings/General/Project.test.tsx
  • apps/studio/components/interfaces/Storage/__tests__/DeleteBucketModal.test.tsx
  • apps/studio/components/interfaces/Storage/__tests__/EditBucketModal.test.tsx
  • apps/studio/components/interfaces/Storage/__tests__/EmptyBucketModal.test.tsx
  • apps/studio/components/layouts/ProjectLayout/index.test.tsx
  • apps/studio/components/ui/AIAssistantPanel/EdgeFunctionRenderer.test.tsx
  • apps/studio/components/ui/Shortcut.test.tsx
  • apps/studio/scripts/ratchet-rules.json
  • apps/studio/tests/components/SQLEditor/SQLEditor.test.tsx
  • apps/www/app/(home)/_components/DashboardFeaturesSection.tsx
  • apps/www/app/(home)/_components/FrameworksSectionClient.tsx
  • apps/www/app/(products)/auth/_components/ApiSectionClient.tsx
  • apps/www/app/(products)/auth/_components/RLSSectionClient.tsx
  • apps/www/app/(products)/database/_components/ApiSectionClient.tsx
  • apps/www/app/(products)/database/_components/SqlEditorSection.tsx
  • apps/www/app/(products)/database/_components/TableEditorSection.tsx
  • apps/www/app/(products)/database/_components/VisualDemo.tsx
  • apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsx
  • apps/www/app/(products)/realtime/_components/ApiSectionClient.tsx
  • apps/www/app/(products)/storage/_components/ApiSectionClient.tsx
  • apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsx
  • apps/www/app/partners/catalog/IntegrationsContent.tsx
  • apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx
  • apps/www/app/state-of-startups/components/CohortToggle.tsx
  • apps/www/app/state-of-startups/components/YearToggle.tsx
  • apps/www/components/Blog/BlogViewToggle.tsx
  • apps/www/components/Blog/DraftModeBanner.tsx
  • apps/www/components/Button.tsx
  • apps/www/components/Changelog/ChangelogDetailSidebar.tsx
  • apps/www/components/Contribute/SimilarSolvedThreads.tsx
  • apps/www/components/Contribute/UnansweredThreadsTable.tsx
  • apps/www/components/EnterpriseFormQuotes.tsx
  • apps/www/components/ImageFadeStack.tsx
  • apps/www/components/LaunchWeek/11/LW11Meetups.tsx
  • apps/www/components/LaunchWeek/15/LW15MainStage.tsx
  • apps/www/components/LaunchWeek/15/Ticketing/LW15TicketPage.tsx
  • apps/www/components/LaunchWeek/15/Ticketing/TicketURLCopy.tsx
  • apps/www/components/LaunchWeek/15/lw15.components.tsx
  • apps/www/components/LaunchWeek/7/LaunchSection/Announcement.tsx
  • apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx
  • apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx
  • apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx
  • apps/www/components/LaunchWeek/X/Album/Player.tsx
  • apps/www/components/Nav/HamburgerMenu.tsx
  • apps/www/components/Nav/MobileMenu.tsx
  • apps/www/components/Nav/RightClickBrandLogo.tsx
  • apps/www/components/OpenSource/Repos.tsx
  • apps/www/components/Pricing/ComputePricingCalculator.tsx
  • apps/www/components/Pricing/PricingComputeSection.tsx
  • apps/www/components/Products/Functions/FunctionsHero.tsx
  • apps/www/components/Products/Functions/LocalDXImage.tsx
  • apps/www/components/Sections/FunctionsUsecases.tsx
  • apps/www/components/Sections/TimedAccordionPanels.tsx
  • apps/www/components/Sections/TimedAccordionSection.tsx
  • apps/www/components/Sections/TimedTabsSection.tsx
  • apps/www/components/TabsWithHighlights.tsx
  • apps/www/pages/changelog.tsx
  • apps/www/pages/features.tsx
  • apps/www/pages/support.tsx
  • packages/eslint-config-supabase/next.js
💤 Files with no reviewable changes (2)
  • apps/studio/scripts/ratchet-rules.json
  • apps/studio/.github/eslint-rule-baselines.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens accessibility linting across the monorepo by promoting supabase/require-explicit-tabindex from warn to error, and sweeping www, docs, design-system, plus Studio test fixtures/ratchet config to comply—primarily to improve Safari keyboard focus behavior.

Changes:

  • Promote supabase/require-explicit-tabindex to an ESLint error in the shared Next.js config.
  • Add explicit tabIndex handling across many raw <button> / role="tab" controls in www, docs, and design-system.
  • Remove the rule from Studio’s ratchet rules and baselines; update Studio test fixtures to satisfy the stricter linting.

Reviewed changes

Copilot reviewed 90 out of 90 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/eslint-config-supabase/next.js Promote require-explicit-tabindex to error
apps/www/pages/support.tsx Add explicit tabIndex to button trigger
apps/www/pages/features.tsx Add explicit tabIndex to view-mode buttons
apps/www/pages/changelog.tsx Add explicit tabIndex to product-tag buttons
apps/www/components/TabsWithHighlights.tsx Roving tabIndex for marketing tabs
apps/www/components/Sections/TimedTabsSection.tsx Roving tabIndex for timed tabs
apps/www/components/Sections/TimedAccordionSection.tsx Roving tabIndex for accordion tabs
apps/www/components/Sections/TimedAccordionPanels.tsx Roving tabIndex for panel buttons + import reorder
apps/www/components/Sections/FunctionsUsecases.tsx Add explicit tabIndex to example selector button
apps/www/components/Products/Functions/LocalDXImage.tsx Add explicit tabIndex to copy button
apps/www/components/Products/Functions/FunctionsHero.tsx Add explicit tabIndex to copy button
apps/www/components/Pricing/PricingComputeSection.tsx Add explicit tabIndex to expand/collapse button
apps/www/components/Pricing/ComputePricingCalculator.tsx Add explicit tabIndex to remove-item button
apps/www/components/OpenSource/Repos.tsx Roving tabIndex for repo tabs
apps/www/components/Nav/RightClickBrandLogo.tsx Add explicit tabIndex to menu clipboard button
apps/www/components/Nav/MobileMenu.tsx Add explicit tabIndex to close button
apps/www/components/Nav/HamburgerMenu.tsx Add explicit tabIndex to hamburger button
apps/www/components/LaunchWeek/X/Album/Player.tsx Add explicit tabIndex to play/pause button
apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx Add explicit tabIndex to nested button in Link
apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx Add explicit tabIndex to button
apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx Add explicit tabIndex to button
apps/www/components/LaunchWeek/7/LaunchSection/Announcement.tsx Add explicit tabIndex to announcement button
apps/www/components/LaunchWeek/15/Ticketing/TicketURLCopy.tsx Add explicit tabIndex to copy button
apps/www/components/LaunchWeek/15/Ticketing/LW15TicketPage.tsx Add explicit tabIndex to color selector buttons
apps/www/components/LaunchWeek/15/LW15MainStage.tsx Add explicit tabIndex to carousel nav buttons
apps/www/components/LaunchWeek/15/lw15.components.tsx Add explicit tabIndex to theme switcher buttons + import reorder
apps/www/components/LaunchWeek/11/LW11Meetups.tsx Add explicit tabIndex to meetup selector button + import reorder
apps/www/components/ImageFadeStack.tsx Add explicit tabIndex to nav/play controls
apps/www/components/EnterpriseFormQuotes.tsx Roving tabIndex for rotating quote tabs
apps/www/components/Contribute/UnansweredThreadsTable.tsx Add explicit tabIndex to several action buttons
apps/www/components/Contribute/SimilarSolvedThreads.tsx Add explicit tabIndex to expand + feedback buttons
apps/www/components/Changelog/ChangelogDetailSidebar.tsx Add explicit tabIndex to copy button
apps/www/components/Button.tsx Add explicit tabIndex to shared Button component
apps/www/components/Blog/DraftModeBanner.tsx Add explicit tabIndex to dismiss button
apps/www/components/Blog/BlogViewToggle.tsx Add explicit tabIndex to view toggle buttons
apps/www/app/state-of-startups/components/YearToggle.tsx Add explicit tabIndex to radio-like buttons
apps/www/app/state-of-startups/components/CohortToggle.tsx Add explicit tabIndex to option buttons
apps/www/app/partners/catalog/IntegrationsContent.tsx Add explicit tabIndex to view toggle buttons
apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx Add explicit tabIndex to listing buttons
apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/storage/_components/ApiSectionClient.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/realtime/_components/ApiSectionClient.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsx Roving tabIndex for integrations tabs
apps/www/app/(products)/database/_components/VisualDemo.tsx Add explicit tabIndex to toolbar buttons
apps/www/app/(products)/database/_components/TableEditorSection.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/database/_components/SqlEditorSection.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/database/_components/ApiSectionClient.tsx Add explicit tabIndex to example tabs
apps/www/app/(products)/auth/_components/RLSSectionClient.tsx Roving tabIndex for RLS example tabs
apps/www/app/(products)/auth/_components/ApiSectionClient.tsx Roving tabIndex for API example tabs
apps/www/app/(home)/_components/FrameworksSectionClient.tsx Roving tabIndex for framework tabs
apps/www/app/(home)/_components/DashboardFeaturesSection.tsx Roving tabIndex for feature tabs
apps/studio/tests/components/SQLEditor/SQLEditor.test.tsx Add explicit tabIndex to mocked buttons
apps/studio/scripts/ratchet-rules.json Remove rule from Studio ratchet list
apps/studio/components/ui/Shortcut.test.tsx Add explicit tabIndex to test buttons
apps/studio/components/ui/AIAssistantPanel/EdgeFunctionRenderer.test.tsx Add explicit tabIndex to mocked buttons
apps/studio/components/layouts/ProjectLayout/index.test.tsx Add explicit tabIndex to mocked ButtonTooltip button
apps/studio/components/interfaces/Storage/tests/EmptyBucketModal.test.tsx Add explicit tabIndex to “Open” button
apps/studio/components/interfaces/Storage/tests/EditBucketModal.test.tsx Add explicit tabIndex to “Open” button
apps/studio/components/interfaces/Storage/tests/DeleteBucketModal.test.tsx Add explicit tabIndex to “Open” button
apps/studio/components/interfaces/Settings/General/Project.test.tsx Add explicit tabIndex to mocked Button
apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.test.tsx Add explicit tabIndex to mocked button
apps/studio/components/interfaces/LocalDropdown.test.tsx Add explicit tabIndex to mocked buttons
apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.test.tsx Add explicit tabIndex to actions buttons in tests
apps/studio/.github/eslint-rule-baselines.json Remove rule from Studio baseline tracking
apps/docs/layouts/MainSkeleton.tsx Add explicit tabIndex to mobile header button
apps/docs/features/ui/PromptPanel.tsx Add explicit tabIndex to expand/copy buttons
apps/docs/features/ui/CodeBlock/CodeBlock.client.tsx Add explicit tabIndex to code controls
apps/docs/features/docs/Troubleshooting.ui.client.tsx Add explicit tabIndex to clear-search button
apps/docs/features/docs/Reference.navigation.client.tsx Add explicit tabIndex to collapsible trigger button
apps/docs/features/directives/CodeSample.client.tsx Add explicit tabIndex to “View sources” trigger
apps/docs/components/TerraformProviderSchema.tsx Add explicit tabIndex to popover trigger buttons
apps/docs/components/Options.tsx Add explicit tabIndex to options toggle button
apps/docs/components/Navigation/NavigationMenu/TopNavDropdown.tsx Add explicit tabIndex to dropdown trigger
apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx Add explicit tabIndex to dropdown button
apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx Add explicit tabIndex to close button
apps/docs/components/GuidesSidebar.tsx Add explicit tabIndex to copy markdown button
apps/docs/components/Feedback/Feedback.tsx Add explicit tabIndex to feedback button
apps/docs/components/Extensions/Extensions.tsx Add explicit tabIndex to reset button
apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx Add explicit tabIndex to provider select buttons + import reorder
apps/docs/components/ApiSchemaOption.tsx Add explicit tabIndex to collapsible trigger button + import reorder
apps/design-system/registry/default/example/success-check-selected.tsx Add explicit tabIndex to pressed-state buttons
apps/design-system/registry/default/example/page-nav-demo.tsx Add explicit tabIndex to nav demo buttons
apps/design-system/registry/default/example/page-layout-edge-function.tsx Add explicit tabIndex to nav demo buttons
apps/design-system/registry/default/example/page-layout-auth-emails.tsx Add explicit tabIndex to nav + template buttons
apps/design-system/registry/default/example/form-patterns-sidepanel.tsx Add explicit tabIndex to upload/link-style buttons
apps/design-system/registry/default/example/form-patterns-pagelayout.tsx Add explicit tabIndex to upload/link-style buttons
apps/design-system/registry/default/block/chart-bar-interactive.tsx Add explicit tabIndex to chart toggle buttons
apps/design-system/components/color-palette.tsx Add explicit tabIndex to copy buttons
apps/design-system/components/click-counter.tsx Add explicit tabIndex to counter button
apps/design-system/registry/default/block/chart-bar-interactive.tsx Add explicit tabIndex to chart toggle buttons

Comment thread apps/www/components/Button.tsx Resolved
Keep marketing tabs fully tabbable instead of incomplete roving
tabIndex, render www Button as a link or button (not nested), unwrap
ProductButtonListItem, and let Radix manage in-menu focus.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 90 changed files in this pull request and generated no new comments.

@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  240 passed
skipped  5 skipped

Details

stats  245 tests across 29 suites
duration  13 minutes, 51 seconds
commit  3d2d981

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes generally LGTM! Approving on behalf of dashboard

@dnywh
dnywh force-pushed the danny/depr-627-promote-require-explicit-tabindex-to-error-sweep branch from 7389df8 to 70a21f1 Compare July 22, 2026 16:39

@czenko czenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this 🙏

@dnywh
dnywh merged commit 6f6bada into master Jul 22, 2026
40 of 41 checks passed
@dnywh
dnywh deleted the danny/depr-627-promote-require-explicit-tabindex-to-error-sweep branch July 22, 2026 19:21
@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784748282)

Score Average Improvements Regressions
Completeness 98.9% (+0pp) 1 🟢 1 🔴
Conciseness 41.4% (+6pp) 11 🟢 4 🔴
Correctness 71.1% (+1pp) 2 🟢 1 🔴
Docs Faithfulness 67% (+2pp) 5 🟢 2 🔴
Goal Completion 77.6% (-2pp) 4 🟢 6 🔴
Tool Usage 70.6% (-8pp) - 3 🔴
Knowledge Usage 94.9% (-3pp) - 1 🔴
Safety 100% (+10pp) 3 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 95% (-5pp) - 1 🔴
Time_to_first_token 2.12tok (-0.24tok) 20 🟢 9 🔴
Llm_calls 6.72 (+0.13) 12 🟢 8 🔴
Tool_calls 2.91 (-0.37) 6 🟢 17 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24865.53tok (+1203.51tok) 10 🟢 15 🔴
Prompt_cached_tokens 7179.77tok (-1559.54tok) 4 🟢 20 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 599.39tok (-129.05tok) 21 🟢 8 🔴
Completion_reasoning_tokens 98.99tok (-22.02tok) 21 🟢 5 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25464.92tok (+1074.46tok) 12 🟢 17 🔴
Estimated_cost 0$ (+0$) 7 🟢 19 🔴
Duration 13.35s (-0.2s) 17 🟢 12 🔴
Llm_duration 8.53s (-2.15s) 25 🟢 4 🔴

const chart = key as keyof typeof chartConfig
return (
<button
<button tabIndex={0}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dnywh sorry I am late to the party, but button elements are tabbable by default, they shouldn't need this, unless something else is breaking the keyboard navigation. I suggest undoing this and actually finding the source of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants