Skip to content

fix: Skip to main content link should be visible when focused - #48303

Merged
djhi merged 1 commit into
masterfrom
gildasgarcia/fe-3805-add-skip-navigation-for-repeated-dashboard-sections-2
Jul 24, 2026
Merged

djhi merged 1 commit into
masterfrom
gildasgarcia/fe-3805-add-skip-navigation-for-repeated-dashboard-sections-2

Conversation

@djhi

@djhi djhi commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

#47694 introduced a Skip to main content link allowing keyboard users to jump to the main section without having to tab through all the navigation elements.

However, this link is completely invisible which means sighted users will not see what is actually focused.

Solution

The best practice for such links is to make them visible on focus. For instance on https://tetralogical.com:
image

Here's what it looks like on Studio:
image

How to test

@djhi
djhi requested a review from a team as a code owner July 24, 2026 13:45
@vercel

vercel Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

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

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

Request Review

@supabase

supabase Bot commented Jul 24, 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 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The Studio default layout updates the “Skip to content” link from screen-reader-only styling to focus-visible button styling with absolute positioning, while preserving its #main target and keyboard tab index.

Changes

Studio accessibility

Layer / File(s) Summary
Skip-link focus styling
apps/studio/components/layouts/DefaultLayout.tsx
Imports shared buttonVariants and cn utilities and applies them to the repositioned “Skip to content” link.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

Suggested reviewers: avallete

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 clearly and concisely describes making the skip link visible when focused.
Description check ✅ Passed The description covers the problem, solution, and test steps, though it does not follow the exact template headings.
✨ 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 gildasgarcia/fe-3805-add-skip-navigation-for-repeated-dashboard-sections-2

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.

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  6 minutes, 8 seconds
commit  ea5ffbc

Flaky tests

Features › realtime-inspector.spec.ts › Realtime Inspector › Broadcast Messages › clicking broadcast message shows detail panel

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

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 12 seconds
commit  ea5ffbc

Flaky tests

Features › table-editor.spec.ts › table editor › shortcut saves fk before column update

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

@djhi
djhi merged commit 2a17985 into master Jul 24, 2026
38 checks passed
@djhi
djhi deleted the gildasgarcia/fe-3805-add-skip-navigation-for-repeated-dashboard-sections-2 branch July 24, 2026 14:04
@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784902068)

Score Average Improvements Regressions
Completeness 100% - -
Conciseness 43.1% - -
Docs Faithfulness 62.2% - -
Goal Completion 84.5% - -
Knowledge Usage 97.4% - -
Tool Usage 76.5% - -
Correctness 66.7% - -
SQL Identifier Quoting 100% - -
SQL Validity 100% - -
Safety 88.1% - -
Time_to_first_token 3tok (-0.43tok) 20 🟢 9 🔴
Llm_calls 7.22 (+4.7) 29 🟢 -
Tool_calls 3 (+0.13) 12 🟢 8 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 23908.18tok (+14765.08tok) 5 🟢 20 🔴
Prompt_cached_tokens 7362.21tok (+2024.46tok) 21 🟢 5 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 588.59tok (+163.15tok) 10 🟢 19 🔴
Completion_reasoning_tokens 94.36tok (+2.72tok) 11 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok - -
Completion_rejected_prediction_tokens 0tok - -
Completion_audio_tokens 0tok - -
Total_tokens 24496.77tok (+14928.23tok) 7 🟢 22 🔴
Estimated_cost 0$ (+0$) 8 🟢 19 🔴
Duration 16.33s (+1.75s) 11 🟢 18 🔴
Llm_duration 12.5s (+2.94s) 9 🟢 20 🔴

dnywh added a commit that referenced this pull request Jul 28, 2026
…#48314)

## What kind of change does this PR introduce?

Feature / a11y polish

## What is the current behavior?

Studio and Docs each had their own skip-to-content link (different
styling and behaviour). www and design-system had none.

## What is the new behavior?

Shared `SkipToContent` in `ui-patterns`, adopted by Studio, Docs, www,
and design-system. Documented as a fragment with a short note under
Accessibility → Jumping ahead.

Tab once to reveal the button (top-left), Enter to jump to a
content-only `<main>`.

| After |
| --- |
| <img width="836" height="324" alt="CleanShot 2026-07-24 at 14 08
47@2x"
src="https://github.com/user-attachments/assets/6df29452-e53a-4eca-8f64-946f2b9f605d"
/> |

## To test

Shared steps for every app: enable Tab key navigation if needed, load
the preview, press **Tab** once — skip button should slide in top-left.
Press **Enter** — focus jumps to main content (no blue ring on
`<main>`). Press **Tab** again — first interactive control in the page
body, not the sidebar/nav. Hover the skip button — solid fill, clear
hover state, no chrome showing through.

- **Studio** —
[preview](https://studio-staging-git-dnywh-featskip-to-content-supabase.vercel.app)
→ sign in → any project page
- **Docs** —
[preview](https://docs-git-dnywh-featskip-to-content-supabase.vercel.app)
→ any docs page with sidebar
- **www** —
[preview](https://zone-www-dot-com-git-dnywh-featskip-to-content-supabase.vercel.app)
→ homepage or any marketing page with the default nav
- **Design system** —
[preview](https://design-system-git-dnywh-featskip-to-content-supabase.vercel.app)
→ any docs page (confirm Tab from content does **not** walk the
sidebar), plus [Skip to Content
fragment](https://design-system-git-dnywh-featskip-to-content-supabase.vercel.app/docs/fragments/skip-to-content)

## Additional context

Follow-up to #47694 / #48303 (Studio) and #47515 (Docs).

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

- **New Features**
- Added a reusable “Skip to content” accessibility link across key
layouts and pages.
- Updated main landmarks to support keyboard focus and skip-link
navigation (`id="main"`).
- **Accessibility**
- Skip links now follow consistent landmark-target conventions and
remain hidden until focused.
- Improved documentation for skip links/jump shortcuts in persistent
chrome layouts.
- **Documentation**
- Added a dedicated Skip to Content fragment, navigation entry, and
expanded accessibility guidance.
  - Updated button description wording in component docs.
- **Tests**
  - Added component tests for SkipToContent.
- **Chores**
  - Exposed SkipToContent via additional public package entry points.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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.

2 participants