DEV Community

Discussion on: Show me some bad web accessibility on major sites.

 
bekahble profile image
Bekah Rice

Another note, if the role attribute on a custom button isn't set to button it never appears in the accessibility tree. In general it's just a bad practice. I've never understood why someone would use a non-clickable element and try and force it to work as one anyway. Seems like way more work.