Skip to content

Commit 2ce6bf7

Browse files
committed
remove checkbox attributes: role, aria-checked, tabindex, aria-label, role
1 parent 0a306ae commit 2ce6bf7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

a11y-add-on-for-facetwp.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,6 @@ function remove_underscores( name ) {
187187
});
188188

189189
$(document).on('facetwp-loaded', function() {
190-
$('.facetwp-checkbox, .facetwp-radio').each(function() {
191-
$(this).attr('role', 'checkbox');
192-
$(this).attr('aria-checked', $(this).hasClass('checked') ? 'true' : 'false');
193-
$(this).attr('tabindex', 0);
194-
});
195-
196-
$('.facetwp-type-checkboxes').each(function() {
197-
$(this).attr('aria-label', remove_underscores($(this).data('name')));
198-
$(this).attr('role', 'group' );
199-
});
200190

201191
// pager
202192
$('.facetwp-pager').attr('role', 'navigation');

0 commit comments

Comments
 (0)