MDL-30830 dock: Added the title using accesshide for screen readers

This commit is contained in:
Sam Hemelryk
2012-02-17 14:52:32 +13:00
parent ad5202771a
commit 644262726c
+1
View File
@@ -539,6 +539,7 @@ M.core_dock.fixTitleOrientation = function(item, title, text) {
svg.appendChild(txt);
title.append(svg);
title.append(Y.Node.create('<span class="accesshide">'+text+'</span>'));
item.on('dockeditem:drawcomplete', function(txt, title){
txt.setAttribute('fill', Y.one(title).getStyle('color'));