From 4f53b85ee2bf293af6ff3e9f67f83f02700cccbe Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 7 May 2015 12:03:20 +1000 Subject: [PATCH] add aria-label to composer buttons --- app/assets/javascripts/discourse/lib/Markdown.Editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/Markdown.Editor.js b/app/assets/javascripts/discourse/lib/Markdown.Editor.js index 3a45faaae76..8b680db6aaa 100644 --- a/app/assets/javascripts/discourse/lib/Markdown.Editor.js +++ b/app/assets/javascripts/discourse/lib/Markdown.Editor.js @@ -1403,6 +1403,10 @@ xPosition += 25; button.id = id + postfix; button.title = title; + // we really should just use jquery here + if (button.setAttribute) { + button.setAttribute('aria-label', title); + } if (textOp) button.textOp = textOp; setupButton(button, true);