Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): colour contrast for selected file storage item (#42668)

Danny Whiteda1a02752e83
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
index 6c0fec385c7..582d74e3c04 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -315,8 +315,9 @@ export const FileExplorerRow = ({
className={cn(
'storage-row group flex h-full items-center px-2.5',
'hover:bg-panel-footer-light [[data-theme*=dark]_&]:hover:bg-panel-footer-dark',
- `${isOpened ? 'bg-surface-200' : ''}`,
- `${isPreviewed ? 'bg-green-500 hover:bg-green-500' : ''}`,
+ `${isOpened ? 'bg-selection' : ''}`,
+ `${isSelected ? 'bg-selection' : ''}`,
+ `${isPreviewed ? 'bg-selection hover:bg-selection' : ''}`,
`${item.status !== STORAGE_ROW_STATUS.LOADING ? 'cursor-pointer' : ''}`
)}
onClick={(event) => {