What fresh hell is THIS now? - Patrick Lauke
[morgan] Hi all, I have an issue with this code
<a href="#0"> <span class="o-category-item"> <img src="/sg-images/squares/760-B.png" alt="" class="o-category-item__image"> <span class="o-category-item__text">lorem</span> </span> </a>
When navigating with Voice Over, it tells the image name and the lorem
text. The image here is for decoration only.
How do I get screen readers to not care about it and just tell the text that follows?
I believe it is a common pattern, I'm quite a beginner in a11y though
[iandevlin] Hi, has anyone had issues with focus states on mobile? I have this dilemma at the moment that when a user focusses on an input field, and the keyboard opens, and then they move focus to a button which opens a calendar, the device scrolls down so that the selected day (which is where the focus automatically moves to when the calendar is opened) is visible.
This would be fine, except that it does the scroll before the keyboard is closed, so that in effect it scrolls down way too far, so when the keyboard closes, there is a lot of empty space, and it is clear the the device didn't really need to scroll down so far.
Personally, while annoying, I think that this is acceptable, but others do not.
What do people here think?
Should the focus move to the close button (first element in the opened calendar and visible as soon as it is opened, therefore no scrolling) instead?
for
and id
attributes, or they can be used to implicitly be tied to an element by wrapping it:
<label> Name: <input type="text" name="un"> </label>
[karlgroves] No, it should uniquely identify the content first
“Article Title, Site Name - SEO keyword stuffing shit”
<h1>
content in the title
alt=""
that will generally work cross-AT (assistive technologies)
[karlgroves] > ARIA-presentation attribute to the image
fire that “expert”
role="presentation"
- it doesn't do any harm afaik, and makes it clear if anyone else looks at the html that the alt tag isn't just accidentally blank
alt=""
is supported by all browsers, OSes, AT and all versions thereof
role="none"
makes way more sense, especially if it's exactly what presentation was really doing
alt
should work in all browsers, but as shown by @morgan
role="presentation"
does make Chrome skip the image with VO
src="filename123" alt="brief description"
= VO reads “description”src="filename123" alt=""
= VO reads “filename123"src="filename123" alt="" role="presentation"
= VO skips the image
60.0.3112.90 (Official Build) (64-bit)
, macOS 10.12.6
alt=""
in the above example?
60.0.3112.101
), same thing