Skip to content

fix(studio): replace form-group green focus shadows with focus-ring - #48221

Merged
dnywh merged 3 commits into
masterfrom
danny/depr-629-form-group-focus
Jul 31, 2026
Merged

dnywh merged 3 commits into
masterfrom
danny/depr-629-form-group-focus

Conversation

@dnywh

@dnywh dnywh commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Bug fix / a11y cleanup (DEPR-629).

What is the current behavior?

apps/studio/styles/globals.css still styles .form-group / .form-control inputs with a legacy soft green focus glow (box-shadow: … rgba(62, 207, 142, …) plus ring-current). That can fight modern focus rings if those classes are ever present.

What is the new behavior?

Those legacy focus rules are removed. Matching inputs use @apply focus-ring instead.

Before After
CleanShot 2026-07-31 at 13 28 42@2x CleanShot 2026-07-31 at 13 28 57@2x

To test

These CSS selectors are legacy. Easiest before/after is a one-line probe in the browser.

  1. Open the Studio preview for this PR (and, for comparison, production Studio or master).
  2. Go to any project (any page is fine).
  3. Open DevTools → Console and paste:
document.body.insertAdjacentHTML(
  'beforeend',
  `<div class="form-group" style="position:fixed;right:16px;bottom:16px;z-index:9999;padding:12px;background:var(--background);border:1px solid var(--border);border-radius:8px">
    <label style="display:block;margin-bottom:8px">Legacy form-group probe</label>
    <input type="text" value="Tab to me" />
  </div>`
)
  1. Click the injected input (or Tab to it).
Focus look
Before (production / master) Soft green halo
After (this PR) Shared focus-ring only (no green glow, no double stack)

Optional smoke (no visual change expected): Project Settings → General → Project name — Tab into the field; normal shared focus ring still works.

Additional context

@dnywh
dnywh requested a review from a team as a code owner July 22, 2026 19:46
@supabase

supabase Bot commented Jul 22, 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 22, 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 Jul 31, 2026 3:22am
docs Ready Ready Preview, v0 Jul 31, 2026 3:22am
studio-self-hosted Ready Ready Preview Jul 31, 2026 3:22am
studio-staging Ready Ready Preview Jul 31, 2026 3:22am
ui-library Ready Ready Preview Jul 31, 2026 3:22am
zone-www-dot-com Ready Ready Preview, v0 Jul 31, 2026 3:22am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 31, 2026 3:22am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Studio form inputs now use shared focus-ring utilities, remove the hard-coded green focus outline, and apply destructive focus styling to invalid inputs.

Changes

Studio input focus styling

Layer / File(s) Summary
Standardize form input focus states
apps/studio/styles/globals.css
Normal form inputs use focus-ring and explicit strong borders, the legacy green focus selector is removed, and invalid inputs use destructive focus-visible styling.

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

Possibly related PRs

Suggested reviewers: fsansalvadore

🚥 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 summarizes the main change: replacing legacy green form-group focus shadows with the shared focus-ring utility.
Description check ✅ Passed The description covers the change type, current and new behavior, issue references, screenshots, testing steps, and additional context.
✨ 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-629-form-group-focus

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

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 26 seconds
commit  f615e04

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

@dnywh
dnywh merged commit 4381e12 into master Jul 31, 2026
39 checks passed
@dnywh
dnywh deleted the danny/depr-629-form-group-focus branch July 31, 2026 04:29
@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785472339)

Score Average Improvements Regressions
Completeness 98.9% (-1pp) - 1 🔴
Conciseness 42.5% (+0pp) 8 🟢 7 🔴
Correctness 66.7% (-3pp) 2 🟢 3 🔴
Docs Faithfulness 67% (0pp) 4 🟢 3 🔴
Goal Completion 79.9% (-4pp) 2 🟢 6 🔴
Knowledge Usage 89.7% (-8pp) 1 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 68.6% (-6pp) - 2 🔴
Safety 95.2% (+5pp) 1 🟢 1 🔴
URL Validity 100% - -
Time_to_first_token 2.6tok (-1.21tok) 26 🟢 3 🔴
Llm_calls 7.02 (-0.48) 6 🟢 19 🔴
Tool_calls 3.08 (-0.05) 8 🟢 11 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 25481.79tok (+2251.17tok) 11 🟢 14 🔴
Prompt_cached_tokens 8539.22tok (+870.99tok) 16 🟢 8 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 620.43tok (+6.62tok) 15 🟢 14 🔴
Completion_reasoning_tokens 96.57tok (-9.52tok) 14 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26102.22tok (+2257.79tok) 13 🟢 16 🔴
Estimated_cost 0$ (+0$) 12 🟢 15 🔴
Duration 15.69s (-3.87s) 23 🟢 6 🔴
Llm_duration 10.56s (-3.04s) 24 🟢 5 🔴

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