Skip to content

Commit

Permalink
Make all elements that use useDialog tabbable (#27946)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jan 4, 2021
1 parent 53291fe commit e892c21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/compose/src/hooks/use-dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function useDialog( options ) {
focusOnMountRef,
closeOnEscapeRef,
] ),
focusOutsideProps,
{
...focusOutsideProps,
tabIndex: '-1',
},
];
}

Expand Down

0 comments on commit e892c21

Please sign in to comment.