Permalink
Browse files

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

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jan 20, 2012
1 parent ad52027 commit 644262726c4e2914ecb01b5086c8ab6d6cb98ea5
Showing with 1 addition and 0 deletions.
  1. +1 −0 blocks/dock.js
View
@@ -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'));

0 comments on commit 6442627

Please sign in to comment.