summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorduncan.moo2017-11-30 16:26:36 -0600
committerMark Carver2017-11-30 16:26:36 -0600
commit325de26e12e987822ed8390cdc78f7abd538cbbe (patch)
treefc77430685a8ff08382b2466bbe6da12f1663567
parentb7bb96acfc2119fad48f0ca7e0e8cbb44796066b (diff)
Issue #2918685 by duncan.moo: Alert close link does not work on D8.4HEAD8.x-3.x
-rw-r--r--js/misc/progress.js2
-rw-r--r--templates/system/status-messages.html.twig2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/misc/progress.js b/js/misc/progress.js
index 6eaaa68..31d4049 100644
--- a/js/misc/progress.js
+++ b/js/misc/progress.js
@@ -61,7 +61,7 @@
* @param {string} string
*/
displayError: function (string) {
- var error = $('<div class="alert alert-block alert-error"><a class="close" data-dismiss="alert" href="#">&times;</a><h4>' + Drupal.t('Error message') + '</h4></div>').append(string);
+ var error = $('<div class="alert alert-block alert-error"><button class="close" data-dismiss="alert">&times;</button><h4>' + Drupal.t('Error message') + '</h4></div>').append(string);
$(this.element).before(error).hide();
if (this.errorCallback) {
diff --git a/templates/system/status-messages.html.twig b/templates/system/status-messages.html.twig
index 327bfb5..0920b96 100644
--- a/templates/system/status-messages.html.twig
+++ b/templates/system/status-messages.html.twig
@@ -50,7 +50,7 @@
]
%}
<div{{ attributes.addClass(classes) }} role="alert">
- <a href="#" role="button" class="close" data-dismiss="alert" aria-label="{{ 'Close'|t }}"><span aria-hidden="true">&times;</span></a>
+ <button role="button" class="close" data-dismiss="alert" aria-label="{{ 'Close'|t }}"><span aria-hidden="true">&times;</span></button>
{% if status_headings[type] %}
<h4 class="sr-only">{{ status_headings[type] }}</h4>
{% endif %}