Commit ebfd3598 authored by catch's avatar catch
Browse files

Issue #3296096 by Gábor Hojtsy, smustgrave, catch, Spokje: Update tabbable...

Issue #3296096 by Gábor Hojtsy, smustgrave, catch, Spokje: Update tabbable deprecation messages to 11.x

(cherry picked from commit 69d084fc)
parent f47fff71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
    tabbable(element) {
      Drupal.deprecationError({
        message:
          'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 10.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730',
          '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',
      });

      // The tabbable library considers the summary element tabbable, and also
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
  $.extend($.expr[':'], {
    tabbable(element) {
      Drupal.deprecationError({
        message: 'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 10.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'
        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'
      });

      if (element.tagName === 'SUMMARY' || element.tagName === 'DETAILS') {
+2 −2
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ module.exports = {
      );
    });
    browser.assert.deprecationErrorExists(
      'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 10.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730',
      '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',
    );
    browser.drupalLogAndEnd({ onlyOnError: false });
  },
@@ -338,7 +338,7 @@ module.exports = {
      );
    });
    browser.assert.deprecationErrorExists(
      'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 10.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730',
      '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',
    );
    browser.drupalLogAndEnd({ onlyOnError: false });
  },