4 ms·
I think 90% of the misuse arises from devs not realizing that they can use a <button> or <a> (or whatever else is correct in that context) and still style it ho
by paxys 6y ago
I think 90% of the misuse arises from devs not realizing that they can use a <button> or <a> (or whatever else is correct in that context) and still style it however they want.
- thitcanh 6y agoThe other 10% is from people giving up unstyling buttons. If I remember correctly they need more than 10 lines of CSS to undo all kinds of weird specific CSS that <button> has. Maybe nowadays it can be done with `all: initial` Not an excuse, but it can be frustrating.
- hnarn 6y ago> The other 10% is from people giving up unstyling buttons. Maybe that's an indication that unstyling a button is a really, really bad idea?
- thitcanh 6y agoWhy would it be a bad idea? Is styling your site a bad idea?
- hnarn 6y agoI just think that a form button is something that looks a specific way for a reason, and that styling shouldn't break fundamental expectations. But that's obviously a subjective opinion, people can style their pages however they like, I just don't personally like design that lies to me.