Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 68af7ec

Browse files
jaksenkodiasbruno
authored andcommitted
[added] tabbable support for iframes
Iframes are, just like a button, anchor or inputs, an interactive element that should be focusable in modal. For example I play youtube videos in modals. Keyboard users should be able to pause video (or trigger any other action) as well.
1 parent 28986ea commit 68af7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/helpers/tabbable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* http://api.jqueryui.com/category/ui-core/
1111
*/
1212

13-
const tabbableNode = /input|select|textarea|button|object/;
13+
const tabbableNode = /input|select|textarea|button|object|iframe/;
1414

1515
function hidesContents(element) {
1616
const zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /