Commit a26816d1 authored by lauriii's avatar lauriii

Issue #2974066 by leolando.tan, andrewmacpherson: Missing whitespace makes...

Issue #2974066 by leolando.tan, andrewmacpherson: Missing whitespace makes some toolbar dropbuttons sound strange in screen readers
parent 8faf0fa4
......@@ -187,6 +187,6 @@
* A string representing a DOM fragment.
*/
Drupal.theme.toolbarMenuItemToggle = function (options) {
return `<button class="${options.class}"><span class="action">${options.action}</span><span class="label">${options.text}</span></button>`;
return `<button class="${options.class}"><span class="action">${options.action}</span> <span class="label">${options.text}</span></button>`;
};
}(jQuery, Drupal, drupalSettings));
......@@ -98,6 +98,6 @@
};
Drupal.theme.toolbarMenuItemToggle = function (options) {
return '<button class="' + options.class + '"><span class="action">' + options.action + '</span><span class="label">' + options.text + '</span></button>';
return '<button class="' + options.class + '"><span class="action">' + options.action + '</span> <span class="label">' + options.text + '</span></button>';
};
})(jQuery, Drupal, drupalSettings);
\ No newline at end of file
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