summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-05-27 16:33:19 (EDT)
committer Mark Macdonald2013-05-29 11:18:16 (EDT)
commit9ab8a4aec822cefe892688930b7142707ab89fc4 (patch)
treea8fe2b7b30904d5bf8e9aa8771e7f3bc1afb37cd
parent2b884fc963c672634509d6b6a5c8b52fb83321f6 (diff)
downloadorg.eclipse.orion.client-9ab8a4aec822cefe892688930b7142707ab89fc4.zip
org.eclipse.orion.client-9ab8a4aec822cefe892688930b7142707ab89fc4.tar.gz
org.eclipse.orion.client-9ab8a4aec822cefe892688930b7142707ab89fc4.tar.bz2
Bug 409214 - Dropdown menu icon buttons need an aria-label
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/commands.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/commands.js b/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
index 89bd3ca..7205c62 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
@@ -221,6 +221,7 @@ define(['require', 'orion/util', 'orion/webui/littlelib', 'orion/webui/dropdown'
if (buttonIconClass) {
if(!showName) {
menuButton.textContent = ""; //$NON-NLS-0$
+ menuButton.setAttribute("aria-label", name); //$NON-NLS-0$
}
_addImageToElement({ spriteClass: "commandSprite", imageClass: buttonIconClass }, menuButton, name); //$NON-NLS-0$
menuButton.classList.add("orionButton"); // $NON-NLS-0$