mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
## Problem - tooltips blend into the page in dark mode, for example the timestamp tooltip in the logs table - the tooltip background is `bg-alternative`, which is the same color as the page background ## Solution - changes the tooltip background in dark mode, so the tooltip is one elevation step above the page - replaces the border and the drop shadow with a 1px ring from the `foreground` token, so the edge is thinner and uses theme tokens - changes the row highlight in the timestamp tooltip - fixes the "Copied!" state in the timestamp tooltip, so the copied value does not show behind the text and the row keeps its width | before | after | | -------|------| | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/07435a9e-74eb-4007-aa5e-d350a979f8bb" /> | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/df274062-318e-4ed0-841a-2bf57c98ec4c" /> | | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/1cfc18fa-196e-41e2-9aae-2458cd98418b" /> | <img width="357" height="162" alt="image" src="https://github.com/user-attachments/assets/c116329c-233c-4216-9a71-4a1950ec710a" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/design-system/docs/components/tooltip](https://design-system-git-antlio-tooltip-contrast-supabase.vercel.app/design-system/docs/components/tooltip) and set the theme to dark 2. hover the "Hover" button, and make sure that the tooltip is lighter than the page and has a thin ring edge 3. set the theme to light, and make sure that the tooltip has a thin ring edge and no drop shadow 4. open [/dashboard/project/_/logs/edge-logs](https://studio-git-antlio-tooltip-contrast-supabase.vercel.app/dashboard/project/_/logs/edge-logs) in dark mode and select a project 5. hover a date in the logs table, and make sure that the tooltip is lighter than the table 6. hover each row in the tooltip, and make sure that the row highlight shows 7. click a row, and make sure that "Copied!" shows with no value text behind it and the tooltip width does not change ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)