mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 23 forks source link

[ic-checkbox, ic-radio] validation styling incorrect\inconsistent when disabled #2012

Open ad9242 opened 2 weeks ago

ad9242 commented 2 weeks ago

Summary of the bug

The styling of radio options and checkboxes has some issues when validation is applied and the disabled prop is set to true

🪜 How to reproduce

With a checkbox (or radio), with error validation set and helperText set to a value. Note how validation is shown & the label is red (helperText remains grey).

image

Now set the disabled prop to true. The validation is correctly removed, but the label remains red and the helperText becomes red:

image

🧐 Expected behaviour

To be confirmed as, for other components like textfield and select, when disabled is set to true, no red validation state is shown:

image