]> BookStack Code Mirror - bookstack/blobdiff - app/helpers.php
Made a mass of accessibility improvements
[bookstack] / app / helpers.php
index 9bbfcfbf0fc6535a25cec4750d90006c48d444ea..f36f2e59dcef11b461cd5efdf239f6ea683dda1c 100644 (file)
@@ -133,8 +133,9 @@ function theme_path($path = '') : string
 function icon($name, $attrs = [])
 {
     $attrs = array_merge([
-        'class' => 'svg-icon',
-        'data-icon' => $name
+        'class'     => 'svg-icon',
+        'data-icon' => $name,
+        'role'      => 'presentation',
     ], $attrs);
     $attrString = ' ';
     foreach ($attrs as $attrName => $attr) {