mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Add appropriate aria labels to donut graphs
This commit is contained in:
parent
95328553ca
commit
c2568548cf
@ -268,6 +268,7 @@ class Donut
|
|||||||
$svg['content'][] = array(
|
$svg['content'][] = array(
|
||||||
'tag' => 'circle',
|
'tag' => 'circle',
|
||||||
'attributes' => array(
|
'attributes' => array(
|
||||||
|
'aria-hidden' => true,
|
||||||
'cx' => 20,
|
'cx' => 20,
|
||||||
'cy' => 20,
|
'cy' => 20,
|
||||||
'r' => sprintf('%F', $this->radius),
|
'r' => sprintf('%F', $this->radius),
|
||||||
@ -329,6 +330,7 @@ class Donut
|
|||||||
array(
|
array(
|
||||||
'tag' => 'a',
|
'tag' => 'a',
|
||||||
'attributes' => array(
|
'attributes' => array(
|
||||||
|
'aria-label' => $labelBig . ' ' . $labelSmall,
|
||||||
'href' => $this->getLabelBigUrl() ? $this->getLabelBigUrl()->getAbsoluteUrl() : null,
|
'href' => $this->getLabelBigUrl() ? $this->getLabelBigUrl()->getAbsoluteUrl() : null,
|
||||||
'class' => $this->labelBigEyeCatching
|
'class' => $this->labelBigEyeCatching
|
||||||
? 'donut-label-big donut-label-big-eye-catching'
|
? 'donut-label-big donut-label-big-eye-catching'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user