Skip to content

Commit fc4564a

Browse files
Fix icon buttons for light/dark mode compatibility
- Add dark:invert class to Netlify and Cloudflare SVG icons in PreviewHeader - Add dark:invert class to Netlify and Cloudflare SVG icons in DeployDialog - Vercel icons already had dark:invert class - All deployment platform icons now properly adapt to light/dark themes
1 parent d14d141 commit fc4564a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/components/workbench/DeployDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function DeployDialog({ isOpen, onClose }: DeployDialogProps) {
9797
<div className="i-svg-spinners:90-ring-with-bg w-8 h-8" />
9898
) : (
9999
<svg
100-
className="w-8 h-8"
100+
className="w-8 h-8 dark:invert"
101101
width="800px"
102102
height="800px"
103103
viewBox="0 0 40 40"
@@ -186,7 +186,7 @@ export function DeployDialog({ isOpen, onClose }: DeployDialogProps) {
186186
<div className="i-svg-spinners:90-ring-with-bg w-8 h-8" />
187187
) : (
188188
<svg
189-
className="w-8 h-8"
189+
className="w-8 h-8 dark:invert"
190190
xmlns="http://www.w3.org/2000/svg"
191191
role="img"
192192
viewBox="0 0 460 271.2"

app/components/workbench/PreviewHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export const PreviewHeader = memo(
263263
<div className="i-svg-spinners:90-ring-with-bg w-4 h-4" />
264264
) : (
265265
<svg
266-
className="w-4 h-4"
266+
className="w-4 h-4 dark:invert"
267267
width="800px"
268268
height="800px"
269269
viewBox="0 0 40 40"
@@ -301,7 +301,7 @@ export const PreviewHeader = memo(
301301
<div className="i-svg-spinners:90-ring-with-bg w-4 h-4" />
302302
) : (
303303
<svg
304-
className="w-4 h-4"
304+
className="w-4 h-4 dark:invert"
305305
xmlns="http://www.w3.org/2000/svg"
306306
role="img"
307307
viewBox="0 0 460 271.2"

0 commit comments

Comments
 (0)