Closed daniele-zurico closed 6 months ago
The base component and tests are here for a simple button group that groups buttons together into one pill shape. https://github.com/Capgemini/dcx-react-library/pull/541
However after several talks with @daniele-zurico he wishes the button group to behave a bit more like the angular material button group: https://material.angular.io/components/button-toggle/overview
where after you have clicked a button in the group a class gets added to the button the user last interacted with, which can be used to change how that button looks.
My original branch can be used as a starting point, the component would need to keep track of the button the user last clicked in the group along with adding a class to that button.
In particular, we want:
Closed by #541
As a developer I want to be able to use a
ButtonGroup
component so that I can easily group multiple buttonsThe component should contains:
dcx-button-group
The final user will use in this way:
behind the scenes the buttonGroup component is a div with role group:
Important: you don't need to reimplement the Button component given is already available in the library
Tasks:
Please follow the below to create your branch