Commit 437fa378 authored by alexpott's avatar alexpott

Issue #2471809 by Dom., skippednote, nod_, jessebeach: Toolbar module does not follow W3C

parent 410e6993
......@@ -61,7 +61,7 @@ public static function preRenderToolbarItem($element) {
// Provide attributes necessary for trays.
$attributes += array(
'data-toolbar-tray' => $id . '-tray',
'aria-owns' => $id,
'aria-owns' => $id . '-tray',
'role' => 'button',
'aria-pressed' => 'false',
);
......@@ -75,7 +75,6 @@ public static function preRenderToolbarItem($element) {
$attributes = array(
'id' => $id . '-tray',
'data-toolbar-tray' => $id . '-tray',
'aria-owned-by' => $id,
);
// Merge in module-provided attributes.
if (!isset($element['tray']['#wrapper_attributes'])) {
......
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