fix: 增强 SwitchButtonGroup 和立即转换按钮的视觉层级

- SwitchButtonGroup 选中按钮阴影从 shadow-sm 升级到 shadow-md
- 同步更新单元测试中断言
- Timestamp 立即转换按钮添加 shadow-md 增强边界感
This commit is contained in:
雨霖铃
2026-05-22 18:08:44 +08:00
parent c7beebf6e0
commit 72883b5d1d
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ export default function SwitchButtonGroup<T extends string | number = string>({
sizeClasses[size]
} ${
value === option.value
? 'bg-background text-primary shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
? 'bg-primary text-primary-foreground shadow-md'
: 'text-muted-foreground hover:text-foreground hover:bg-muted'
}`}
style={buttonSx}
>