summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-02-19 21:31:45 (GMT)
committerAlex Pott2018-02-19 21:31:45 (GMT)
commit987e147c0de746605efee78a3cb4bbc230bd987a (patch)
tree9a81aa36075e2eb4e4a2c44b39be4b699f3d7705
parentb4064da738f38d59e1f5c0c3ae6d8bfc77677314 (diff)
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
-rw-r--r--core/modules/tour/js/tour.es6.js3
-rw-r--r--core/modules/tour/js/tour.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/tour/js/tour.es6.js b/core/modules/tour/js/tour.es6.js
index 669a82d..fa599d0 100644
--- a/core/modules/tour/js/tour.es6.js
+++ b/core/modules/tour/js/tour.es6.js
@@ -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>',
},
});
diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js
index afe1b14..4e675db 100644
--- a/core/modules/tour/js/tour.js
+++ b/core/modules/tour/js/tour.js
@@ -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>'
}
});