react-component / react-component/notification
CloseIcion not working
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 118
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 2
Description
version used : "rc-notification": "3.3.0",
i am trying to use my own close icon but its not working i have tried with svg also
Notification.newInstance({}, notification => {
notification.notice({
content: 'content',
closable: true,
duration: 50,
closeIcon: <div>X</div>
});
});
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
Reproduce the notification using rc-notification 3.3.0 and the shown closable/closeIcon example, then trace how the closeIcon value is rendered. Confirm the behavior with both a custom element and an SVG; the issue is done when the supplied icon appears and the notification can still be closed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100