Developers like “Don't Repeat Yourself” and “Keep It Simple”, then go to reimplement the <button> element… *sigh* :-)

Here is how you COULD turn a div into an accessible button, bottom line: it's a lot of work and code involved, we already have <button> element with all the functionalities built it, if you don't have to, don't?

Sign in to participate in the conversation
Eric’s micro thoughts

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!