react-component / react-component/notification
Allow to be closed with a click anywhere in the toast
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 118
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 2
Description
Currently, when closable is true, a close button is displayed.
Some users complain because it is somehow tedious to click on a small button and would prefer to click anywhere in the toast to close it.
Most of notifications libraries allow it, see eg https://github.com/fkhadra/react-toastify
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the notification/toast component that renders the closable notice and its close button. Check how the closable option currently triggers dismissal, then make the toast surface clickable while preserving the existing close behavior. Done means clicking anywhere in a closable toast dismisses it, with existing behavior unchanged otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100