Skip to content

Open-source, local-first AI agent for real work.

fix(theme-ui): 舞台浮层的关闭按钮在浅色下改为灰底、去掉投影

bent26857e4a98a60ba6
diff --git a/packages/theme-ui/src/shared/StageDialogContent.tsx b/packages/theme-ui/src/shared/StageDialogContent.tsx
index dbd34c4fc..63933a14e 100644
--- a/packages/theme-ui/src/shared/StageDialogContent.tsx
+++ b/packages/theme-ui/src/shared/StageDialogContent.tsx
@@ -68,7 +68,8 @@ export function StageDialogContent({
type="button"
title={closeLabel}
aria-label={closeLabel}
- className="fixed top-12 right-6 flex h-9 w-9 items-center justify-center rounded-full bg-white text-black shadow-md outline-none transition-transform hover:scale-105 active:scale-95 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
+ // 浅色舞台本身就亮,白底加投影只剩一团灰影;浅色用实色灰底,深色仍是白底黑叉。
+ className="fixed top-12 right-6 flex h-9 w-9 items-center justify-center rounded-full bg-muted text-foreground outline-none transition-[transform,background-color] hover:scale-105 hover:bg-accent active:scale-95 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background dark:bg-white dark:text-black dark:shadow-md dark:hover:bg-white"
>
<span aria-hidden className="icon-[mdi--close] h-5 w-5" />
</button>