@sarajw yeah, but for me that argument doesn't count anymore for new websites. Removing default button styles used to be annoying, but today it's easy.
@hi_mayank@sarajw@matuzo I actually ran into a gotcha yesterday where "all: unset" had unset our global "box-sizing: inherit" reset. Ended up fixing that in our "unstyleButton" Sass mixin, so now it sets the box-sizing, cursor, and outline properties.
Wondering if we'll discover a fourth property that needs fixing on it.
@matuzo@hi_mayank@cvennevik@sarajw heh, I was recently dealing with this with dialog, too. Have to unset margin, padding, border, width, max-width, and any relevant insets depending on what you’re trying to do. Mayank more or less convinced me that resetting the individual properties was a better option that all 😅
I mean, I don't think restyling a button is a difficult thing to do, and I FAR FAR prefer it to adding back all the functional things that buttons do - but I guess this thread proves it isn't cut-and-dried "easy" - especially when apparently many devs don't think beyond "onClick"
@matuzo@sarajw People will cite their abandonment of IE6 as a reason that they don’t need to do progressive enhancement/graceful degredation and also cite IE6 as the reason to not use buttons because styling them in that browser used to be cumbersome a thousand years ago. (In internet years.)
Add comment