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:
commit
f872a95cc5
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue