Skip to content
Snippets Groups Projects
Commit e40f52a5 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt #441

parent 974a5c37
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,7 @@ class ActionMenu { ...@@ -197,7 +197,7 @@ class ActionMenu {
this.menu.toggleClass('is-open', this.is_open); this.menu.toggleClass('is-open', this.is_open);
this.menu.toggleClass('is-reversed', this.is_reversed); this.menu.toggleClass('is-reversed', this.is_reversed);
this.menu.attr('aria-expanded', this.is_open ? 'true' : 'false'); this.menu.find('.action-menu-icon').attr('aria-expanded', this.is_open ? 'true' : 'false');
} }
/** /**
......
<? // class "action-menu" will be set from API ?> <? // class "action-menu" will be set from API ?>
<nav <?= arrayToHtmlAttributes($attributes) ?>> <nav <?= arrayToHtmlAttributes($attributes) ?> aria-role="presentation">
<a class="action-menu-icon" title="<?= _('Aktionen') ?>" aria-expanded="false" aria-label="<?= _("Aktionsmenü") ?>" href="#"> <a class="action-menu-icon" aria-expanded="false" title="<?= _('Aktionsmenü') ?>" href="#">
<div></div> <div></div>
<div></div> <div></div>
<div></div> <div></div>
</a> </a>
<div class="action-menu-content"> <div class="action-menu-content">
<div class="action-menu-title"> <div class="action-menu-title" aria-hidden="true">
<?= _('Aktionen') ?> <?= _('Aktionen') ?>
</div> </div>
<ul class="action-menu-list"> <ul class="action-menu-list" aria-label="<?= _('Aktionen') ?>">
<? foreach ($actions as $action): ?> <? foreach ($actions as $action): ?>
<li class="action-menu-item <? if (isset($action['attributes']['disabled'])) echo 'action-menu-item-disabled'; ?>"> <li class="action-menu-item <? if (isset($action['attributes']['disabled'])) echo 'action-menu-item-disabled'; ?>">
<? if ($action['type'] === 'link'): ?> <? if ($action['type'] === 'link'): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment