Skip to content

Commit

Permalink
Remove screenreadertext class span (current)
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed May 28, 2019
1 parent 2f95053 commit 4e5a69f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/current-menu-item.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function ($) {
$(function() {
$( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' ).append( "<span class='screen-reader-text'>(current)</span>" );
$( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' );
});
}(jQuery));
4 changes: 4 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ The plug-in is intended to help with deficiencies commonly found in themes and t
[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
* Conflict with NextGen gallery to explore

= 1.6.10 =

* Based on support for screen-reader-text class and current support for aria-current, shifting to aria only.

= 1.6.9 =

* Different JS for aria-current; previous version could only work on a single element, not a collection.
Expand Down

0 comments on commit 4e5a69f

Please sign in to comment.