diff --git a/core/misc/dialog/off-canvas.es6.js b/core/misc/dialog/off-canvas.es6.js index 3fec664aa0..c8e4599f6e 100644 --- a/core/misc/dialog/off-canvas.es6.js +++ b/core/misc/dialog/off-canvas.es6.js @@ -1,8 +1,6 @@ /** * @file * Drupal's off-canvas library. - * - * @private */ (($, Drupal, debounce, displace) => { @@ -19,12 +17,14 @@ /** * The minimum width to use body displace needs to match the width at which * the tray will be 100% width. @see core/misc/dialog/off-canvas.css + * * @type {Number} */ minDisplaceWidth: 768, /** * Wrapper used to position off-canvas dialog. + * * @type {jQuery} */ $mainCanvasWrapper: $('[data-off-canvas-main-canvas]'), @@ -34,6 +34,7 @@ * * @param {jQuery} $element * The dialog element. + * * @return {bool} * True this is currently an off-canvas dialog. */ @@ -43,8 +44,10 @@ /** * Handler fired before an off-canvas dialog has been opened. - * @param {Object} settings + * + * @param {Object} settings * Settings related to the composition of the dialog. + * * @return {undefined} */ beforeCreate({ settings }) { @@ -65,6 +68,7 @@ /** * Handler fired after an off-canvas dialog has been closed. + * * @return {undefined} */ beforeClose() { @@ -77,10 +81,12 @@ /** * Handler fired when an off-canvas dialog has been opened. - * @param {jQuery} $element + * + * @param {jQuery} $element * The off-canvas dialog element. - * @param {Object} settings + * @param {Object} settings * Settings related to the composition of the dialog. + * * @return {undefined} */ afterCreate({ $element, settings }) { @@ -102,8 +108,10 @@ /** * Toggle classes based on title existence. * Called with Drupal.offCanvas.afterCreate. - * @param {Object} settings + * + * @param {Object} settings * Settings related to the composition of the dialog. + * * @return {undefined} */ render({ settings }) { diff --git a/core/misc/dialog/off-canvas.form.css b/core/misc/dialog/off-canvas.form.css index 217f3d1f2c..ac3189bf39 100644 --- a/core/misc/dialog/off-canvas.form.css +++ b/core/misc/dialog/off-canvas.form.css @@ -74,7 +74,6 @@ font-size: 14px; color: #333; line-height: 16px; - cursor: pointer; } /* Reduce contrast for fields against dark background. */ #drupal-off-canvas .form-text,