Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fix(fuselage): `IconButton` `pressed` state is not exposed via `aria-pressed`

Open Beginner friendly
#42,807 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript

Research direction

Start from the IconButton component in the Fuselage package, where the pressed prop currently only adds the -pressed classes. Find where the element's attributes are set and decide how aria-pressed should be derived from pressed. Done when aria-pressed is set whenever pressed is defined, and a caller that already passes its own aria-pressed is not broken. A test or Storybook story that renders the button with and without pressed should confirm this.

Written by the indexing model from the issue text.

Description

area: ui/ux type: bug
Description

IconButton's pressed prop only adds the -pressed classes. Assistive technology never hears the toggle state unless the caller also passes aria-pressed, and most Rocket.Chat callers do not.

Suggested fix

Set aria-pressed={pressed} when pressed is defined.

Context

Found by cubic while reviewing #42763, which moved @rocket.chat/fuselage into this monorepo. The behavior is unchanged from Fuselage 0.96.0, so it was out of scope there.

Dominant language
TypeScript
Stars
46.3k
Forks
14k
Avg merge
3d 11h
Merged PRs (30d)
254

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat

All issues in RocketChat/Rocket.Chat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.