fix: add card elevation and interaction feedback (Closes #8) #75

Merged
shahondin1624 merged 1 commits from feature/issue-8-card-elevation-feedback into main 2026-03-13 14:24:20 +01:00

Summary

  • Add CardDefaults.cardElevation() with default=2dp, pressed=6dp, hovered=4dp to Attribute and Talent cards
  • Switch from Modifier.clickable to Card(onClick=...) for proper Material 3 interaction ripple and pressed elevation animation
  • Extract card content into private AttributeCardContent and TalentCardContent composables to avoid duplication between clickable/non-clickable variants

Test plan

  • Project compiles on all targets
  • 95 tests, 18 pre-existing failures unchanged
  • Cards show elevation shadow at rest (2dp)
  • Cards animate elevation on press (6dp) with ripple feedback
  • Dice button retains its own ripple via IconButton

Closes #8

## Summary - Add `CardDefaults.cardElevation()` with default=2dp, pressed=6dp, hovered=4dp to Attribute and Talent cards - Switch from `Modifier.clickable` to `Card(onClick=...)` for proper Material 3 interaction ripple and pressed elevation animation - Extract card content into private `AttributeCardContent` and `TalentCardContent` composables to avoid duplication between clickable/non-clickable variants ## Test plan - [x] Project compiles on all targets - [x] 95 tests, 18 pre-existing failures unchanged - [x] Cards show elevation shadow at rest (2dp) - [x] Cards animate elevation on press (6dp) with ripple feedback - [x] Dice button retains its own ripple via IconButton Closes #8
shahondin1624 added 1 commit 2026-03-13 14:24:15 +01:00
Use CardDefaults.cardElevation() with default=2dp, pressed=6dp,
hovered=4dp on both Attribute and Talent cards. Switch from
Modifier.clickable to Card(onClick=...) for proper Material 3
interaction ripple and pressed elevation animation. Extract card
content into private composable functions to avoid duplication
between onClick and non-onClick card variants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
shahondin1624 merged commit 587180dd91 into main 2026-03-13 14:24:20 +01:00
shahondin1624 deleted branch feature/issue-8-card-elevation-feedback 2026-03-13 14:24:20 +01:00
Sign in to join this conversation.