Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / tour / js / tour.es6.js
index f3b11072b1ace3421574138f3d8ea31a33fc4b6d..fa599d041adcd8b06aacdfb1a76af43562279792 100644 (file)
         const $tour = this._getTour();
         this._removeIrrelevantTourItems($tour, this._getDocument());
         const that = this;
+        const close = Drupal.t('Close');
         if ($tour.find('li').length) {
           $tour.joyride({
             autoStart: true,
             },
             // HTML segments for tip layout.
             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 });