-
Notifications
You must be signed in to change notification settings - Fork 2k
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
UI: Add some simple accessibility labels for line charts #4718
UI: Add some simple accessibility labels for line charts #4718
Conversation
- Treat it as an image - Add a title and a description - Hide the axes, just in case
Since this is a use case specific chart, we can use use case specific language in our labels.
52917bd
to
6d4d520
Compare
Hey! Right so this one was a little difficult for me to try out! :) Not sure exactly what is expected, but it does read out the text (using VoiceOver on Safari and also Chrome which seem to work slightly differently) It would be difficult for me to approve/not approve anything here based on usage, as I'm really not sure what is expected - VoiceOver seems to repeat things a lot (I think this is the excruciating bit you mention 😂 ). Would be good to chat with you to see what you are aiming for here. Happy to approve functionality-wise if it does what you are aiming for/expecting. Code-wise, 1st little nit is you use 2 forms of the phrase 'time series', one with a hyphen and one without (smallest nit ever!). Apart from that the format-duration code seems quite involved, maybe worthwhile adding some doc at the top explaining the problem its solving, plus a few more inline comments explaining what it's doing where, whatever you think would be useful though. I think overall I'd have some questions over the fact that you have used the plural forms as the Anyway, sorry not the greatest review in the world :( Apart from the above, I'm not actually seeing any lines drawn on the graphs? Feel free to shout me to go through if that would help. |
I suppose I could use the
Short forms don't get pluralized as dictated by the The more I look at this file the more I wonder about it, I think this would be one of those places we'd differ - but I'm happy if you are happy with it yourself? It's not my favorite code, but it's also a sticky situation. Can you describe what is it you don't like about it?
There are inline comments, but I'll add some more for the new |
Yeah don't stress, it's just a thing I noticed and maybe part of the reason why both of us probably think this isn't 'our favorite'.
It's hard to put my finger on. Kind of why I asked if you were happy, I had a feeling it wasn't your favorite either. I think it was just a general feeling of 'there's a lot going on here, and reading through it a few times I'm still not exactly sure'. No biggie, maybe come back at a later date and see if can be improved at all. |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
SVGs by default are either ignored entirely by screen readers or are read in an excruciating and unhelpful detail.
By adding some attributes and helpful labels, these charts become much more useful for people with visual impairments.
Includes
role=img
aria-labelledby
on svgs to associate the title and description fields in case the screen reader doesn't do that automatically.