Skip to content

fix(progress): consistent vertical spacing in empty state (BLD-4569) - #925

Open
alankyshum wants to merge 3 commits into
mainfrom
fix/bld-4569-progress-empty-state-spacing
Open

fix(progress): consistent vertical spacing in empty state (BLD-4569)#925
alankyshum wants to merge 3 commits into
mainfrom
fix/bld-4569-progress-empty-state-spacing

Conversation

@alankyshum

Copy link
Copy Markdown
Owner

Summary

Fixes inconsistent vertical spacing in the progress-tab empty state component (WorkoutEmptyState.tsx).

Source: UX audit [BLD-4528] flagged uneven gaps (12/16/20px) caused by ad-hoc margin overrides on top of a uniform gap: 12 container.

Changes

  • Remove iconCircle.marginBottom: 4 — was adding an extra 4px gap after the icon, making icon→headline gap effectively 16px
  • Remove cta.marginTop: 8 — was making description→CTA gap effectively 20px, breaking rhythm
  • Add marginTop: -spacing.sm on description to tighten headline↔paragraph pair for visual cohesion
  • Replace all hard-coded values (paddingHorizontal: 32, paddingVertical: 24, gap: 12) with spacing tokens
  • Add testID='progress-empty-icon-circle' for headless AC verification

Tests

New tests in __tests__/components/progress/WorkoutEmptyState.test.tsx:

  1. Container spacing tokens used correctly
  2. iconCircle.marginBottom is undefined (no ad-hoc extra gap)
  3. cta.marginTop is undefined (no ad-hoc extra gap)
  4. description.marginTop equals -spacing.sm (tightened headline↔description)

Closes BLD-4569

techlead and others added 3 commits July 28, 2026 06:59
… (BLD-4548)

- overflowBtn top: 4→6, right: 4→6 in FormLibraryTab.tsx
- Aligns with sibling checkOverlay which already uses top/right: 6
- Also removes stale marginTop: 4 from the preceding rule

Co-Authored-By: Paperclip <noreply@paperclip.ing>
- Replace hard-coded margin values with spacing tokens from design-tokens
- Remove iconCircle.marginBottom: 4 that was adding extra gap after icon
- Remove cta.marginTop: 8 that was breaking the uniform gap rhythm
- Add marginTop: -spacing.sm on description to tighten headline↔paragraph pair
- Update paddingHorizontal/paddingVertical/gap to use spacing tokens
- Add testID='progress-empty-icon-circle' for headless verification
- Add tests covering consistent vertical spacing and text pair cohesion

Resolves BLD-4569 (source: BLD-4528)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@alankyshum
alankyshum force-pushed the fix/bld-4569-progress-empty-state-spacing branch from c33cf13 to 2767f61 Compare July 28, 2026 15:50
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.

2 participants