6 ms·
Why is every clickable element implemented as a div? You lose out on a lot of native things, like changing mouse cursor on hover, keyboard navigation for users
by zdragnar 3y ago
Why is every clickable element implemented as a div? You lose out on a lot of native things, like changing mouse cursor on hover, keyboard navigation for users with special accessibility needs, etc.
- GMoromisato 3y agoGood point! Yes, for lots of things I need to use <a> instead. Again, though, I want that to be handled by the platform, as much as possible, so that devs don’t have to.
- robertoandred 3y ago<a> or <button>, depending on the function
- GMoromisato 3y agoAgreed. And obviously we'd implement all the ARIA stuff.