Skip to content

fix(a11y): sparkline announces formatted values, not raw numbers - #751

Closed
yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/statcard-sparkline-709
Closed

yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/statcard-sparkline-709

Conversation

@yggdrasilworld

@yggdrasilworld yggdrasilworld commented Oct 14, 2026 •

Copy link
Copy Markdown

What

StatCard rendered Sparkline without formatValue, so describeTrend announced raw numbers ('trending from 1234.5') while the display read '$1,234.50'.

Fix

Pass formatValue derived from the card's format/asset/locale so the spoken trend matches the rendered value.

Resolves #709

Payment: Base USDC 0xD40Df5c27cEa7dd78A3c345401995c319589334e

StatCard rendered Sparkline without formatValue — describeTrend fell back
to String(v), so a currency card announced 'trending from 1234.5' while the
display read '$1,234.50'. Pass formatValue derived from the card's
format/asset/locale so the spoken trend matches the rendered value.

Resolves MergeFi#709
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@yggdrasilworld

Copy link
Copy Markdown
Author

Rebased onto current main — the equivalent change has already landed upstream (post-rebase diff vs main is empty), so this PR is superseded. Closing.

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.

StatCard's sparkline announces raw numbers (e.g. '1234.5') for currency cards

1 participant