Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / tour / js / tour.js
index f20796a43681dafa2debb41c54b80bc98b633992..4e675db7ba2d79d5f5e3fee093a15c96bd547281 100644 (file)
@@ -63,6 +63,7 @@
         var $tour = this._getTour();
         this._removeIrrelevantTourItems($tour, this._getDocument());
         var that = this;
+        var close = Drupal.t('Close');
         if ($tour.find('li').length) {
           $tour.joyride({
             autoStart: true,
@@ -71,8 +72,8 @@
             },
 
             template: {
-              link: '<a href=\"#close\" class=\"joyride-close-tip\">&times;</a>',
-              button: '<a href=\"#\" class=\"button button--primary joyride-next-tip\"></a>'
+              link: '<a href="#close" class="joyride-close-tip" aria-label="' + close + '">&times;</a>',
+              button: '<a href="#" class="button button--primary joyride-next-tip"></a>'
             }
           });
           this.model.set({ isActive: true, activeTour: $tour });