diff -u b/core/modules/outside_in/js/offcanvas.js b/core/modules/outside_in/js/offcanvas.js --- b/core/modules/outside_in/js/offcanvas.js +++ b/core/modules/outside_in/js/offcanvas.js @@ -15,12 +15,9 @@ */ var createOffCanvasWrapper = function (pageWidth) { return $('
', { - id: 'offcanvas', + 'id': 'offcanvas', 'role': 'region', - 'aria-labelledby': 'offcanvas-header', - css: { - right: '-25%' - } + 'aria-labelledby': 'offcanvas-header' }); }; @@ -50,30 +47,26 @@ * Create the off canvas close element. * @param {object} offCanvasWrapper * The jQuery off canvas wrapper element - * @param {object} page - * The #page element. - * @param {number} pageWidth - * The width of #page-wrapper - * @param {number} animationDuration - * The duration of the animation. + * @param {object} pageWrapper + * The jQuery off page wrapper element * @return {object} * jQuery object that is the off canvas close element. */ - var createOffCanvasClose = function (offCanvasWrapper, page, pageWidth, animationDuration) { - return $('