There are various small issues with the new link/code boundaries logic that needs to be corrected.
I love the feature and I think it greatly helps understanding where you're typing.
However, quickly testing with Safari 10 + VoiceOver, the link boundary gets read out as:
link zero width no break space
or something like that, sorry not a native English speaker here 馃檪
One option could be the one mentioned by @spocke on Slack:
might need to wrap it in a span with aria tags then
When navigating by characters or words, screen readers already announce link
when entering a link, though they don't announce anything when exiting the link, so maybe just hiding the zwnbsp
character from assistive technologies could work well.
@afercia Did some investigations into this one.
In order to keep the caret from normalizing into the anchor when being inside/outside we need to insert something that keeps the browser from doing it's default thing. We use zero width non breaking spaces for that it's basically an invisible character that is no longer used for anything except for BOM signatures in documents. These characters seems to be ignored by Jaws but spoken by VoiceOver and NVDA.
I tried to work around this in various ways:
So to sum this up it's complicated. :)
We fixed the items listed in this ticket. So I'm closing this one.
Most helpful comment
We fixed the items listed in this ticket. So I'm closing this one.