aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-05-27 16:33:19 (EDT)
committerMark Macdonald2013-05-29 11:18:16 (EDT)
commit4f8dcd6f1ced054f87bf4ca6387f441b5a48f1bf (patch)
treea8fe2b7b30904d5bf8e9aa8771e7f3bc1afb37cd
parentebc953dcf3acf70369327bcf103a7552c9dfb347 (diff)
downloadorg.eclipse.orion.client-4f8dcd6f1ced054f87bf4ca6387f441b5a48f1bf.zip
org.eclipse.orion.client-4f8dcd6f1ced054f87bf4ca6387f441b5a48f1bf.tar.gz
org.eclipse.orion.client-4f8dcd6f1ced054f87bf4ca6387f441b5a48f1bf.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$