a11y is not good #3308
Labels
No Label
area/internal-code
changes requested
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#3308
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Description
I'm not a big expert on accessibility, but one thing I noticed is that keyboard access is pretty bad.
Checkboxes are not focusable, due to
display: none
:fe764a46e9/src/components/input/fancycheckbox.vue (L79-L81)
Some UI is only shown on hover, but not on focus, so you can't see where your focus is, and can't know that there's even such UI if you're using a keyboard exclusively:
befa6f27bb/src/components/tasks/partials/singleTaskInProject.vue (L364-L374)
Many such cases. Search for
:hover
oropacity: 1
. Consider adding:focus
to:hover
selectors.Some otherwise hidden elements are still focusable
0ff0d8c5b8/src/components/misc/popup.vue (L46-L51)
Otherwise poor outline of focused elements. "Search" and "Filters" buttons on the project view, active router links:
befa6f27bb/src/styles/theme/theme.scss (L3-L6)
Not purely keyboard-related, but some icon-buttons have no labels, like the "Notifications" one.
Gecko (Firefox) browser dev tools' "Accessibility" tab can be of great help for a start.
Vikunja Frontend Version
2f009d0b27
Vikunja API Version
v0.20.4+28-6aadaaaffc
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
Yes, a11y is an ongoing effort. We have a few tasks in the backlog about this already. Problem is none of us are a11y experts either, so we tend to fix stuff as we become aware of it.
Very good points. As @konrad wrote: we are aware of that is is a problem in general and we do intend to solve this. We do not see accessibility as a second class citizen and do want to implement everything new with a decent accessibility in mind. That said we have a long list of old issues that we have to take care (from which you mentioned a few). I have the plan to create a component library for Vikunja step by step that should improve the situation in many areas siginficantly. In those components I want to use some of headlessuis components combined with some good parts of vueuse and self written composables to help the accessibility.
Some other background here is that we originally relied on bulma a css framework that doesn't have any continuing development. In the meantime we switched to bulma-css-variables that is deprecated and got replaces by bulvar. Coming from this switch we still have some big underlying css scoping problems that are in the css adjustment prio list in my head above 'micro' adjustments like changing hover states etc. This has mostly to do with the scope (in the sense of affected code) that a css framework switch implies and not with the importance of individual issues.
Some progress that we already had is more use of semantic elements in the code e.g. replacing
<div>
buttons and links with<button type="button">
and<a>
elements. Still a lot missing though!Regarding the individual points you wrote:
fancycheckbox.vue
: this will be fixed by pr #1800 with 3f3d2c<dialog>
element is enough today.aria-label
and hover popups.@konrad:
I wouldn't label myself as an expert but I guess I could say I have at least some decent knowledge in that area.
@WofWca:
If you want to make some suggestions of individual PRs to address individual problems, I'm happy to assist.