add aria-label to composer buttons

This commit is contained in:
Sam 2015-05-07 12:03:20 +10:00
parent 0b3ad8a3fd
commit 4f53b85ee2
1 changed files with 4 additions and 0 deletions

View File

@ -1403,6 +1403,10 @@
xPosition += 25; xPosition += 25;
button.id = id + postfix; button.id = id + postfix;
button.title = title; button.title = title;
// we really should just use jquery here
if (button.setAttribute) {
button.setAttribute('aria-label', title);
}
if (textOp) if (textOp)
button.textOp = textOp; button.textOp = textOp;
setupButton(button, true); setupButton(button, true);