diff core/modules/tour/js/tour.js @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
line wrap: on
line diff
--- a/core/modules/tour/js/tour.js	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/tour/js/tour.js	Mon Apr 23 09:46:53 2018 +0100
@@ -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 });