Unverified 提交 609b5848 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Fix dark mode visibility for Supabase continue button (#2241)

Change the continue button variant from 'outline' to 'default' to improve visibility in dark mode. The outline variant had poor contrast against the green success background in dark mode. #skip-bugbot <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Improve dark mode contrast for the Supabase success state by switching the “Continue” button from outline to default. Also adjust success card and integrate prompt colors for better readability in dark mode. <sup>Written for commit f184afad3d02c069b4a33a6b5f9eeb4dca65c3ec. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --------- Co-authored-by: 's avatarClaude <noreply@anthropic.com>
上级 e0dcedc1
...@@ -50,10 +50,10 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({ ...@@ -50,10 +50,10 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({
if (app?.supabaseProjectName) { if (app?.supabaseProjectName) {
return ( return (
<div className="flex flex-col my-2 p-3 border border-green-300 rounded-lg bg-green-50 shadow-sm"> <div className="flex flex-col my-2 p-3 border border-green-300 dark:border-green-800/50 rounded-lg bg-green-50 dark:bg-green-900/20 shadow-sm">
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<svg <svg
className="w-5 h-5 text-green-600" className="w-5 h-5 text-green-600 dark:text-green-400"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"
strokeWidth={2} strokeWidth={2}
...@@ -65,7 +65,8 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({ ...@@ -65,7 +65,8 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({
r="10" r="10"
stroke="currentColor" stroke="currentColor"
strokeWidth="2" strokeWidth="2"
fill="#bbf7d0" fill="currentColor"
className="opacity-20"
/> />
<path <path
strokeLinecap="round" strokeLinecap="round"
...@@ -73,14 +74,14 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({ ...@@ -73,14 +74,14 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({
d="M9 12l2 2 4-4" d="M9 12l2 2 4-4"
/> />
</svg> </svg>
<span className="font-semibold text-green-800"> <span className="font-semibold text-green-800 dark:text-green-300">
Supabase integration complete Supabase integration complete
</span> </span>
</div> </div>
<div className="text-sm text-green-900"> <div className="text-sm text-green-900 dark:text-green-100">
<p> <p>
This app is connected to Supabase project:{" "} This app is connected to Supabase project:{" "}
<span className="font-mono font-medium bg-green-100 px-1 py-0.5 rounded"> <span className="font-mono font-medium bg-green-100 dark:bg-green-900/40 px-1 py-0.5 rounded">
{app.supabaseProjectName} {app.supabaseProjectName}
</span> </span>
</p> </p>
...@@ -88,7 +89,7 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({ ...@@ -88,7 +89,7 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({
<Button <Button
onClick={handleKeepGoingClick} onClick={handleKeepGoingClick}
className="self-start mt-2" className="self-start mt-2"
variant="outline" variant="default"
disabled={isStreaming} disabled={isStreaming}
> >
Continue Continue
...@@ -98,9 +99,11 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({ ...@@ -98,9 +99,11 @@ export const DyadAddIntegration: React.FC<DyadAddIntegrationProps> = ({
} }
return ( return (
<div className="flex flex-col gap-2 my-2 p-3 border rounded-md bg-secondary/10"> <div className="flex flex-col gap-2 my-2 p-3 border rounded-md bg-secondary/10 dark:bg-secondary/20">
<div className="text-sm"> <div className="text-sm">
<div className="font-medium">Integrate with {provider}?</div> <div className="font-medium text-foreground">
Integrate with {provider}?
</div>
<div className="text-muted-foreground text-xs">{children}</div> <div className="text-muted-foreground text-xs">{children}</div>
</div> </div>
<Button onClick={handleSetupClick} className="self-start w-full"> <Button onClick={handleSetupClick} className="self-start w-full">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论