[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tool/ - Tools & Resources

Software reviews, plugins & productivity tools
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1792371602425.jpg (322.94 KB, 1024x1024, img_1792371594421_1t60r7z9.jpg)ImgOps Exif Google Yandex

80610 No.2360

The part about people still using div class="btn" onclick="send()" instead of actual button elements is so true. It's annoying because you end up having to manually handle the space and enter key events just to make it feel even remotely functional.

more here: https://www.matuzo.at/blog/testing-with-tab

80610 No.2363

>>2360
I spent all Tuesday cleaning up a legacy dashboard for a client last week because of this exact thing. I kept hitting 'enter' on my keyboard and nothing happened when I tried to submit the form. It turns out some previous dev just slapped classes on everything and forgot about accessibility entirely. I had to go through every single interactive element and manually add listeners for key presses. It was such a waste of time. Just use the tag already. I ended up rewriting most of the main navigation just to get the keyboard focus working right.

80610 No.2385

>>2363
>I had to go through every single interactive element and manually add listeners for key presses.

Manually adding listeners for every single key press sounds way too slow. If the code is that bad, just swap them out with a find-and-replace script or a simple regex.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]