Commit 987e147c authored by alexpott's avatar alexpott

Issue #2885583 by drpal, keeganstreet, Dinesh18, naiduharish, sim_1, idebr,...

Issue #2885583 by drpal, keeganstreet, Dinesh18, naiduharish, sim_1, idebr, larowlan, Gábor Hojtsy, nick_schuch, droplet: Close button in tour module lacks descriptive text
parent b4064da7
......@@ -146,6 +146,7 @@
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,
......@@ -154,7 +155,7 @@
},
// HTML segments for tip layout.
template: {
link: '<a href="#close" class="joyride-close-tip">&times;</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>',
},
});
......
......@@ -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,7 +72,7 @@
},
template: {
link: '<a href="#close" class="joyride-close-tip">&times;</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>'
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment