diff --git a/src/core/js/accessibility.js b/src/core/js/accessibility.js
index f2577594e..0b722f384 100644
--- a/src/core/js/accessibility.js
+++ b/src/core/js/accessibility.js
@@ -219,7 +219,6 @@ define([
isFocusLimited: true,
isRemoveNotAccessiblesEnabled: true,
isAriaLabelFixEnabled: true,
- isFocusWrapEnabled: true,
isScrollDisableEnabled: true,
isScrollDisabledOnPopupEnabled: false,
isSelectedAlertsEnabled: true,
@@ -233,7 +232,6 @@ define([
isFocusLimited: false,
isRemoveNotAccessiblesEnabled: true,
isAriaLabelFixEnabled: true,
- isFocusWrapEnabled: true,
isScrollDisableEnabled: true,
isScrollDisabledOnPopupEnabled: false,
isSelectedAlertsEnabled: false,
diff --git a/src/core/js/libraries/jquery.a11y.js b/src/core/js/libraries/jquery.a11y.js
index dbf868329..c66f82075 100644
--- a/src/core/js/libraries/jquery.a11y.js
+++ b/src/core/js/libraries/jquery.a11y.js
@@ -33,7 +33,6 @@
// JQUERY INJECTED ELEMENTS
var domInjectElements = {
"focuser": ' ',
- "focusguard": ' ',
"selected": ' ',
"arialabel": ""
};
@@ -616,29 +615,6 @@
$(document).trigger("reading", stringTrim(readText));
}
- function a11y_reattachFocusGuard() {
- var $focusguard;
- var $currentFloor = $.a11y.state.floorStack[$.a11y.state.floorStack.length-1];
-
- if ($.a11y.state.floorStack.length == 1) {
- // only a page/menu is present
- if ($currentFloor.find(domSelectors.focusguard).length === 0) {
- // create and attach the focusguard
- $focusguard = $(domInjectElements.focusguard);
- $focusguard.appendTo($currentFloor).attr("tabindex", 0);
- }
- } else {
- // we have a popup
- if ($currentFloor.find(domSelectors.focusguard).length === 0) {
- // the popup is not using the helper
- console.warn("DEPRECATED (a11y_reattachFocusGuard) - Use the Handlebars helper a11y_wrap_focus after the last tabbable element in the popup");
- // create and attach the focusguard
- $focusguard = $(domInjectElements.focusguard);
- $focusguard.appendTo($currentFloor).attr("tabindex", 0);
- }
- }
- }
-
function a11y_setupUserInputControlListeners() {
$('body')
.off("click", ".prevent-default", preventDefault)
@@ -730,7 +706,6 @@
isFocusLimited: false,
isRemoveNotAccessiblesEnabled: true,
isAriaLabelFixEnabled: true,
- isFocusWrapEnabled: true,
isScrollDisableEnabled: true,
isScrollDisabledOnPopupEnabled: false,
isSelectedAlertsEnabled: false,
@@ -763,10 +738,6 @@
a11y_setupFocusControlListeners();
}
- if (options.isFocusWrapEnabled) {
- a11y_reattachFocusGuard();
- }
-
if (options.isDebug) {
console.log("a11y_ready");
a11y_debug();
@@ -788,10 +759,6 @@
$('body').a11y_aria_label(true);
}
- if (options.isFocusWrapEnabled) {
- a11y_reattachFocusGuard();
- }
-
if (!options.isTabbableTextEnabled) {
a11y_disabledAccessibleTabElements();
}
@@ -1115,10 +1082,6 @@
$('html').css('overflow-y', 'hidden');
$.a11y.state.floorStack[$.a11y.state.floorStack.length-2].scrollDisable();
- $(domSelectors.focusguard, this).css({
- "position":"fixed",
- "bottom": "0px"
- });
}
return this;
@@ -1181,10 +1144,6 @@
if (state.floorStack.length == 1) $('html').css('overflow-y', '');
$.a11y.state.floorStack[$.a11y.state.floorStack.length-1].scrollEnable();
- $(domSelectors.focusguard, $currentFloor).css({
- "position":"",
- "bottom": ""
- });
}
defer(function() {