iter: c01 button/checkbox/switch 补 disabled 禁用态(布尔或信号绑定)
This commit is contained in:
@@ -773,6 +773,17 @@
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* —— 通用禁用态:置灰 + 禁用光标 —— */
|
||||
.ua-btn:disabled,
|
||||
.ua-checkbox:disabled,
|
||||
.ua-switch-input:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ua-switch-input:disabled + .ua-switch-track {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* —— 无障碍:用户偏好减少动效时关闭全部动画 —— */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ua-btn,
|
||||
|
||||
Reference in New Issue
Block a user