focus-trap icon indicating copy to clipboard operation
focus-trap copied to clipboard

aria-disabled should be focusable

Open kee-oth opened this issue 3 years ago • 0 comments

Currently, focus-trap doesn't allow for focusing of elements with aria-disabled=true. For accessibility reasons, aria-disabled=true is often used instead of disabled to allow for the element to be tabbed to. Can we at least get an opt-in option to not consider elements with aria-disabled=true when determining whether it can be focused?

Thanks!

https://github.com/andreasbm/focus-trap/blob/efe549115288362d2aaae9b7a4780cc4539d097d/src/lib/focusable.ts#L29

kee-oth avatar Aug 05 '21 18:08 kee-oth