Refactor button + Add new semantic mode and/or Create New Component #2028
-
We are facing an issue with our current buttons, which are too large to be used in compact components (like alerts and toasts). This affects the consistency and usability of our interfaces. We would like to open a discussion to explore two possible solutions: Refactor the Button Component and Add a New Semantic Mode:
Create a New Button Component:
This will also solve previous request #1746 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Technical approachTo incorporate this use case into the current
A coded example would be:
|
Beta Was this translation helpful? Give feedback.
-
This is already implemented and released in the next version of Halstack. |
Beta Was this translation helpful? Give feedback.
Technical approach
To incorporate this use case into the current
DxcButton
I propose two things:semantic
. Defines the semantic character of the component. Values: "error", "default", "valid", etc.size
prop. Now it would become an object and allow to set both width (current values: "small", "medium") and height ("s" or "small", "m" or "medium", etc).A coded example would be: