Skip to content

Commit

Permalink
Merge pull request #1397 from plonejp/master
Browse files Browse the repository at this point in the history
fix `aria-hidden` attribute control problem on toolbar
  • Loading branch information
vangheem committed Feb 18, 2016
2 parents 6f891bc + 64c404a commit 428e352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Fixes:

- Mock MailHost on testing.py so that tests relying on mails can use it.
[gforcada]

- Fix `aria-hidden` attribute control problem on toolbar
https://github.com/plone/Products.CMFPlone/issues/866
[terapyon]


5.0.2 (2016-01-08)
Expand Down
2 changes: 2 additions & 0 deletions Products/CMFPlone/static/patterns/toolbar/src/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ define([
}
else {
// close existing opened contentmenus
$('.' + active_class + '> ul', that.$container).attr("aria-hidden", "true");
$('.' + active_class, that.$container).removeClass(active_class);
// we need to close the more subset as well not just the content-menus
// when we click on the personal bar
Expand Down Expand Up @@ -177,6 +178,7 @@ define([
$content.css({
'margin-top': Math.min(itemLocation, height - insideHeight)
});
$content.attr("aria-hidden", "false");
},
isDesktop: function(){
return $(window).width() > '768';
Expand Down

0 comments on commit 428e352

Please sign in to comment.