Verified Commit 7a21759c authored by Dave Long's avatar Dave Long
Browse files

Issue #3278625 by catch, Taran2L: Remove jquery.tabbable.shim

parent 1732b92c
Loading
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -484,8 +484,8 @@ drupal.autocomplete:
    - core/drupal
    - core/drupalSettings
    - core/drupal.ajax
    - core/tabbable.jquery.shim
    - core/drupal.jquery.position
    - core/tabbable

drupal.batch:
  version: VERSION
@@ -561,8 +561,8 @@ drupal.dialog:
    - core/drupalSettings
    - core/drupal.debounce
    - core/drupal.displace
    - core/tabbable.jquery.shim
    - core/drupal.jquery.position
    - core/tabbable

drupal.dialog.ajax:
  version: VERSION
@@ -867,15 +867,6 @@ transliteration:
  js:
    assets/vendor/transliteration/bundle.umd.min.js: { minified: true }

tabbable.jquery.shim:
  version: VERSION
  js:
    misc/jquery.tabbable.shim.js: {}
  dependencies:
    - core/drupal
    - core/tabbable
    - core/jquery

internal.underscore:
  # Internal library. Do not depend on it outside core nor add new core usage.
  # The library will be removed as soon as the following issues are fixed:

core/misc/jquery.tabbable.shim.js

deleted100644 → 0
+0 −17
Original line number Diff line number Diff line
/**
 * @file
 * Defines a backwards-compatible shim for the jQuery UI :tabbable selector.
 */

(($, Drupal, { isTabbable }) => {
  $.extend($.expr[':'], {
    tabbable(element) {
      Drupal.deprecationError({
        message:
          'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730',
      });

      return isTabbable(element);
    },
  });
})(jQuery, Drupal, window.tabbable);
+0 −32
Original line number Diff line number Diff line
<?php

namespace Drupal\tabbable_shim_test\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * For testing the jQuery :tabbable shim as used in a dialog.
 */
class TabbableShimDialogIntegrationTestController extends ControllerBase {

  /**
   * Provides a page with the jQuery UI dialog library for testing .
   *
   * @return array
   *   The render array.
   */
  public function build() {
    return [
      'container' => [
        '#type' => 'container',
        '#attributes' => [
          'id' => 'tabbable-dialog-test-container',
        ],
      ],
      '#attached' => [
        'library' => ['core/drupal.dialog'],
      ],
    ];
  }

}
+0 −30
Original line number Diff line number Diff line
<?php

namespace Drupal\tabbable_shim_test\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * For testing the jQuery :tabbable shim.
 */
class TabbableShimTestController extends ControllerBase {

  /**
   * Provides a page with the tabbingManager library for testing :tabbable.
   *
   * @return array
   *   The render array.
   */
  public function build() {
    return [
      'container' => [
        '#type' => 'container',
        '#attributes' => [
          'id' => 'tabbable-test-container',
        ],
      ],
      '#attached' => ['library' => ['core/drupal.autocomplete']],
    ];
  }

}
+0 −5
Original line number Diff line number Diff line
name: 'Tabbable Shim Test'
type: module
description: 'Module for the testing the :tabbable selector shim'
package: Testing
version: VERSION
Loading