From c2568548cfa6e4f0b2954c049112b8e0681f66c1 Mon Sep 17 00:00:00 2001 From: Feu Mourek Date: Fri, 16 Aug 2019 09:25:28 +0200 Subject: [PATCH] Add appropriate aria labels to donut graphs --- library/Icinga/Chart/Donut.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Chart/Donut.php b/library/Icinga/Chart/Donut.php index 887462f6c..48b28f267 100644 --- a/library/Icinga/Chart/Donut.php +++ b/library/Icinga/Chart/Donut.php @@ -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'