Skip to content

Commit

Permalink
Merge pull request #4556 from JayBox325/patch-2
Browse files Browse the repository at this point in the history
Added the <summary> element to focussable elements constant.
  • Loading branch information
alvarotrigo committed Jun 13, 2023
2 parents eada2d8 + b79edfd commit 3a26592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const isTouch = (('ontouchstart' in win) || (navigator.msMaxTouchPoints >
export const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;

// taken from https://github.com/udacity/ud891/blob/gh-pages/lesson2-focus/07-modals-and-keyboard-traps/solution/modal.js
export const focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
export const focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], summary:not([disabled]), [contenteditable]';

// cache common elements
export const FP = {
Expand All @@ -30,4 +30,4 @@ export const extensions = [
'cards',
'dropEffect',
'waterEffect'
];
];

0 comments on commit 3a26592

Please sign in to comment.