Skip to content

feat: polish OutcomeChip layout for narrow (mobile) viewports (Closes #821) - #854

Open
waterWang wants to merge 1 commit into
Predictify-org:mainfrom
waterWang:feat/outcomechip-mobile-layout-821
Open

feat: polish OutcomeChip layout for narrow (mobile) viewports (Closes #821)#854
waterWang wants to merge 1 commit into
Predictify-org:mainfrom
waterWang:feat/outcomechip-mobile-layout-821

Conversation

@waterWang

Copy link
Copy Markdown

Description

Audits OutcomeChip on <=375px and adjusts breakpoints, wrapping, and tap targets per issue #821.

Changes

  • min-h-[44px]: Ensures WCAG 2.1 AA 2.5.5 minimum tap target at all breakpoints
  • whitespace-normal + break-words: Allows label to wrap onto a second line instead of clipping on narrow screens
  • Responsive padding: px-2.5 on mobile, px-3 on sm+ for tighter fit on small screens
  • Responsive font: text-xs on mobile, text-sm on sm+ for readability
  • py-3: Vertical padding keeps the 44px minimum height while allowing text wrapping

Testing

  • Existing tests verify text-white, font-semibold, chart token classes, and pattern classes remain intact
  • Visual: chip wraps gracefully on <=375px, maintains 44px+ tap target, no overflow

Screenshots

Uses same design tokens and chart colors as before; visual change is only in responsive behavior.

Closes #821

…redictify-org#821)

- Add min-h-[44px] for WCAG 2.1 AA 2.5.5 minimum tap target
- Add whitespace-normal + break-words for label wrapping on narrow screens
- Add responsive padding (px-2.5 mobile, px-3 sm+)
- Add responsive font (text-xs mobile, text-sm sm+)
- Update JSDoc to document mobile audit changes
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

@waterWang is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Polish OutcomeChip layout for narrow (mobile) viewports [b#087]

1 participant