What fresh hell is THIS now? - Patrick Lauke
alt=""
make the automated tests fail? We’re shopping around for automated testing for accessibility, but we use Travis CI.
alt=""
instructs assistive tech to ignore an image
alt=""
to an <img>
, the image is removed from the accessibility tree
alt=''
for thumbnails because there was more meaningful metadata included in the content
alt=""
creates more noise for screen readers?
aria-labelledby
in the case you’re describing
[cryberg] Hi All, I could use some help. I'm trying to advocate to update a particular section of the web application I work on to make it more keyboard friendly, but my designers don't want to buy into the changes until they see an example somewhere else on the internet of the same concept. Here's the breakdown:
As it stands, we have a list of items on the main screen. Clicking on an item opens a modal dialog of more details for that item, and in the header of the modal are "Previous" and "Next" buttons that will load the details modal for the previous/next item from the list on the main screen. Currently, when one of those next/previous buttons is clicked, the whole modal then rerenders quickly. It visually looks like only the content was updated and the buttons were present the whole time. After rerender, focus begins at the beginning of the modal, i.e. not on the button that had been clicked.
In other words, if you click "next," you then have to tab three times to click "next" again (First on the whole modal, second on "previous", third on "next), and it makes it very frustrating to quickly page through the details.
Finally, if you are at the end of the list, the "Next" button becomes disabled, and likewise "Previous" is disabled if you're at the beginning of the list.
What I am proposing is to preserve focus on "Next" or "Previous" when they are clicked, so you can just hit "Next", "Next", "Next" and get to what you want without a lot of extraneous tabs. This could be done by using jquery to reassign focus, or to rewrite the view structure so the buttons don't rerender; both options are on the table. And when you get to the end of the list and "Next" is disabled, I'm proposing that focus should move to the "Previous" button.
In my mind, this seems much more usable, but I'm getting a lot of pushback on it. They particularly don't like moving focus to "Previous" if "Next" is disabled, and vice versa. If anyone has some thoughts on why the proposal not more usable, I would love to hear the feedback. And if anyone has an example of this kind of keyboard interaction being used somewhere else that might help my case, I'd greatly greatly appreciate it.
aria-hidden="true"
would be something to add (maybe even programatically) to make sure all screen readers ignore it
alt=""
is well supported across user agents to remove images from the accessibility API
tabindex=2
?
role="presentation"
be the best option?
var imageIsPresentational = (image.hasAttribute('alt') && image.alt == '') || image.getAttribute('role') == 'presentation';
aria-hidden
tabindex
; there could still be one, of course. Just seems like it would be too much of a hassle to have to manage it.
aria-disabled
is a better solution for screen readers if the button is disabled and have the tab focus back on previous.
tabindex="2"
on a "forgot password" link that was in the middle of the form