Andy-set-studio / modern-css-reset

A bare-bones CSS reset for modern web development.

Home Page:https://hankchizljaw.com/wrote/a-modern-css-reset/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undo button styles for buttons with a class attribute

FrDH opened this issue · comments

Really nice usage of the [class] attribute :)
In my project, I added one for removing button styles from buttons with a class attribute.

button[class] {
    padding: 0;
    margin: 0;
    border: none;
    line-height: inherit;
    color: inherit;
    background: none;
}

I was thinking of adding button styles like this, but I decided to keep it out in favour of keeping the reset as tiny as possible.

If and when it’s <button> time, I tend to add this sorta CSS right on the component instead.

So, with that said, I’ll keep this stuff out for now 🙂