Skip to content
Snippets Groups Projects
Commit 9c51abb9 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add aria role 'button' to toggle and make the description more verbose, re #973

parent 1dad7aab
No related branches found
No related tags found
No related merge requests found
...@@ -11,14 +11,20 @@ ...@@ -11,14 +11,20 @@
<? foreach ($ruleTypes as $type => $details): ?> <? foreach ($ruleTypes as $type => $details): ?>
<tr id="ruletype_<?= htmlReady($type) ?>"> <tr id="ruletype_<?= htmlReady($type) ?>">
<td> <td>
<a href="<?= $controller->toggle_activation($type) ?>"> <a href="<?= $controller->toggle_activation($type) ?>" role="button">
<? if ($details['active']): ?> <? if ($details['active']): ?>
<?= Icon::create('checkbox-checked')->asImg([ <?= Icon::create('checkbox-checked')->asImg([
'title' => _('Diese Regel ist aktiv. Klicken Sie hier, um sie zu deaktivieren.') 'title' => sprintf(
_('Die Regel "%s" ist aktiv. Klicken Sie hier, um sie zu deaktivieren.'),
$details['name']
)
]) ?> ]) ?>
<? else: ?> <? else: ?>
<?= Icon::create('checkbox-unchecked')->asImg([ <?= Icon::create('checkbox-unchecked')->asImg([
'title' => _('Diese Regel ist inaktiv. Klicken Sie hier, um sie zu aktivieren.') 'title' => sprintf(
_('Die Regel "%s" ist inaktiv. Klicken Sie hier, um sie zu aktivieren.'),
$details['name']
)
]) ?> ]) ?>
<? endif; ?> <? endif; ?>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment