feat(ux): microinteraction polish — undo tap feedback, strikethrough transition, modal loading state
- toast__undo: add :active scale + tap-highlight-color for reliable tap feedback - task titles: animate text-decoration-color instead of snapping for smoother done-state - modal forms: auto-add btn--loading on submit; rAF guard removes it on validation fail; MutationObserver removes it on error re-enable; btnSuccess clears it before checkmark Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1647,10 +1647,20 @@
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.toast__undo {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: opacity var(--transition-fast), transform 0.08s ease;
|
||||
}
|
||||
|
||||
.toast__undo:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast__undo:active {
|
||||
transform: scale(0.94);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast--success { background-color: var(--color-success); color: var(--toast-success-text); }
|
||||
.toast--danger { background-color: var(--color-danger); color: var(--toast-danger-text); }
|
||||
.toast--warning { background-color: var(--color-warning); color: var(--toast-warning-text); }
|
||||
|
||||
Reference in New Issue
Block a user