Skip to content

Commit

Permalink
MDL-30830 dock: Added the title using accesshide for screen readers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Feb 17, 2012
1 parent 0dde394 commit de67c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/dock.js
Expand Up @@ -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'));
Expand Down

0 comments on commit de67c57

Please sign in to comment.