Forum Moderators: open
How do I best hack/get around/satisfy " Separate adjacent links with more than whitespace." in this situation?
"White space characters", such as spaces, line l. breaks, carriage returns, and paragraph breaks, are not sufficient.
Place some sort of separating character between adjacent links. Images or bulleted or numbered lists are good choices.
These are not options in this case.
Do I just hack in an extra character right after each link, and then hide it with color: or some such? I hate that, but have done it in other situations. Does it matter or help, or cause affected users some other issue?
10.5 Until user agents (including assistive technologies) render adjacent links distinctly, include non-link, printable characters (surrounded by spaces) between adjacent links. [Priority 3]
Same question as above really. On whom (who?) should this issue legitimately fall?
"Not I", I protest, with a vigor usually reserved for IE bashing. However, I want to do my best anyway:((
It seems to me that adjacent links are more of an issue for people with low vision NOT using AT or people with cognitive disabilities who for whatever reason do not understand where one link ends and the next begins just by looking at the words. It is also an issue of usability because where sites have loads of different links one right next to each other, I find I have to concentrate that bit harder to find what I want.
Personally I think this stipulation should be more of an advisory, and not so much a rule (Actually I forget what priority level it is... maybe it is an advisory after all). As the last poster stated, I don't think screen readers have issues with this technique (the Mac's built-in VoiceOver SN doesn't have an issue), so it comes down to sight-enabled users who have trouble with the lack of clarity. That is something that should be kept in mind when designing, but when you gotta do it, you gotta do it.
Example Solution:
Place a separator character, such as a pipe, in a <span style="visibility:hidden"> tag. The <span> tag
will prevent the character from being displayed on screen. However, in browsers that need the separator
character, it will appear since those browsers generally do not support CSS. That makes it possible
to meet the accessibility need without impacting design, and the accessibility check will accept this
technique.
A technique I personally like is to have [ ] characters around the link, and you could use CSS to not display the [ or ] characters. But if a browser without CSS sees the page, they will be shown. Example: [Link 1] [Link 2] [Link 3]"
This is what I've used that works:
<li><span style="visibility:hidden">[</span><a name="top"></a><a href="#maincontent" title="go directly to main content">Skip to Main Content</a><span style="visibility:hidden">]</span></li>
Cheers.
es
It's hard to get away from a strong feeling that these text readers and such need should be dealing with these kinds of things. For now, I guess that I'll continue to acquiesce.
The ideal separator from a "screen reader" point of view seems to be a period or comma. Both already serve as natural separators in written language, and would be less annoying for the user. From a visual point of view, it is probably best to ensure that there is reasonable _space_ between the links, accompanied by something like a vertical bar or hyphen type character.
Lists also offer additional possibilities for "separation" without having to resort to specific characters.
Avoid "directional" symbols (such as >) as they symbolize progress and/or navigational levels.
Place a separator character, such as a pipe, in a <span style="visibility:hidden"> tag. The <span> tag
will prevent the character from being displayed on screen. However, in browsers that need the separator
character, it will appear since those browsers generally do not support CSS. That makes it possible
to meet the accessibility need without impacting design, and the accessibility check will accept this
technique.
That may be dangerous advice, as it assumes accessibility only between CSS and non-CSS environment, completely discounting the affects it would have on screen readers etc.
Given that most of my clients care not the slightest anyway, and certainly don't want to bankroll any of the learning curve, I hope that it's all worthwhile down the road.