-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility issues #345
Comments
Thanks for this investigation @aidan-fitz. Is there a way to run this accessibility checker as part of the CI? Ideally we'd fix these issues and also add the CI step so that they remain fixed. |
Right now it's only available as a browser extension. A possible CI flow for this would be to render the templates with dummy text, then read them into a headless browser and run the extension code on them. But this is really complicated. AccessLint is a GitHub app that flags accessibility issues on PRs. It works with several template languages, possibly including Jinja. |
I've implemented a few of these in https://github.com/ascoderu/opwen-webapp/pull/209. The following are a bit harder since it's HTML injected by third party libraries:
|
After experimenting in my browser, I've found that changing the nav menu to .navbar-default .navbar-nav>li>a {
color: #666;
}
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a:hover {
color: #333;
background-color: #e7e7e7;
} fixes the color-contrast issue. We can either override the Bootstrap styling in a second CSS file or use existing Bootstrap CSS classes to inject the new colors. |
I found several accessibility issues using the Accessibility Insights tool. I suggest that we fix them so that the app will be usable by a wider base of users.
All pages:
<title>
element to aid in navigation<html>
element must have alang
attribute"Write email" page:
<html>
element must have alang
attribute"Search" page:
The text was updated successfully, but these errors were encountered: