←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 2 comments | | HN request time: 0.491s | source
1. Flow ◴[] No.45780064[source]
I started a SvelteKit project last year.

The compiler and preprocessors are very picky about accessibility issues like these.

It was annoying in the beginning, but I tried to follow the rules it set out. It feels very professional, and I’m thankful for the guidance.

What’s annoying now is when my coworkers thinks I’m making things unnecessarily complicated by trying to follow these rules and guidelines. A <div> with an onclick is so easy compared to a <button> with extra styling and sometimes calling preventDefault().

replies(1): >>45781771 #
2. Anamon ◴[] No.45781771[source]
I have that experience when working with eslint-angular. Quite a few things I realised I hadn't been doing properly before.