Skip to content

fix(ui): bake explicit tabindex into interactive primitives - #47984

Merged
dnywh merged 6 commits into
masterfrom
danny/depr-621-finish-safari-keyboard-focus-for-interactive-primitives-lint
Jul 17, 2026
Merged

dnywh merged 6 commits into
masterfrom
danny/depr-621-finish-safari-keyboard-focus-for-interactive-primitives-lint

Conversation

@dnywh

@dnywh dnywh commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

A11y fix for keyboard focus (esp. Safari), plus a lint rule to keep it from regressing.

What is the current behavior?

Button already defaults an explicit tabIndex={0} (#40458). Other interactive primitives (Checkbox, bare triggers, etc.) still skip Tab focus in Safari unless macOS Keyboard navigation is on. Raw <button> call sites have no guardrail.

What is the new behavior?

  • Same explicit tabIndex default baked into Checkbox, Accordion Trigger, Collapsible Trigger, Dropdown Menu / Popover / Dialog / Sheet / Alert Dialog triggers, Table Head Sort, Command reset, sidebar actions, and shadcn Button
  • supabase/require-explicit-tabindex ESLint rule, ratcheted in Studio (82 existing violations)
  • Design-system accessibility docs list which primitives bake this in

Resolves DEPR-621

Additional context

To test

Use Safari with macOS Keyboard navigation off (the default). Chrome once for a sanity pass.

Storage → Files bucket (list view) — Checkbox

  1. Open an empty folder (or one with only folders). Header “select all” Checkbox is disabled and skipped by Tab — expected (columnFiles.length === 0).
  2. Upload a file (e.g. an image). Header Checkbox enables.
  3. Tab to it and toggle with Space. Row Checkboxes should also be Tab-reachable.

Storage → Analytics bucket → bucket details — Accordion Trigger

On an Analytics bucket with no tables yet, Tab to the “Create your first table via PyIceberg” Accordion Triggers and open/close with Enter/Space.

Elsewhere (light smoke)

  • Bare Dropdown / Popover / Collapsible triggers still Tab + activate
  • *Trigger asChild><Button> (Sheets, Dialogs, menus) still one Tab stop; open/close fine
  • Disabled controls stay out of the Tab order

Later

Chip-away of the 82 raw Studio buttons (and remove exceptions from rule). Prefer migrating those to Button from ui later.

Summary by CodeRabbit

  • Accessibility Improvements
    • Improved keyboard focus behavior across common interactive controls (buttons, dialog/popover/dropdown/sheet triggers, accordions/collapsibles, checkboxes, and sidebar actions).
    • Disabled controls now default to tabIndex={-1}, while enabled controls default to tabIndex={0}.
    • Added explicit tabIndex handling for command reset and table sort header controls.
  • New Features
    • Added a shared getExplicitTabIndex utility used by UI components to standardize focus behavior.
  • Documentation
    • Updated accessibility guidance to clarify which components include built-in focus/tabIndex handling and which require manual setup.
  • Developer Experience
    • Added an ESLint rule to enforce explicit tabIndex on raw button-like elements, with corresponding baseline updates.

Extend the Button Safari focus default to other high-traffic triggers and add a ratcheted eslint rule so raw button call sites don't regress.
@dnywh
dnywh requested review from a team as code owners July 15, 2026 22:12
@vercel

vercel Bot commented Jul 15, 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 16, 2026 5:39pm
docs Ready Ready Preview, Comment, Open in v0 Jul 16, 2026 5:39pm
studio-self-hosted Ready Ready Preview, Comment Jul 16, 2026 5:39pm
studio-staging Ready Ready Preview, Comment Jul 16, 2026 5:39pm
ui-library Ready Ready Preview, Comment Jul 16, 2026 5:39pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 16, 2026 5:39pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 16, 2026 5:39pm

Request Review

@supabase

supabase Bot commented Jul 15, 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 ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This change adds an ESLint rule requiring explicit tabIndex on raw button-like elements, enables and baselines it, and updates shared UI controls to derive focus behavior from disabled and explicit tabIndex props.

Changes

Safari tabindex enforcement

Layer / File(s) Summary
Shared tabindex resolution
packages/ui/src/lib/utils/getExplicitTabIndex.ts, packages/ui/src/lib/utils/index.ts
Adds a shared helper that preserves explicit values and defaults to -1 for disabled controls or 0 otherwise.
ESLint rule and rollout
packages/eslint-config-supabase/rules/require-explicit-tabindex.js, packages/eslint-config-supabase/next.js, apps/studio/.github/..., apps/studio/scripts/ratchet-rules.json
Adds and enables supabase/require-explicit-tabindex, with existing violations recorded in ESLint baselines.
Primitive control tabindex defaults
packages/ui/src/components/Button/Button.tsx, packages/ui/src/components/shadcn/ui/{accordion,alert-dialog,button,checkbox,collapsible,dialog,dropdown-menu,popover,sheet}.tsx
Shared controls compute explicit tabIndex values while forwarding refs, disabled state, and remaining props.
Compound control focusability
packages/ui/src/components/shadcn/ui/{sidebar,command,table}.tsx
Sidebar actions, the command reset button, and table sorting controls now provide explicit focus and disabled behavior.
Accessibility documentation
apps/design-system/content/docs/accessibility.mdx
Focus guidance lists controls with built-in behavior and distinguishes bespoke interactive elements requiring manual props.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: djhi

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.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 is concise and accurately summarizes the main change: adding explicit tabindex handling to interactive primitives.
Description check ✅ Passed The description covers the main required sections well, but it is missing the template’s CONTRIBUTING.md acknowledgment 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-621-finish-safari-keyboard-focus-for-interactive-primitives-lint

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: 1

🤖 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 `@packages/ui/src/components/shadcn/ui/command.tsx`:
- Around line 72-73: Update the reset button alongside CommandInput so it
inherits the input’s disabled state and is not explicitly placed in the tab
sequence when disabled. Preserve normal reset-button interaction and focus
behavior when the input is enabled.
🪄 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: 53e57937-57ed-448b-8f9d-4749c2b06e6b

📥 Commits

Reviewing files that changed from the base of the PR and between 9669e5e and d21f685.

📒 Files selected for processing (17)
  • apps/design-system/content/docs/accessibility.mdx
  • apps/studio/.github/eslint-rule-baselines.json
  • apps/studio/scripts/ratchet-rules.json
  • packages/eslint-config-supabase/next.js
  • packages/eslint-config-supabase/rules/require-safari-tabindex.js
  • packages/ui/src/components/shadcn/ui/accordion.tsx
  • packages/ui/src/components/shadcn/ui/alert-dialog.tsx
  • packages/ui/src/components/shadcn/ui/button.tsx
  • packages/ui/src/components/shadcn/ui/checkbox.tsx
  • packages/ui/src/components/shadcn/ui/collapsible.tsx
  • packages/ui/src/components/shadcn/ui/command.tsx
  • packages/ui/src/components/shadcn/ui/dialog.tsx
  • packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
  • packages/ui/src/components/shadcn/ui/popover.tsx
  • packages/ui/src/components/shadcn/ui/sheet.tsx
  • packages/ui/src/components/shadcn/ui/sidebar.tsx
  • packages/ui/src/components/shadcn/ui/table.tsx

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  238 passed
skipped  5 skipped

Details

stats  243 tests across 28 suites
duration  4 minutes
commit  d21f685

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

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  238 passed
skipped  5 skipped

Details

stats  243 tests across 28 suites
duration  4 minutes, 15 seconds
commit  fcbf1e9

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

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 improves Safari keyboard navigation in the shared shadcn/Radix UI primitives by defaulting interactive triggers/controls to tabIndex={0} (and -1 when disabled in most cases), and introduces a custom ESLint rule to prevent regressions from raw <button> / role="button" usage without an explicit tabIndex. It also updates Studio’s lint ratchet baseline and the design-system accessibility docs to document the new defaults.

Changes:

  • Add Safari-friendly tabIndex defaults across multiple UI primitives (Checkbox, Accordion/Collapsible triggers, Dialog/Sheet/Popover/DropdownMenu triggers, sidebar actions, and table header sort).
  • Add supabase/require-safari-tabindex ESLint rule and wire it into the shared Next.js ESLint config; ratchet it in Studio with an initial baseline.
  • Update design-system accessibility documentation to list primitives that now bake in the Safari tabIndex behavior.

Reviewed changes

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

Show a summary per file
File Description
packages/ui/src/components/shadcn/ui/table.tsx Makes table header sort control tabbable in Safari via tabIndex={0}.
packages/ui/src/components/shadcn/ui/sidebar.tsx Ensures sidebar menu/action buttons default to Safari-tabbable tabIndex, including disabled handling.
packages/ui/src/components/shadcn/ui/sheet.tsx Wraps SheetTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/popover.tsx Wraps PopoverTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/dropdown-menu.tsx Wraps DropdownMenuTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/dialog.tsx Wraps DialogTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/command.tsx Adds type="button" and Safari tabbability for the reset icon button in CommandInput.
packages/ui/src/components/shadcn/ui/collapsible.tsx Wraps CollapsibleTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/checkbox.tsx Adds Safari-friendly tabIndex default to Checkbox root, respecting disabled state.
packages/ui/src/components/shadcn/ui/button.tsx Adds Safari-friendly tabIndex default to Button, respecting disabled state and preserving overrides.
packages/ui/src/components/shadcn/ui/alert-dialog.tsx Wraps AlertDialogTrigger to default tabIndex (and -1 when disabled).
packages/ui/src/components/shadcn/ui/accordion.tsx Updates AccordionTrigger to default tabIndex (and -1 when disabled).
packages/eslint-config-supabase/rules/require-safari-tabindex.js Adds a new ESLint rule to require explicit tabIndex on raw <button> / role="button".
packages/eslint-config-supabase/next.js Registers the new rule in the Supabase ESLint plugin and enables it (warn) for TS/TSX.
apps/studio/scripts/ratchet-rules.json Adds the new rule to Studio’s ratchet list.
apps/studio/.github/eslint-rule-baselines.json Establishes the Studio baseline count for the new rule (82 existing violations).
apps/design-system/content/docs/accessibility.mdx Documents which primitives now bake in the Safari tabIndex default.
Comments suppressed due to low confidence (1)

packages/ui/src/components/shadcn/ui/command.tsx:78

  • The reset icon button is always rendered when showResetIcon is true, and is only hidden via opacity-0. With the new tabIndex={0} Safari will now allow keyboard focus to land on an invisible control when the input value is empty, which is confusing for keyboard users. Consider removing it from the tab order (and disabling it) when there’s no value to clear.
        <button
          type="button"
          tabIndex={0}
          onClick={handleReset}
          className={cn(
            'text-foreground-lighter hover:text-foreground-light hover:cursor-pointer transition-all opacity-0 duration-100',
            !!props.value?.length && 'opacity-100'
          )}

Also Title Case component names in the accessibility docs prose.
@dnywh dnywh changed the title fix(ui): finish Safari keyboard focus for interactive primitives fix(ui): bake explicit tabindex into interactive primitives Jul 16, 2026
dnywh added 2 commits July 16, 2026 13:25
Lead with what we set (explicit tabIndex) and keep Safari as the why in docs and comments.
Share the explicit tabIndex default across Button and interactive primitives so the Safari keyboard-focus rule lives in one place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Extracted to reduce repetition in the same file of:

const computedTabIndex = tabIndex !== undefined ? tabIndex : disabled ? -1 : 0

"jsx-a11y/heading-has-content": 2,
"jsx-a11y/no-distracting-elements": 0
"jsx-a11y/no-distracting-elements": 0,
"supabase/require-explicit-tabindex": 82

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

82 allowed leftovers for this rule right now, as per the PR description. Shrinking this number is follow-up work.

This and the below lines will be shrinked in future work.

@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.

Tested on preview as per instructions! 🙏

@dnywh
dnywh merged commit 6f19dfe into master Jul 17, 2026
38 checks passed
@dnywh
dnywh deleted the danny/depr-621-finish-safari-keyboard-focus-for-interactive-primitives-lint branch July 17, 2026 14:18
@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784298108)

Score Average Improvements Regressions
Completeness 93.1% (-5pp) 2 🟢 6 🔴
Conciseness 42.5% (0pp) 6 🟢 8 🔴
Docs Faithfulness 63.7% (-5pp) 3 🟢 4 🔴
Goal Completion 75.9% (-6pp) 3 🟢 8 🔴
Correctness 66.7% (-2pp) 2 🟢 4 🔴
Knowledge Usage 97.4% (+0pp) 1 🟢 1 🔴
Safety 100% (+10pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 71.4% (-1pp) - -
URL Validity 100% - -
Time_to_first_token 3.23tok (-0.07tok) 19 🟢 10 🔴
Llm_calls 6.52 (-0.64) 6 🟢 17 🔴
Tool_calls 3.13 (+0.15) 11 🟢 9 🔴
Errors 0.05 (+0.05) - 2 🔴
Llm_errors 0.02 (+0.02) - 2 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 27858.45tok (+3057.72tok) 11 🟢 14 🔴
Prompt_cached_tokens 7356.32tok (-217.75tok) 13 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 716.03tok (+112.52tok) 10 🟢 19 🔴
Completion_reasoning_tokens 94.72tok (-5.29tok) 11 🟢 16 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 28574.48tok (+3170.24tok) 14 🟢 15 🔴
Estimated_cost 0$ (+0$) 17 🟢 10 🔴
Duration 17.99s (-0.27s) 16 🟢 13 🔴
Llm_duration 11.65s (-0.76s) 19 🟢 10 🔴

dnywh added a commit that referenced this pull request Jul 20, 2026
## What kind of change does this PR introduce?

A11y cleanup follow-up to #47984 /
[DEPR-626](https://linear.app/supabase/issue/DEPR-626).

## What is the current behavior?

Studio had 82 ratcheted `supabase/require-explicit-tabindex` violations
(raw `<button>` / `role="button"` without explicit `tabIndex`).

## What is the new behavior?

- Explicit `tabIndex={0}` (or disabled → `-1`) on those Studio call
sites across nav, `components/ui`, Database, Storage, and the remainder
- Ratchet baseline cleared (**82 → 0**) and the rule **removed from the
Studio ratchet** (debt is gone; ratchet is temporary)
- Rule remains a shared **`warn`** for now — promoting to `error` (and
sweeping www/docs/design-system) is a follow-up
- Also fixed the learn/ui-library call sites that surfaced while
experimenting with error promotion
- Small follow-ups where making controls focusable exposed gaps:
accessible names, disabled/focus consistency, focus-ring polish on
To-test surfaces, home section `KeyboardSensor`, and an E2E locator
tightened after `aria-label="Remove column"`

Prefer migrating to `Button` from `ui` in future touch-ups; this PR
takes the minimal path so Studio debt can stay at zero.

## Additional context

Batches landed together so baseline conflicts stayed simple while
chipping away:

- Hotspots / nav (FirstLevelNav, Marketplace, AttachmentUpload, Column,
Tabs, …)
- `components/ui` shared
- Database + Storage
- Remainder

**Out of scope / intentional deferrals**

- Promoting `supabase/require-explicit-tabindex` to a lint **error**
(follow-up after www/docs/design-system sweeps)
- Tabs/Radio roving, tooltips, context menus, in-menu items
- Full keyboard-accessible tab-close UX (close stays hover +
`tabIndex={-1}`; context menu still closes tabs)
- Data API docs links (`/project/<ref>/api` redirect)

**Reviewer notes**

- Rule only flags raw `<button>` / `role="button"` without a `tabIndex`
prop. `Button` from `ui` already bakes this in
- `tabIndex={-1}` is intentional for disabled controls, in-menu /
roving-focus children, and hover-only tab close
- For dnd-kit grips, put `tabIndex` **after** `{...attributes}` so it
isn’t overwritten (TS2783)

### To test

Use **Safari** with macOS Keyboard navigation **off** (System Settings →
Keyboard). Chrome once for a sanity pass. For each surface below: Tab
until the control is focused, then activate with Enter/Space where
relevant.

1. **API Docs side panel** (Table Editor → open a table → **API docs**)
- Floating API Docs panel — **not** `/project/<ref>/api` (that redirects
to Data API docs; language ToggleGroup uses arrow keys; links are out of
scope)
- Left nav buttons — Tab through several and activate one; active
highlight / navigation still works

2. **Integrations → Marketplace**
- Enable **Integrations layout** feature preview first (avatar menu →
Feature previews)
   - `/org/<slug>/integrations` or project integrations marketplace
   - “Clear all”, grid/list toggles — Tab + activate

3. **Table Editor → create a table → Columns**
- Drag handles only appear while **creating** (not when editing an
existing table)
   - Tab to grip / remove (X) / sensitive-data eye if shown

4. **Project Home** — section drag handles
   - Tab to a grip (visible focus ring)
- Optional: Space to pick up, arrows to move, Space/Esc to drop
(KeyboardSensor added)
   - Mouse dnd still works

5. **Storage → Policies** — expand/collapse bucket list chevron
(design-system focus ring, no stuck grey open bg)

6. **Support form** (Help → Support) — attachment remove (×) and
add-attachment control when visible

Disabled controls should be **skipped** by Tab.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Accessibility Improvements**
* Improved keyboard navigation throughout Studio by explicitly managing
focus (`tabIndex`) across many interactive controls (menus, tabs,
tables, charts, dialogs, navigation, and form actions).
* Disabled or non-interactive controls are now removed from the tab
order (or made unfocusable), while available actions remain reachable.
* Ensured `type="button"` on relevant controls to prevent unintended
submissions, and refined keyboard focus behavior for various toggles and
copy/remove actions.
* **Chores**
* Updated the ESLint rule baseline configuration to match the new focus
behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
dnywh added a commit that referenced this pull request Jul 22, 2026
## 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](https://linear.app/supabase/issue/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](https://zone-www-dot-com-git-danny-depr-627-promote-req-7ae43c-supabase.vercel.app/))

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

### Docs ([staging
link](https://docs-git-danny-depr-627-promote-require-explici-25e46d-supabase.vercel.app/))

- [x] **Desktop (≥ lg):** top-right **⋯ menu** (hamburger icon) — opens
a dropdown that includes Theme. Not a separate theme button.
- [x] **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`).
- [x] **Code blocks** — copy / language controls
- [x] **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.
- [x] **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.
- [x] **Reference docs** (e.g. JS client reference) — section headers
that expand/collapse in the left nav (`Collapsible.Trigger`)
- [x] **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:

- [x] Project sidebar — Tab through primary nav links
- [x] Settings → General — Tab through inputs / buttons
- [x] Storage → Files — Tab a bucket row / file actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants