include aria-label in top toolbar

qt doesn't seem to support it at the moment though

https://anki.tenderapp.com/discussions/beta-testing/1130-latest-anki-beta-not-accessible-with-voiceover-on-mac-os
This commit is contained in:
Damien Elmes 2018-05-14 11:24:04 +10:00
parent bfa8fe9022
commit cfaedfef4a

View File

@ -42,8 +42,8 @@ class Toolbar:
buf = ""
for ln, name, title in links:
buf += '''
<a class=hitem title="%s" href=# onclick="pycmd('%s')">%s</a>''' % (
title, ln, name)
<a class=hitem aria-label="%s" title="%s" href=# onclick="pycmd('%s')">%s</a>''' % (
name, title, ln, name)
return buf
# Link handling