flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[SDK-React] Add tabular-nums styling and polite screen-reader attributes to ClaimableTicker

Open blurbeast opened this issue 1 month ago • 5 comments

Overview

packages/flowfi-react/src/components/ClaimableTicker.tsx updates the displayed balance at 60fps using requestAnimationFrame, which can cause horizontal layout jitter without tabular-nums and excessive screen reader chatter if aria-live is not configured properly.

Problem

  • Proportional font digits jitter horizontally as numbers tick up, and assistive technologies can be overwhelmed by 60fps DOM text mutations.

Proposed Changes

  1. Apply fontVariantNumeric: 'tabular-nums' to the ticker container in ClaimableTicker.tsx.
  2. Add aria-live="off" on the high-frequency animated span and provide a visually-hidden or static aria-label with the base balance so screen readers are not flooded.

Acceptance Criteria

  • [ ] Digits use tabular-nums by default to prevent width jitter.
  • [ ] Screen readers can read the token balance cleanly without 60fps interruption.
  • [ ] Unit test added in packages/flowfi-react/tests/.

blurbeast avatar Oct 18 '26 05:10 blurbeast

@cold-13 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I'd love to pick this up! I've read through the code and docs and know exactly what needs clarifying. I'll follow the contribution guidelines and keep the PR focused. Could you assign it to me?

ℹ️ Repo Maintainers: To accept this application, review their application or assign @cold-13 to this issue.

cold-13 avatar Oct 18 '26 11:10 cold-13

@isahpeter656-coder has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello maintainer I have reviewed the issue and I have relevant experience on it I would deliver please assign this issue to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @isahpeter656-coder to this issue.

isahpeter656-coder avatar Oct 18 '26 11:10 isahpeter656-coder

@greyforreal has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello, please help assign this issues to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @greyforreal to this issue.

greyforreal avatar Oct 18 '26 11:10 greyforreal

Congratulations, @greyforreal! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @greyforreal: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 18 '26 11:10 drips-wave[bot]

This issue has been completed by @greyforreal as part of the Stellar Wave Program's 10th Wave 🥳

😎 @greyforreal: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Oct 18 '26 13:10 drips-wave[bot]