Skip to content

[Frontend] Add an accessible label to the top-up amount input on stream detail #512

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

The top-up amount field on the stream-detail page is an <input type="number"> with only a placeholder and no associated <label> or aria-label. Placeholder text is not an accessible name, so screen-reader users get an unlabeled number field, and the placeholder disappears once typing starts.

Verified spot

frontend/src/app/streams/[id]/page.tsx, lines ~476-482:

<input
  type="number"
  placeholder={`Amount in ${tokenSymbol}`}
  value={topUpAmount}
  onChange={(e) => setTopUpAmount(e.target.value)}
  className="..."
/>

Acceptance criteria

  • Give the input an accessible name (visible <label htmlFor> or aria-label, e.g. "Top-up amount").
  • Keep the placeholder as a hint only, not the sole label.
  • No visual regression to the inline top-up row.

Files to touch

  • frontend/src/app/streams/[id]/page.tsx

Out of scope

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasksgood first issueGood for newcomersuiUser interface refinement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions