Files
fusion/packages/dashboard/app/components/OnboardingResumeCard.css
gsxdsm 2d2024fb0f fix(dashboard): unfreeze animations broken by transition tokens used as durations
Spinners, status-dot pulses, and entrance animations across the dashboard
rendered frozen: transition tokens (--transition-slow: 0.3s ease) bundle a
duration AND an easing, and 15 animation declarations reused them as bare
durations. Substituting "0.3s ease" next to an explicit easing (linear,
ease-in-out, ease-out) — or inside calc() — makes the declaration invalid at
computed-value time, which per spec resolves the entire property to
animation: none with no console error.

- add duration-only tokens (--duration-instant/fast/normal/slow) and derive
  the --transition-* tokens from them so the two cannot drift
- switch all 15 broken animation declarations across 14 CSS files to the
  duration tokens, preserving effective durations
- add animation-duration-tokens.css.test.ts: sweeps every app CSS file and
  fails on transition-token-as-duration, calc() over a transition token, and
  transition token in animation-duration

Verified in a real browser against the production build: previously frozen
.status-dot--connecting and calc-based NodesView spinners now report running
animations; transition shorthands still resolve to "0.15s / ease".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 19:48:40 -07:00

92 lines
1.9 KiB
CSS

/* === Onboarding Resume Card === */
.onboarding-resume-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
padding: var(--space-sm) var(--space-lg);
border-bottom: var(--btn-border-width) solid var(--border);
background: var(--surface);
animation: onboarding-resume-card-enter var(--duration-normal) ease-out;
}
@keyframes onboarding-resume-card-enter {
from {
opacity: 0;
transform: translateY(calc(var(--space-sm) * -1));
}
to {
opacity: 1;
transform: translateY(0);
}
}
.onboarding-resume-card__main {
display: flex;
align-items: center;
gap: var(--space-sm);
min-width: 0;
flex: 1;
}
.onboarding-resume-card__icon {
display: flex;
align-items: center;
justify-content: center;
width: calc(var(--space-lg) * 2 + var(--space-xs));
height: calc(var(--space-lg) * 2 + var(--space-xs));
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--todo) 16%, transparent);
color: var(--todo);
flex-shrink: 0;
}
.onboarding-resume-card__content {
min-width: 0;
}
.onboarding-resume-card__title {
margin: 0;
font-size: calc(var(--space-md) + (var(--space-xs) / 2));
font-weight: 600;
color: var(--text);
}
.onboarding-resume-card__description {
margin: 0;
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
line-height: 1.4;
color: var(--text-muted);
}
.onboarding-resume-card__description strong {
color: var(--text);
}
.onboarding-resume-card__actions {
flex-shrink: 0;
}
.onboarding-resume-card__resume-btn {
white-space: nowrap;
}
@media (max-width: 640px) {
.onboarding-resume-card {
flex-direction: column;
align-items: stretch;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
}
.onboarding-resume-card__actions {
width: 100%;
}
.onboarding-resume-card__resume-btn {
width: 100%;
justify-content: center;
}
}