Skip to content

Commit

Permalink
Fix the aria-label attribute not properly output
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed Mar 6, 2023
1 parent d84ceed commit 7e3e431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrontendModule/ChangeLanguageModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function generateTemplateArray(NavigationItem $item, UrlParameterBag $
'accesskey' => '',
'tabindex' => '',
'nofollow' => false,
'rel' => ' hreflang="'.$item->getLanguageTag().'"'.(empty($item->getAriaLabel() ? '' : ' aria-label="'.$item->getAriaLabel().'"')),
'rel' => ' hreflang="'.$item->getLanguageTag().'"'.(empty($item->getAriaLabel()) ? '' : ' aria-label="'.$item->getAriaLabel().'"'),
'target' => ($item->isNewWindow() ? ' target="_blank"' : ''),
'item' => $item,
'languageTag' => $item->getLanguageTag(),
Expand Down

0 comments on commit 7e3e431

Please sign in to comment.