Accessibility bug on kb landing page
-
The landing page for the knowledge base has an accessibility bug because the category open close < a > tags are missing an href attribute. The missing href attribute causes the tab key to skip over category links making it impossible to use the knowledge base with your keyboard.
To fix this line 208 of class-epkb-layout-basic.php should read:
><?php echo $category_name; ?>
Once the link is valid html, the browser will react to clicks on it, which we don’t want. So, we also need to add:
return false;
To the click event in public-scripts.js on line 240 to prevent the browser from refreshing the page on click.
Please let me know if you’d like a Pull Request with this fix on Github, or a patch file to make it easier for you. Happy to help!
- The topic ‘Accessibility bug on kb landing page’ is closed to new replies.