Skip to content
Snippets Groups Projects
Commit a26816d1 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,6 @@ ...@@ -187,6 +187,6 @@
* A string representing a DOM fragment. * A string representing a DOM fragment.
*/ */
Drupal.theme.toolbarMenuItemToggle = function (options) { 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)); }(jQuery, Drupal, drupalSettings));
...@@ -98,6 +98,6 @@ ...@@ -98,6 +98,6 @@
}; };
Drupal.theme.toolbarMenuItemToggle = function (options) { 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); })(jQuery, Drupal, drupalSettings);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment