Skip to content

Fix some colors - #47996

Merged
joshenlim merged 2 commits into
masterfrom
joshen/fe-3928-re-overlap-wording
Jul 16, 2026
Merged

joshenlim merged 2 commits into
masterfrom
joshen/fe-3928-re-overlap-wording

Conversation

@joshenlim

@joshenlim joshenlim commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Context

In the table editor when hovering over a row that has fixed columns, the wordings could appear like they're overlapping
image

This is due to the bg-surface-200 class that gets applied to rows on hover which use alpha values, hence why it's happening. Opting to use bg-200 instead which doesn't have alpha values.

Also small fix for the copy button in CodeBlock as well which is running into the same issue - opting to use a set of colors that doesn't have alpha values instead.
image

Summary by CodeRabbit

  • Style
    • Updated table header, row hover, and selected-row background colors for a more consistent appearance.
    • Enhanced the code block copy button’s dark-mode and hover background styling.

@joshenlim
joshenlim requested review from a team as code owners July 16, 2026 08:56
@vercel

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

Request Review

@supabase

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

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2cf754ed-6350-4c94-8665-ea549716b8c5

📥 Commits

Reviewing files that changed from the base of the PR and between b175f75 and 1b51060.

📒 Files selected for processing (1)
  • packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/ui-patterns/src/CodeBlock/CodeBlock.tsx

📝 Walkthrough

Walkthrough

Updates Studio data-grid background utilities and adds theme-specific styling to the CodeBlock copy button.

Changes

Data-grid theme styling

Layer / File(s) Summary
Data-grid background classes
apps/studio/styles/grid.css
Header checkbox, row hover, and selected-row backgrounds now use bg-200 utilities.

CodeBlock dark-mode styling

Layer / File(s) Summary
Copy-button theme classes
packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
The copy button adds dark-mode background and hover utilities plus a light-theme hover override.

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

Possibly related PRs

Suggested reviewers: dnywh

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing required template sections like contributing acknowledgment, change type, current behavior, and new behavior. Fill in the template sections: CONTRIBUTING.md acknowledgment, change type, current behavior, new behavior, and additional context.
Title check ❓ Inconclusive The title is too vague and doesn't clearly describe the row-hover and CodeBlock color changes. Use a specific title such as 'Adjust table row and CodeBlock copy button colors to avoid alpha overlap'.
✅ Passed checks (3 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.
✨ 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 joshen/fe-3928-re-overlap-wording

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.

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

Light mode on the button too.

@kemaldotearth
kemaldotearth self-requested a review July 16, 2026 09:10
@github-actions

github-actions Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  236 passed
flaky  2 flaky
skipped  5 skipped

Details

stats  243 tests across 28 suites
duration  8 minutes, 30 seconds
commit  1b51060

Flaky tests

Features › realtime-inspector.spec.ts › Realtime Inspector › Basic Inspector UI › start/stop listening button works
Features › table-editor.spec.ts › table editor › should show rls accordingly

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 merged commit 04a11b7 into master Jul 16, 2026
38 checks passed
@joshenlim
joshenlim deleted the joshen/fe-3928-re-overlap-wording branch July 16, 2026 09:59
@github-actions

github-actions Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784196287)

Score Average Improvements Regressions
Completeness 100% (+1pp) 1 🟢 -
Conciseness 38.5% (-1pp) 8 🟢 10 🔴
Correctness 68.9% (-4pp) - 3 🔴
Docs Faithfulness 59% (-4pp) - 4 🔴
Goal Completion 80.5% (+0pp) 3 🟢 4 🔴
Knowledge Usage 97.4% (-3pp) - 1 🔴
Tool Usage 72.5% (-4pp) - 2 🔴
Safety 92.9% (-2pp) - 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Time_to_first_token 3.31tok (+0.22tok) 11 🟢 18 🔴
Llm_calls 7.4 (+0.01) 12 🟢 12 🔴
Tool_calls 2.84 (-0.29) 5 🟢 17 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 18386.41tok (-7178.54tok) 21 🟢 4 🔴
Prompt_cached_tokens 7050.3tok (+52.97tok) 13 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 594.41tok (+0.3tok) 16 🟢 13 🔴
Completion_reasoning_tokens 97.31tok (+4.39tok) 11 🟢 15 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 18980.83tok (-7178.24tok) 22 🟢 7 🔴
Estimated_cost 0$ (0$) 20 🟢 6 🔴
Duration 18.72s (+0.93s) 13 🟢 16 🔴
Llm_duration 12.59s (+0.7s) 11 🟢 18 🔴

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

Bug fix for translucent default Button (and related control) fills that
show through stacked content on hover.

Resolves
[DEPR-636](https://linear.app/supabase/issue/DEPR-636/report-snippet-cell-expand-button-becomes-transparent-on-hover).

## What is the current behavior?

Default `Button` hover uses `bg-selection`, and dark-mode rest uses
`bg-muted`. After the colour system migration those legacy aliases point
at translucent `--accent` / `--muted`, so hover punches through whatever
sits behind the button (SQL Editor / Reports cell expand, sticky
columns, skip-to-content, etc.).

| Before: Light | Before: Dark |
| --- | --- |
| <img width="491" height="75" alt="CleanShot 2026-08-03 at 09 12 26@2x"
src="https://github.com/user-attachments/assets/20e33ba9-74c5-47eb-aced-ac932a0059fa"
/> | <img width="205" height="54" alt="21257"
src="https://github.com/user-attachments/assets/a2c9f092-18a7-4a4d-a49b-6e019e50895f"
/> |

## What is the new behavior?

Default Button, Select, MultiSelect, and the CommandMenu trigger use
opaque elevation tokens (`bg-background dark:bg-card`,
`hover:bg-popover`). SkipToContent drops its opaque-plate workaround. No
global `compat.css` alias remaps.

| After: Light | After: Dark |
| --- | --- |
| <img width="466" height="110" alt="CleanShot 2026-08-07 at 16 09
59@2x"
src="https://github.com/user-attachments/assets/6410cb58-b37c-427f-a0ff-7b223a7f3f51"
/> | <img width="474" height="132" alt="CleanShot 2026-08-07 at 16 08
53@2x"
src="https://github.com/user-attachments/assets/575c56d1-8ee5-4eb5-8f08-e4b5af8520f0"
/> |

## Additional context

- Overlay tokens (`--muted` / `--accent` / `--tertiary`) stay
intentional for washes on solid surfaces. Controls that can sit over
content should use solid elevation tokens (`card` / `popover`) instead.
- Same root cause as the workarounds in #47996 and #48314.
- The “View full cell content” control lives in SQL Editor results /
Report `QueryBlock` (`ResultCell`), not Table Editor. It only renders
when the value is an object/array, contains a newline, or is longer than
60 characters, and it stays `opacity-0` until you hover the cell.

## To test

Short path in Studio (light and dark):

1. **Expand button over cell text (clearest repro)** – SQL Editor, run:
   ```sql
   select repeat('x', 80) as name;
   ```
Hover the result cell. The expand control should appear over the text;
hover the button itself and confirm the fill is solid (no `x`s showing
through). Same control is what Report snippets use.
2. **Any default Button** – Top nav **Connect** (or any bordered default
button). Hover: solid fill.
3. **Select** – Project picker or a Settings form select. Trigger hover
/ open fill stays opaque.
4. **Command menu trigger** – Hover the header search / Cmd-K control;
match default Button.
5. **Skip to content** – Tab once on Studio. Skip link hover stays solid
over the page behind it.
6. **Editor tabs regression** – SQL / Table Editor tab strip should
still look grey in light mode (not washed white).
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