Skip to content

fix(a11y): improved aria-label for status and notifications#690

Merged
nolanlawson merged 6 commits into
masterfrom
issue-689
Nov 25, 2018
Merged

fix(a11y): improved aria-label for status and notifications#690
nolanlawson merged 6 commits into
masterfrom
issue-689

Conversation

@nolanlawson

Copy link
Copy Markdown
Owner

fixes #689

I made a slight modification to the Mastodon frontend's system by adding "Public"/"Unlisted"/"Followers-only"/"Direct" to the end of the aria-label, since this seems like useful information and is only subtly indicated elsewhere. (E.g. in the fact that you can't boost a direct/followers-only status.)

This adds a bit of a perf hit because we now need to use DOMParser to parse HTML to strings, but I measured it, and it seems to be measurable but not huge (on the order of 0.5ms -> 1.5ms per toot on my desktop when running in Chrome at 4x slowdown). We also take a slight perf hit because we are now parsing dates twice, but this is also fairly negligible (0-1ms per date formatted). I'm not super concerned since #656 has moved scrolling off-main-thread for all browsers.

We still don't have j/k keyboard scrolling, so I admit I'm not sure how useful this is to screen reader users. I also don't have a good screen reader to test on right now, since my Mac is busted. But hopefully this helps.

@nolanlawson

Copy link
Copy Markdown
Owner Author

OK, we are now only formatting dates once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve aria labels for statuses and notifications

1 participant