halstack-react icon indicating copy to clipboard operation
halstack-react copied to clipboard

[DxcButton] "danger" mode

Open AlanPadi95 opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. I think we need a clear way to show a button with an action that could be dangerous to execute, for example, when you have a button that will remove something permanently from your database.

Describe the solution you'd like The solution I have thought of is to create a new mode named danger or something like that with the lowest preference in the list of modes that will show the button on a red background.

Describe alternatives you've considered N/A

Additional context An example use case: image

Add Labels SaaSOps Automation, CSAM Applications, DxcButton.

AlanPadi95 avatar Dec 11 '23 10:12 AlanPadi95

This issue is stale because it has been open for 15 days with no activity. If there are no further updates or modifications within the next 15 days, it will be automatically closed.

github-actions[bot] avatar Feb 18 '24 01:02 github-actions[bot]

This issue is stale because it has been open for 15 days with no activity. If there are no further updates or modifications within the next 15 days, it will be automatically closed.

github-actions[bot] avatar Mar 06 '24 01:03 github-actions[bot]

@lcordobapuerto can I ask your opinion on this topic?

Mil4n0r avatar Apr 19 '24 06:04 Mil4n0r

This will be covered by the new semantic buttons.

@raquelarrojo make sure to link this issue to the PR once it is ready 😄

Mil4n0r avatar Jul 11 '24 09:07 Mil4n0r