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!
|
|| ($elem.hasAttribute("aria-disabled") && $elem.getAttribute("aria-disabled") !== "false"); |
Currently,
focus-trapdoesn't allow for focusing of elements witharia-disabled=true. For accessibility reasons,aria-disabled=trueis often used instead ofdisabledto allow for the element to be tabbed to. Can we at least get an opt-in option to not consider elements witharia-disabled=truewhen determining whether it can be focused?Thanks!
focus-trap/src/lib/focusable.ts
Line 29 in efe5491