Skip to content

Commit

Permalink
fix: drawer aria controls
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Oct 14, 2024
1 parent b4488fd commit 29326e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Component/Drawer/Drawer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function getToggleButtonData($toggleButtonData, array $screenSizeClassNa
}

$toggleButtonData['attributeList']['data-js-toggle-trigger'] = 'drawer-' . $this->getUid();
$toggleButtonData['attributeList']['aria-controls'] = 'navigation';
$toggleButtonData['attributeList']['aria-controls'] = 'drawer';
$toggleButtonData['classList'] = array_merge($screenSizeClassNames, $toggleButtonData['classList'] ?? []);
$toggleButtonData['classList'][] = $this->getBaseClass('toggle');

Expand Down

0 comments on commit 29326e8

Please sign in to comment.