Skip to content

Commit

Permalink
attach: improve JAWS readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sipayRT committed Jul 7, 2015
1 parent f313626 commit f95f1aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion common.blocks/attach/__no-file/attach__no-file.bemhtml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
block('attach').elem('no-file').tag()('span');
block('attach').elem('no-file')(
tag()('span'),

attrs()(function() {
return { 'aria-hidden' : true };
})
);
4 changes: 3 additions & 1 deletion common.blocks/attach/__no-file/attach__no-file.bh.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = function(bh) {
bh.match('attach__no-file', function(ctx) {
ctx.tag('span');
ctx
.tag('span')
.attr('aria-hidden', true);
});
};

0 comments on commit f95f1aa

Please sign in to comment.