←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 2 comments | | HN request time: 0.433s | source
1. Brendinooo ◴[] No.45775435[source]
Related, because I don't always get to talk about buttons:

In my day job's shared library, we made a Clickable component that basically exists to abstract away the decision to use a button or an anchor tag, and resets the styles so both elements act the same way (both by default and when we apply styles to each).

We'd have a lot of confusion on the design side about button-as-design vs button-as-function and now we don't have to deal with that at all anymore.

And since the styling's been reset in a predictable way, it takes away one of the bigger reasons why people go to divs in the first place.

replies(1): >>45775657 #
2. Sharlin ◴[] No.45775657[source]
How does style reset make the elements work the same way? Links have vastly more features built into browsers than buttons