Fixes markup for logout link

With AMC disabled, the logout link does not have the class
menu__item--logout - this breaks the behaviour of the logout
function which has JavaScript that manages a confirmation
workflow.

The issue is a typo - class is mapped to classes in
SingleMenuEntryItem::getComponents

Change-Id: I891ed700edadfad80888120c6e0666b6e7589377
This commit is contained in:
Jon Robson 2024-10-16 10:40:33 -07:00
parent cd9018dc05
commit 710d1f7cd4

View file

@ -1,6 +1,6 @@
<li class="toggle-list-item {{class}}">
{{#components}}
<a class="toggle-list-item__anchor {{class}}"{{#array-attributes}} {{key}}="{{value}}"{{/array-attributes}}>
<a class="toggle-list-item__anchor {{classes}}"{{#array-attributes}} {{key}}="{{value}}"{{/array-attributes}}>
{{#data-icon}}{{>Icon}}{{/data-icon}}
<span class="toggle-list-item__label">{{label}}</span>
</a>