dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

[DxcButton] "danger" mode #1746

Closed AlanPadi95 closed 2 weeks ago

AlanPadi95 commented 9 months ago

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.

github-actions[bot] commented 6 months ago

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] commented 6 months ago

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.

Mil4n0r commented 4 months ago

@lcordobapuerto can I ask your opinion on this topic?

Mil4n0r commented 1 month ago

This will be covered by the new semantic buttons.

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