woocommerce / selectWoo

selectWoo is a fork of select2 with improved accessibility.
MIT License
124 stars 27 forks source link

feat: add support for required attribute #53

Open frosso opened 4 months ago

frosso commented 4 months ago

This pull request includes a

Adding support for the required attribute, so that it can be read by Screen Readers. Porting of the changes from https://github.com/woocommerce/woocommerce/pull/48371

I added examples in the docs/accessibility-testing/ directory for how to instantiate a "required" select.

The following changes were made

I noticed that the assets are committed compiled in the repo - so I built them as well.

Screenshot 2024-06-28 at 12 03 21 PM