davidmfoley / react-router-modal

Simple modals for react-router 4
MIT License
153 stars 20 forks source link

Passing tabIndex to ModalLink doesn't work #32

Open Aarbel opened 5 years ago

Aarbel commented 5 years ago

<ModalLink tabIndex={2} />

Doesn't work, do you know a way to fix it ? Thanks

davidmfoley commented 5 years ago

Thanks for the report. Currently there is no way to set tabIndex on a ModalLink, or to set aria props.
As a workaround, you can use a ModalRoute and a Link. I'll fix this in the next round of updates.

Aarbel commented 5 years ago

Thanks a lot @davidmfoley

@lilfaf @vjrabanelly, here you have the information for future accessibility with ModalLinks