Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
107 stars 7 forks source link

Checkbox - add error state #581

Closed daniele-zurico closed 5 months ago

daniele-zurico commented 7 months ago

The Checkbox should have one property in case of error:

isError?: boolean;

if isError=true we should add some classes to the style property of the container, checkbox, and label. In particular:

dcx-checkbox-container--error
dcx-checkbox-checkbox--error
dcx-checkbox-label--error

please make sure you create:

daniele-zurico commented 5 months ago

closed by #585