Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
No need to add the role="button" to button element.
#1719640: Use 'button' element instead of empty links
#1964880: Convert the Overlay close button from an anchor element to a button element.
Comment | File | Size | Author |
---|---|---|---|
remove_role_button.patch | 719 bytes | droplet | |
Comments
Comment #1
dawehnerJust adding a tag.
Comment #2
mimes CreditAttribution: mimes commentedI've tested the patch and checked it with WAVE (for structure/semantics) and Fangs, NVDA, ChromeVox, etc (screen-reading software). It doesn't seem to affect a site's accessibility that much; I agree that the role='button' is unnecessary.
Comment #3
mgiffordAgreed that it's redundant.
Thanks for doing the testing!
Comment #4
xjmremove_role_button.patch queued for re-testing.
Comment #5
webchickCommitted and pushed to 8.x. Thanks!
Comment #6
nod_