[wp-trac] [WordPress Trac] #38659: Twenty Seventeen: Fixes in SVG markup
WordPress Trac
noreply at wordpress.org
Fri Nov 4 15:25:19 UTC 2016
#38659: Twenty Seventeen: Fixes in SVG markup
---------------------------+----------------------------
Reporter: sami.keijonen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
---------------------------+----------------------------
Comment (by afercia):
I'd consider to make the description optional. The function should allow
to use just the title so something like:
if title
remove aria hidden, set aria-labelledby to title, and print the title
if description
check if a title is set, if not set don't do anything (a description
should be printed out just if there's a title IMHO)
it a title is set, remove aria hidden set aria-labelledby to title and
desc, and print both
Quickly tested on Safari 10+VoiceOver, the title and desc are announced.
Unfortunately Safari 10 seems to don't recognise the role `img` and thus
VoiceOver always announces the svg as "group" (I've tried several things,
with no luck). Not sure there's much we can do here.
[[Image(https://cldup.com/YZp97tIozX.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38659#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list