fix: 增强 SwitchButtonGroup 和立即转换按钮的视觉层级
- SwitchButtonGroup 选中按钮阴影从 shadow-sm 升级到 shadow-md - 同步更新单元测试中断言 - Timestamp 立即转换按钮添加 shadow-md 增强边界感
This commit is contained in:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user