Skip to content

Commit

Permalink
Screen reader text for 'Remove' links on Additional Faculty interface.
Browse files Browse the repository at this point in the history
See #3255.
  • Loading branch information
boonebgorges committed Oct 18, 2023
1 parent 595f260 commit 14f0272
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions wp-content/plugins/wds-citytech/assets/js/additional-faculty.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ window.wp = window.wp || {};
* Generate a user-related list item.
*/
function create_list_item( nicename, label ) {
var li = '';

li = '<li id="addl-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '"><span class="addl-faculty-remove"><a href="#"><span class="fa fa-minus-circle"></span></a></span> ' + label + '<input type="hidden" name="additional-faculty-js[]" value="' + nicename + '"></li>';
li = '<li id="addl-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="additional-faculty-js[]" value="' + nicename + '"><span class="addl-faculty-remove"> <a href="#"><span class="fa fa-minus-circle"></span></a></span></li>';
var li = '<li id="addl-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="additional-faculty-js[]" value="' + nicename + '"><span class="addl-faculty-remove"> <a href="#"><span class="sr-only">Remove</span><span class="fa fa-minus-circle"></span></a></span></li>';
$( '#additional-faculty-list' ).append( li );
}
}
Expand Down Expand Up @@ -94,10 +91,7 @@ window.wp = window.wp || {};
* Generate a user-related list item.
*/
function create_list_item( nicename, label ) {
var li = '';

li = '<li id="primary-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '"><span class="addl-faculty-remove"><a href="#"><span class="fa fa-minus-circle"></span></a></span> ' + label + '<input type="hidden" name="primary-faculty-js[]" value="' + nicename + '"></li>';
li = '<li id="primary-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="primary-faculty-js[]" value="' + nicename + '"><span class="addl-faculty-remove"> <a href="#"><span class="fa fa-minus-circle"></span></a></span></li>';
var li = '<li id="primary-faculty-' + nicename + '" class="addl-faculty-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="primary-faculty-js[]" value="' + nicename + '"><span class="addl-faculty-remove"> <a href="#"><span class="sr-only">Remove</span><span class="fa fa-minus-circle"></span></a></span></li>';
$( '#primary-faculty-list' ).append( li );
}
}
Expand Down

0 comments on commit 14f0272

Please sign in to comment.