-
Notifications
You must be signed in to change notification settings - Fork 5
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
Improve Aria Labels on DataView #772
Comments
When focused on and using a screen reader, the search and cart buttons are outputted as 'container table search button' and 'container table cart button' (defined by aria labels). Does the word container make sense to users? As a developer, I understand container means either table or card view, but is that clear to a user? |
When tabbing around the page, the first focus on table view is when you get to the select all rows checkbox. When this happens, quite a bit of information is given to the user all at the same time, at quick pace: This is useful information but needs to be separated up a bit. In the first instance, full stops should be used at the end of the aria labels to give a bit of gap between each piece of information. Another suggestion I found is to use |
When focusing on the cog, the screen reader dictates "clickable menu button sub menu". This doesn't describe the functionality of it. Using dev tools, I can see that element has |
For reference, the issues I've just raise also added in comments also impact date filters. |
When tabbing through the page, on the first row of data, none of the aria-label register with the screen reader i.e. I'm not being told anything and just sit here in silence. They work on the second row onwards (row 3 in code). I can shift tab back to the first data row and then those will work too. I'm not quite sure why this is, needs further investigation. |
When tabbing through the sort by columns, the second tab nets "button button". This shouldn't output on a screen reader, the first tab gives useful information. This is linked to and the cause of #763 |
Note that DOI is pronounced "doy". That could just be my screen reader and probably not much that can be done on DataGateway's side, but something to note nonetheless. |
I have changed the naming now to remove container from the beginning of these labels. Having container does not make sense to a user. |
Just want to link this issue to the original reason this was created (#738) |
Hi @AkhilMag13 I'm assigning you to this since Goel started but didn't finish it. This should give you something else to do for this sprint. Best to work through the checklist in the issue description and tick things off as you go. Let me know of any issues! |
Instead of clickable menu button sub menu, it now says clickable select filter type menu button sub menu. This is a marginal improvement, could possibly be improved further later on
I had another go at this in 9b6dab0. It now says "clickable include or exclude menu button sub menu". It's hard, if not impossible, to take out the menu button sub menu part |
This prevents the word "navigation" being repeated
This is now fixed by 80758a2 |
…erly #772 This also changes their value from the dataKey of the object to the label of the object. This is because of a jarring effect that can occur when a field is obtained through a complex relationship, e.g. an instrument's investigation. So this would lead to the aria label being 'sort by instrument.investigation'. To make this consistent with what the user sees on the screen, it now says 'sort by ${label-value}'
This is an ongoing problem with regards to NVDA as the screen reader is reading the component's name along with the labels provided. This resulted in another problem being found where the dropdown options are not accessible using keyboard shortcuts and the options are also being read as blank. |
The "Display as Table/Cards" button was being read as "Page-view button" on the screen reader, which offers very little description of the functionality of the button. |
The unit tests have been fixed now and all that needs correcting are end-to-end tests. These can be addressed once PR #813 has been reviewed. |
This was to fix the text overlapping the datepicker icon.
A small item that we may want is the ability to focus on column headers that do not have sorting/filtering. An example of this is "Dataset Count" which at the moment is just an icon and text. You cannot currently tab to the column header and will just skip over it when you try to. The only issue at the moment is how the tabbing should be configured, using |
Reads out the column name through screen reader but still having problem with table information being read on every tab to a new column
I have created this as a separate issue (#823) in order to not hold this issue up. |
…772 To make it easier to uniquely identify the from and to datepickers in unit tests
These take into account the ids added onto date filters
This takes into account the id added to the date filters
Description:
There's quite a few aria-label related improvements that could be made on DataView, so I'll collate them all into this issue. I'm guessing I'll spot things on Download and on Search so I'll create separate issues for those components when I get to them.
I won't include anything related to the view toggle switch, as that's being redesigned in #718 and I've spoken to @GoelBiju about having an aria label which is sensible for the final design of that.
Acceptance criteria:
Add gaps to table view information(check if we want to fix this or not)The text was updated successfully, but these errors were encountered: