vmware-clarity / ng-clarity

Clarity Angular is a scalable, accessible, customizable, open-source design system built for Angular.
https://clarity.design
Other
343 stars 78 forks source link

Checkbox Group Validation #82

Open ezekeal opened 2 years ago

ezekeal commented 2 years ago

Describe the bug

When validating the clarity angular checkbox group, clarity error message visibility doesn't reflect the validation state

How to reproduce

https://stackblitz.com/edit/clarity-light-theme-clr13-cds6-ow8gvl?file=src/app/app.component.html|

Steps to reproduce the behavior:

  1. create a clarity form with a checkbox group
  2. add errors
  3. add a validator for the group
  4. check all boxes
  5. uncheck any box but the last one
  6. observe the error messages do not appear
  7. uncheck the last one
  8. see that error messages appear

Expected behavior

Error messages will appear when any one of the checkboxes are unchecked (for this validator)

Versions

Clarity version:

Framework:

Framework version: Angular 12 / 13

Device:

valentin-mladenov commented 5 months ago

This issue is forwarded to internal JIRA ticket CDE-1616.