Merge pull request #3926 from Icinga/feature/add-appropriate-aria-labels-to-tactical-overview

Add appropriate aria labels to tactical overview
This commit is contained in:
Johannes Meyer 2020-04-09 08:49:34 +02:00 committed by GitHub
commit f872a95cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -268,6 +268,7 @@ class Donut
$svg['content'][] = array(
'tag' => 'circle',
'attributes' => array(
'aria-hidden' => true,
'cx' => 20,
'cy' => 20,
'r' => sprintf('%F', $this->radius),
@ -329,6 +330,7 @@ class Donut
array(
'tag' => 'a',
'attributes' => array(
'aria-label' => $labelBig . ' ' . $labelSmall,
'href' => $this->getLabelBigUrl() ? $this->getLabelBigUrl()->getAbsoluteUrl() : null,
'class' => $this->labelBigEyeCatching
? 'donut-label-big donut-label-big-eye-catching'

View File

@ -11,7 +11,7 @@
<?php return; endif ?>
<div class="boxview" data-base-target="_next">
<div class="donut-container">
<h2><?= $this->translate('Host Summary') ?></h2>
<h2 aria-label="<?= $this->translate('Host Summary') ?>"><?= $this->translate('Host Summary') ?></h2>
<div class="donut">
<?= $hostStatusSummaryChart ?>
</div>
@ -68,7 +68,7 @@
</ul>
</div>
<div class="donut-container">
<h2><?= $this->translate('Service Summary') ?></h2>
<h2 aria-label="<?= $this->translate('Service Summary') ?>"><?= $this->translate('Service Summary') ?></h2>
<div class="donut">
<?= $serviceStatusSummaryChart ?>
</div>