]> cat aescling's git repositories - mastodon.git/commit
Fix column headers accessibility (#6199)
authorGô Shoemake <marrus-sh@users.noreply.github.com>
Mon, 15 Jan 2018 03:33:06 +0000 (19:33 -0800)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 15 Jan 2018 03:33:06 +0000 (04:33 +0100)
commit08e4c78e78358c2847967e9cc34b4a6497be97e2
tree3204d0479e706e0f2902f56d82463e51e7e84973
parent704053d22172de4924d0fc7baa7ad1a93df697bc
Fix column headers accessibility (#6199)

* Fix accessibility of column headers

As a screen reader user new to Mastodon, I encountered the following issues with the column headers as designed:
 * Jumping between them was difficult. FOr instance, passing my home timeline to reach notification settings was difficult to impossible, especially considering infinite scrolling.
 * There doesn't appear to be any means for triggering the control via the keyboard. the `titleClick` handler only responds to mouse clicks.
 * I didn't even realize there was a Settings toggle until I made this change.

Thanks for using ARIA in your designs. It's a huge help. But adding a `button` role doesn't add keyboard handling and other button behavior. Also, because the role was on the heading container, it obscured the controls within the container itself. This fix resolve that. It also exposes the headings as headings rather than buttons, enabling skipping columns by using screen readers' heading navigation commands.

Since I myself am blind, if this fix requires additional visual styling, I'd like help applying that so it can be merged. I'd consider it an essential accessibility fix for my and other blind users' existence on the platform. Thanks!

* Styling fixes

* Fixed overflow issue
app/javascript/mastodon/components/column_header.js
app/javascript/styles/mastodon/components.scss