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>
69 lines
1.5 KiB
CSS
69 lines
1.5 KiB
CSS
/* === OnboardingDisclosure (shared) === */
|
|
.onboarding-disclosure {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.onboarding-disclosure-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-sm, 12px);
|
|
cursor: pointer;
|
|
padding: var(--space-xs) 0;
|
|
transition: color var(--transition-fast);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.onboarding-disclosure-trigger:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.onboarding-disclosure-trigger:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.onboarding-disclosure-chevron {
|
|
width: 14px;
|
|
height: 14px;
|
|
transition: transform var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.onboarding-disclosure-trigger[aria-expanded="true"] .onboarding-disclosure-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.onboarding-disclosure-content {
|
|
padding: var(--space-sm) 0 var(--space-sm) calc(var(--space-sm) + var(--space-lg) - var(--space-xs));
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-sm, 12px);
|
|
line-height: 1.5;
|
|
animation: onboarding-disclosure-enter var(--duration-fast) ease-out;
|
|
}
|
|
|
|
@keyframes onboarding-disclosure-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(calc(var(--space-xs) * -1));
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.onboarding-disclosure-trigger {
|
|
min-height: calc(var(--space-lg) + var(--space-lg) + var(--space-xs));
|
|
padding: var(--space-sm) 0;
|
|
}
|
|
}
|