Skip to content

Commit

Permalink
Isis sidebar modifications for accessibility Fix #6758
Browse files Browse the repository at this point in the history
  • Loading branch information
vinespie committed May 24, 2015
1 parent a104968 commit 7560b55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions administrator/templates/isis/js/template.js
Expand Up @@ -131,6 +131,10 @@
$main.removeClass('span10').addClass('span12 expanded');
$toggleSidebarIcon.removeClass(openIcon).addClass(closedIcon);
$toggleButton.attr( 'data-original-title', Joomla.JText._('JTOGGLE_SHOW_SIDEBAR') );
$sidebar.attr('aria-hidden', true);
$sidebar.find('a').attr('tabindex', '-1');
$sidebar.find(':input').attr('tabindex', '-1');

if (!isComponent) {
$debug.css( 'width', contentWidthRelative + '%' );
}
Expand All @@ -151,6 +155,9 @@
$main.removeClass('span12 expanded').addClass('span10');
$toggleSidebarIcon.removeClass(closedIcon).addClass(openIcon);
$toggleButton.attr( 'data-original-title', Joomla.JText._('JTOGGLE_HIDE_SIDEBAR') );
$sidebar.removeAttr('aria-hidden');
$sidebar.find('a').removeAttr('tabindex');
$sidebar.find(':input').removeAttr('tabindex');

if (!isComponent && bodyWidth > 768 && mainHeight < sidebarHeight)
{
Expand Down

0 comments on commit 7560b55

Please sign in to comment.