Skip to content

Button has no built-in loading/aria-busy support, so every async action across the app manually swaps text with no aria-busy attribute #211

Closed

Description

@chonilius

src/components/ui/Button.tsx exposes only variant, size, and native
ButtonHTMLAttributes — no loading/pending prop. Every consumer that performs an
async action re-implements the same manual pattern instead:

// IssueActions.tsx
<Button size="lg" onClick={handleFund} disabled={pending || connecting}>
  {pending || connecting ? "Confirming in wallet..." : "Fund this bounty"}
</Button>

// MilestoneActions.tsx (two separate call sites, same pattern)
<Button size="sm" variant="outline" onClick={handleFund} disabled={pending || connecting}>
  {pending || connecting ? "Confirming in wallet..." : "Fund milestone"}
</Button>

None of these set aria-busy="true" on the button while pending/connecting is true,
and none render a visual spinner — only the text label changes. A screen reader user who
activates "Fund this bounty" gets no indication that anything happened until the DOM
text content changes, which isn't reliably announced without an aria-live region or
aria-busy toggling, and low-vision users relying on high contrast/zoom may not notice a
text-only label change either.

Since every money-moving action in the app (fund, claim, refund, deposit) follows this
exact copy-pasted pattern with the same gap, it's a good candidate for Button itself to
own via a loading prop that sets aria-busy, disables the button, and standardizes the
pending-label convention instead of five independent call sites each reinventing it
slightly differently.

Activity

  1. added
    enhancement
    accessibility
    security
    very hard
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 24, 2026
  3. Henrichy commented on Aug 24, 2026

    @Henrichy

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

    Hi! I'd like to work on this issue.
    I've contributed to Rust, TypeScript, backend, frontend, and smart contract projects, with a focus on delivering focused, well-tested changes. I'll keep the implementation within the requested scope, preserve existing behavior unless the issue requires otherwise, include the necessary tests and documentation, and submit a PR that's straightforward to review.
    Portfolio: https://portfolio-sandy-alpha-29.vercel.app • ETA: ~2–4 hours.

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

  4. kelvin1738-sys commented on Aug 24, 2026

    @kelvin1738-sys

    @kelvin1738-sys has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi Maintainer, I'm interested in contributing to this task and can deliver a clean, reliable implementation within a reasonable timeframe while meeting the project's quality standards.

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

  5. ifeanyikizito393 commented on Aug 24, 2026

    @ifeanyikizito393

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

    I get what needs to be done here I can implement a solution that meets the acceptance criteria Assign me please

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

  6. oyeyemidavid-gif commented on Aug 24, 2026

    @oyeyemidavid-gif

    @oyeyemidavid-gif has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would like to work on this issue.

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

  7. Mayor-XM commented on Aug 24, 2026

    @Mayor-XM

    @Mayor-XM has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    hello maintainer, I would really appreciate if you let me work on this

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

  8. Peaostrel commented on Aug 24, 2026

    @Peaostrel

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

    i can handle this quickly

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

  9. abdullahiyakub-pixel commented on Aug 24, 2026

    @abdullahiyakub-pixel

    @abdullahiyakub-pixel has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi team, this issue aligns with my experience. I can start working on it right away and deliver a PR that meets all requirements.

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

  10. gitGolf commented on Aug 24, 2026

    @gitGolf

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

    Hi Maintainer, I'd like to work on this issue. I've handled similar tasks in the past and feel comfortable diving into this one right away

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

  11. olubukolatanko209-doc commented on Aug 24, 2026

    @olubukolatanko209-doc

    @olubukolatanko209-doc has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi maintainer, I have reviewed this issue and understand the requirements. I’m ready to implement the fix and submit a PR. I look forward to working with you.

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

  12. Juliet283 commented on Aug 24, 2026

    @Juliet283

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

    Hello Maintainer, I’ve reviewed the task and it aligns well with my skills. I’m confident I can deliver a solid solution that meets the requirements. I’d appreciate the opportunity to take it on.

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

  13. ohotuowo-morgan commented on Aug 24, 2026

    @ohotuowo-morgan

    @ohotuowo-morgan has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would like to work on this issue please assign it to me

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

  14. johdanike commented on Aug 24, 2026

    @johdanike

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

    I can pick this up! I will extend the Button component to natively handle a loading prop, setting aria-busy="true", disabling the button, and rendering a standard visual spinner. I'll also refactor the existing async call sites across the app to use this consolidated, accessible pattern. Having built modular, accessible React and Next.js interfaces with TypeScript and Tailwind, I can ensure this is implemented cleanly. Happy to be assigned!

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

  15. richardtoms100 commented on Aug 24, 2026

    @richardtoms100
    Contributor

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

    I'm ready to take on this issue now

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

  16. drips-wave commented on Aug 24, 2026

    @drips-wave

    Congratulations, @richardtoms100! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @richardtoms100: 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 🌊

  17. added a commit that references this issue on Aug 25, 2026
    4f1af24
  18. drips-wave commented on Aug 25, 2026

    @drips-wave

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

    😎 @richardtoms100: You earned 200 Points for completing this issue! After the current Wave ends, 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.

  19. removed
    Stellar Wave
    on Oct 15, 2026
  20. added
    Stellar Wave
    on Oct 15, 2026
  21. removed
    Stellar Wave
    on Oct 15, 2026
  22. added
    Stellar Wave
    on Oct 15, 2026
  23. removed
    Stellar Wave
    on Oct 15, 2026
  24. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar Waveaccessibilityenhancementsecurityvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions