File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ $(function(){
3838 return ;
3939 }
4040
41- this . $navigation . find ( 'a[data-navigation=' + this . filter + ']' ) . parent ( ) . removeClass ( 'active' ) ;
41+ this . $navigation . find ( 'a[data-navigation=' + this . filter + ']' ) . parent ( ) . removeClass ( 'active' ) . removeAttr ( 'aria-current' ) ;
4242 OCA . Activity . InfinitScrolling . firstKnownId = 0 ;
4343 OCA . Activity . InfinitScrolling . lastGivenId = 0 ;
4444
@@ -51,7 +51,7 @@ $(function(){
5151 $ ( '#loading_activities' ) . removeClass ( 'hidden' ) ;
5252 OCA . Activity . InfinitScrolling . ignoreScroll = 0 ;
5353
54- this . $navigation . find ( 'a[data-navigation=' + filter + ']' ) . parent ( ) . addClass ( 'active' ) ;
54+ this . $navigation . find ( 'a[data-navigation=' + filter + ']' ) . parent ( ) . addClass ( 'active' ) . attr ( 'aria-current' , 'page' ) ;
5555
5656 OCA . Activity . InfinitScrolling . prefill ( ) ;
5757 }
Original file line number Diff line number Diff line change 2222 *
2323 */
2424?>
25- <div id="app-navigation">
25+ <div id="app-navigation" role="navigation" >
2626 <ul>
2727 <?php foreach ($ _ ['navigations ' ] as $ navigation ) { ?>
28- <li<?php if ($ _ ['activeNavigation ' ] === $ navigation ['id ' ]): ?> class="active"<?php endif ; ?> >
28+ <li<?php if ($ _ ['activeNavigation ' ] === $ navigation ['id ' ]): ?> class="active" aria-current="page" <?php endif ; ?> >
2929 <a data-navigation="<?php p ($ navigation ['id ' ]) ?> "
3030 href="<?php p ($ navigation ['url ' ]) ?> ">
3131 <?php if (!empty ($ navigation ['icon ' ])) { ?>
You can’t perform that action at this time.
0 commit comments