mskocik / svelecte

Flexible autocomplete/select component written in Svelte,
https://svelecte.vercel.app
MIT License
469 stars 42 forks source link

How to add aria attributes for svelecte dropdown? #186

Closed darshantechnosoft closed 8 months ago

darshantechnosoft commented 1 year ago

I am using the latest version of Sveltect. I am not able to add my own aria attributes.

mskocik commented 1 year ago

Yes, support for proper a11y is lacking... It's being worked on in v4 which is under development.

Can you be more specific on your use-case? To better prepare component for it. Thanks

roshank190 commented 1 year ago

what we need is all aria-label and aria-describedby attribute to be passed on input element. You can refer link given below. https://www.w3.org/WAI/tutorials/forms/instructions/