[icinga-checkins] icinga.org: icingaweb2/feature/accessibility-autorefresh-7945: WCAG/1.1.1: Fix example for accessible icon fonts to work with NVDA too

git at icinga.org git at icinga.org
Mon Feb 16 12:06:49 CET 2015


Module: icingaweb2
Branch: feature/accessibility-autorefresh-7945
Commit: 97f5018247027fd0c3894b7114d3f9e251774200
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=97f5018247027fd0c3894b7114d3f9e251774200

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Mon Feb 16 10:23:54 2015 +0100

WCAG/1.1.1: Fix example for accessible icon fonts to work with NVDA too

refs #8358

---

 doc/accessibility/ifont.html |   17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/doc/accessibility/ifont.html b/doc/accessibility/ifont.html
index 481cbff..32f1221 100644
--- a/doc/accessibility/ifont.html
+++ b/doc/accessibility/ifont.html
@@ -10,22 +10,9 @@
         .icon-star:before {
             content: "★";
         }
-        .sr-only {
-            border: 0;
-            clip: rect(0 0 0 0);
-            height: 1px;
-            margin: -1px;
-            overflow: hidden;
-            padding: 0;
-            position: absolute;
-            width: 1px;
-        }
     </style>
 </head>
 <body>
-<span tabindex="0">
-    <i class="icon-star" aria-hidden="true"></i>
-    <span class="sr-only">Top rated article</span>
-</span>
+    <i role="img" class="icon-star" aria-label="Top rated article" title="Top rated article"></i>
 </body>
-</html>
+</html>
\ No newline at end of file



More information about the icinga-checkins mailing list