Permalink
Browse files

Let screen readers know links are disabled state

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@4183 2fea6a4d-a838-0410-917b-93a53c48e9d2
  • Loading branch information...
1 parent ed5fb00 commit de895bd84bf3fe87705d2979bb3c346032eb8416 @philwareham philwareham committed Oct 6, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 textpattern/include/txp_article.php
  2. +2 −2 textpattern/lib/txplib_html.php
@@ -1290,11 +1290,11 @@ function article_partial_article_nav($rs)
($rs['prev_id']
? prevnext_link(gTxt('prev'),'article','edit',
$rs['prev_id'],'', 'prev')
- : '<span class="navlink-disabled">'.gTxt('prev').'</span>').
+ : '<span class="navlink-disabled" aria-disabled="true">'.gTxt('prev').'</span>').
($rs['next_id']
? prevnext_link(gTxt('next'),'article','edit',
$rs['next_id'],'', 'next')
- : '<span class="navlink-disabled">'.gTxt('next').'</span>').n.
+ : '<span class="navlink-disabled" aria-disabled="true">'.gTxt('next').'</span>').n.
'</p>';
}
@@ -375,15 +375,15 @@ function nav_form($event, $page, $numPages, $sort, $dir, $crit, $search_method,
$nav[] = ($page > 1) ?
PrevNextLink($event, $page - 1, gTxt('prev'), 'prev', $sort, $dir, $crit, $search_method, $step).sp :
- tag(gTxt('prev'), 'span', ' class="navlink-disabled"').sp;
+ tag(gTxt('prev'), 'span', ' class="navlink-disabled" aria-disabled="true"').sp;
$nav[] = '<select name="page" onchange="submit(this.form);">';
$nav[] = n.join(n, $option_list);
$nav[] = n.'</select>';
$nav[] = ($page != $numPages) ?
sp.PrevNextLink($event, $page + 1, gTxt('next'), 'next', $sort, $dir, $crit, $search_method, $step) :
- sp.tag(gTxt('next'), 'span', ' class="navlink-disabled"');
+ sp.tag(gTxt('next'), 'span', ' class="navlink-disabled" aria-disabled="true"');
$out[] = '<form class="nav-form" method="get" action="index.php">'.
n.eInput($event).

0 comments on commit de895bd

Please sign in to comment.