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 |
Answered by
GomezIvann
Jun 26, 2024
Replies: 2 comments
Technical approachTo incorporate this use case into the current
A coded example would be: |
0 replies
Answer selected by
GomezIvann
|
This is already implemented and released in the next version of Halstack. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Technical approach
To incorporate this use case into the current
DxcButtonI propose two things:semantic. Defines the semantic character of the component. Values: "error", "default", "valid", etc.sizeprop. 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: