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

8.0.x
Alex Pott 2015-05-08 18:29:53 -07:00
parent 410e69938e
commit 437fa3781b
1 changed files with 1 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class ToolbarItem extends RenderElement {
// 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 @@ class ToolbarItem extends RenderElement {
$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'])) {