fix(frontend): cancel priority-bounce animation on .btn-primary--priority:disabled (GitLab #184) #382
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega!382
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/glab-184-priority-bounce-cancel-on-disabled"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Cancel
priority-bounceanimation on.btn-primary--priority:disabled(#184). primary CTA buttons (BUY CHARM, etc) kept bouncing rhythmically while disabled, masking the disabled state. found during arena dogfood — header chip correctly flipped to "Wrong Network" but BUY CHARM kept looking inviting.Closes
Root cause
.btn-primary--priority(frontend/src/index.css:2886) addsanimation: priority-bounce 3.1s var(--motion-bounce) infiniteto mark the button as the primary action..btn-primary:disabled(line 2876) adds opacity 0.65 + cursor not-allowed..timecurve-simple__cta--arcade:disabled(line 7760) adds grayscale + brightness dim.so disabled state DOES dim the button. but no rule cancelled the priority-bounce animation — the rhythmic motion read as "interactable" stronger than the static dim read as "disabled".
Changes
frontend/src/index.css— added one new rule adjacent to.btn-primary--priorityat line 2886:Verification
tsc -bcleannpx vitest run— 307/307 PASS (51 files). CSS-only change, no test surface impact.npm run lint— 0 errors. 1 pre-existing warning (IndexerConnectivityContext.tsxfast-refresh, untouched).visual verification on local QA stack: switched MetaMask to BNB Chain (wrong network), observed BUY CHARM no longer bounces while disabled. Disabled state now reads as disabled at first glance — opacity dim + grayscale + static (no bounce) makes the cue unambiguous.
Scope
affects every button using
.btn-primary--priorityclass — BUY CHARM and any other priority-tier CTAs across the app get the same treatment uniformly.Out of scope
functional disabled-state logic in
TimeCurveArenaView.tsx:866(disabled={isWriting || chainMismatch || ...}) was already correct and is untouched. this MR is purely the visual fix.cc @PlasticDigits — second small fix shipped in same session as #184 file. ready for review when you have time.
mentioned in commit
1163a7ffc1mentioned in commit
665989c171