Skip to content

EmptyState's icon has no aria-hidden, so a purely decorative icon may be redundantly announced by screen readers #210

Closed

Description

@chonilius

src/components/ui/EmptyState.tsx renders its icon like this:

<span className="flex h-11 w-11 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-800">
  <Icon className="h-5 w-5 text-slate-400 dark:text-slate-500" />
</span>

The Icon (a lucide-react LucideIcon) has no aria-hidden="true" and no accessible
name suppression. Every meaningful message this component conveys is already present as
text immediately below it (title/description), so the icon is purely decorative —
but without aria-hidden, some screen readers may still attempt to announce it (lucide
icons render as inline SVG, and an unlabeled SVG's accessibility treatment varies by
browser/AT combination, often falling back to announcing "image" or nothing useful).

This is a small, mechanical gap, but EmptyState is used across every dashboard and
list view in the app (contributor dashboard's "No active claims," maintainer's
"All caught up," sponsor's "No active bounties") — the same unguarded icon pattern
repeats on every one of them.

Suggested fix: add aria-hidden="true" to the Icon element inside EmptyState, the
same way StatCard.tsx already does for its own decorative icons (e.g.
<AlertCircle ... aria-hidden="true" /> in the error state).

Activity

  1. added
    good first issue
    accessibility
    help wanted
    bug
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 24, 2026
  3. malahk001 commented on Aug 24, 2026

    @malahk001

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

    Hi Maintainer, I’m interested in working on this issue. I have experience with similar tasks and can begin immediately.

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

  4. onyekachi66 commented on Aug 24, 2026

    @onyekachi66

    @onyekachi66 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 having worked on similar issues in the past. Please assign

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

  5. Rayhab2000 commented on Aug 24, 2026

    @Rayhab2000

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

    Please assign this issue to me

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

  6. official-rex commented on Aug 24, 2026

    @official-rex

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

    Hi Maintainer, I understand the issue and its requirements, and I’m confident I can resolve it with an efficient and quality solution. I would like to work on this issue 
    

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

  7. 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.

  8. 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.

  9. 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'd like to tackle this accessibility fix. I will add aria-hidden="true" to the Lucide icon within the EmptyState component to properly suppress redundant screen reader announcements, matching the existing StatCard pattern. Let me know if I'm good to open a PR!

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

  10. 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.

  11. 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 🌊

  12. added a commit that references this issue on Aug 25, 2026
    e6af689
  13. 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.

  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. added
    Stellar Wave
    on Oct 15, 2026
  16. removed
    Stellar Wave
    on Oct 15, 2026
  17. added
    Stellar Wave
    on Oct 15, 2026
  18. removed
    Stellar Wave
    on Oct 15, 2026
  19. 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 Waveaccessibilitybuggood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions