From 4e5a69fbd8a6f11db7b0c31fa416f0ab110ea9ab Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Tue, 28 May 2019 11:32:52 -0500 Subject: [PATCH] Remove screenreadertext class span (current) --- src/js/current-menu-item.js | 2 +- src/readme.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/current-menu-item.js b/src/js/current-menu-item.js index 84e5df4..007fcaf 100644 --- a/src/js/current-menu-item.js +++ b/src/js/current-menu-item.js @@ -1,5 +1,5 @@ (function ($) { $(function() { - $( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' ).append( "(current)" ); + $( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' ); }); }(jQuery)); diff --git a/src/readme.txt b/src/readme.txt index d3c0266..c2d6088 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -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.