carbon-design-system / carbon-components-vue

Vue implementation of the Carbon Design System
http://vue.carbondesignsystem.com
Apache License 2.0
597 stars 176 forks source link

fix: a11y tests for CvList, CvCheckbox, CvRadioButton, CvRadioGroup #1570

Closed benceszenassy closed 4 months ago

benceszenassy commented 4 months ago

Contributes to #1538

What did you do?

Add CvList, CvCheckbox, CvRadioButton, CvRadioGroup accessibility tests and fix components and tests if needed.

Why did you do it?

To make component more accessible.

How have you tested it?

With the expect(...).toBeAccessible(...) built in utility.

Were docs updated if needed?

CvRadioGroup

This component did not have a fieldset, legend pair, my solution was based on the v10 react component.

The tamplate changed from this: image To this: image