Skip to content
Snippets Groups Projects
Commit 437fa378 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 410e6993
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -61,7 +61,7 @@ public static function preRenderToolbarItem($element) { ...@@ -61,7 +61,7 @@ public static function preRenderToolbarItem($element) {
// Provide attributes necessary for trays. // Provide attributes necessary for trays.
$attributes += array( $attributes += array(
'data-toolbar-tray' => $id . '-tray', 'data-toolbar-tray' => $id . '-tray',
'aria-owns' => $id, 'aria-owns' => $id . '-tray',
'role' => 'button', 'role' => 'button',
'aria-pressed' => 'false', 'aria-pressed' => 'false',
); );
...@@ -75,7 +75,6 @@ public static function preRenderToolbarItem($element) { ...@@ -75,7 +75,6 @@ public static function preRenderToolbarItem($element) {
$attributes = array( $attributes = array(
'id' => $id . '-tray', 'id' => $id . '-tray',
'data-toolbar-tray' => $id . '-tray', 'data-toolbar-tray' => $id . '-tray',
'aria-owned-by' => $id,
); );
// Merge in module-provided attributes. // Merge in module-provided attributes.
if (!isset($element['tray']['#wrapper_attributes'])) { if (!isset($element['tray']['#wrapper_attributes'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment