Skip to content

fix(motion): cap composer hover/active scales to global tactile range - #213

Merged
jackwener merged 1 commit into
mainfrom
yuejing/fe-bug-hunt-7
Jun 24, 2026
Merged

fix(motion): cap composer hover/active scales to global tactile range#213
jackwener merged 1 commit into
mainfrom
yuejing/fe-bug-hunt-7

Conversation

@jackwener

Copy link
Copy Markdown
Member

PR-FE-BUG-HUNT-7 picking up kenji's aesthetic-audit reminder 9 finding #1.

Bug

Composer micro-interaction scales drifted way past the global `button:active { scale(0.97) }` press range:

Selector Before After
`.maka-composer-tool-button:hover` `scale(1.08)` `scale(1.02)`
`.maka-composer-tool-button:active` `scale(0.94)` `scale(0.97)`
`.maka-composer-send-button:hover` `scale(1.06)` `scale(1.03)`
`.maka-composer-send-button:active` `scale(0.96)` `scale(0.97)`

Tool buttons (mic, attach) are quiet utility affordances at the bottom of the composer; CTA-sized travel pulls the eye away from the input. The send button is a real CTA, so it gets a hair more travel than the tool buttons but still inside the tactile range. Active scales all unify on the global `0.97`.

Diff

`1 file changed, 14 insertions(+), 4 deletions(-)` — single styles.css block.

Verification

Disk still ~100%, couldn't run `pnpm install && pnpm test`. CSS-only value tweak, no risk of breakage.

Kenji aesthetic-audit reminder 9 (msg `bacde601` 2026-06-24,
finding #1): composer micro-interaction scales drifted way past
the global `button:active { scale(0.97) }` press range.

Before:
- `.maka-composer-tool-button:hover` — `scale(1.08)`
- `.maka-composer-tool-button:active` — `scale(0.94)`
- `.maka-composer-send-button:hover` — `scale(1.06)`
- `.maka-composer-send-button:active` — `scale(0.96)`

Tool buttons are quiet utility affordances (mic, attach) at the
bottom of the composer; they don't deserve CTA-sized travel. 1.08
hover + 0.94 active reads as bouncy and tugs the eye away from the
composer text input. The send button is a real CTA so it gets a
hair more than the tool buttons but still inside the tactile range.

After:
- tool button: hover `scale(1.02)`, active `scale(0.97)`
- send button: hover `scale(1.03)`, active `scale(0.97)`

All within the global tactile press range. Single file, 4 value
tweaks. No overlap with PR #211 (live-dot keyframes at lines 2231 /
11645 / 12634, far from this composer block at 6655-6706).
@jackwener
jackwener merged commit 61e871c into main Jun 24, 2026
@jackwener
jackwener deleted the yuejing/fe-bug-hunt-7 branch June 24, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant