woocommerce/plugins/woocommerce-blocks/packages/components/checkbox-list
Maikel Perez 640a6ca439
CheckboxList and CheckboxControl: Label htmlFor and Input id should be unique (#50566)
* Extract the checkbox list option logic into its own component
This allows to generate a dynamic id per option so it never repeats in the entire document.

* Add changelog file

* Move CheckboxListOptionControl to its own file

* Add value to the checkbox control to be aligned with the native input type=checkbox element. And also use it to get the correct checkbox by value in unit tests

* Because checkboxes not longer have fixed ids, now we use their value to lookup for them instead

* Updating snapshots since the checkboxes ids are now autogenerated
2024-08-12 12:33:17 -04:00
..
stories Rename Checkbox List story to work with storybook 7 (https://github.com/woocommerce/woocommerce-blocks/pull/11679) 2023-11-20 13:15:22 +00:00
checkbox-list-option-control.tsx CheckboxList and CheckboxControl: Label htmlFor and Input id should be unique (#50566) 2024-08-12 12:33:17 -04:00
index.tsx CheckboxList and CheckboxControl: Label htmlFor and Input id should be unique (#50566) 2024-08-12 12:33:17 -04:00
style.scss Move `CheckboxList` and create new `blocksComponents` package (https://github.com/woocommerce/woocommerce-blocks/pull/11214) 2023-10-17 02:47:34 -07:00
types.ts CheckboxList and CheckboxControl: Label htmlFor and Input id should be unique (#50566) 2024-08-12 12:33:17 -04:00