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,
},
template: {
- link: '<a href=\"#close\" class=\"joyride-close-tip\">×</a>',
- button: '<a href=\"#\" class=\"button button--primary joyride-next-tip\"></a>'
+ link: '<a href="#close" class="joyride-close-tip" aria-label="' + close + '">×</a>',
+ button: '<a href="#" class="button button--primary joyride-next-tip"></a>'
}
});
this.model.set({ isActive: true, activeTour: $tour });