Danger button
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 371
- Avg merge
- 26d 1h
- Merged PRs (30d)
- 1
Description
via @shihan007
Allow rendering a button with "danger" styles to give a hint that clicking the button leads to a destruction action.
## Implementation
Use the same styles as message/notification bar.
## Needs discussion
@lo5 We can either allow this via a `danger` attribute to be consistent with other similar attributes like `primary` or we can use `enum` type if further button types will be needed (although I don't see much value in something like success btn etc. personally). Wdyt?
## Workaround for now
Using custom CSS
Contributor guide
Research direction
Start by locating the button implementation and the message/notification bar styles referenced in the issue. Confirm whether a danger attribute or an enum fits the existing button API, then verify that the button renders the matching destructive-action styling and that its behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Domain
- design, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100