RamseyInHouse / scut

Sass utilities for the frontend laborer.
https://ramseyinhouse.github.io/scut/
MIT License
769 stars 61 forks source link

Remove the input element selectors from the button reset #198

Closed jmmcduffie closed 8 years ago

jmmcduffie commented 8 years ago

The button reset, while very helpful, has an unfortunate amount of specificity when using it with an input element. Because the element + attribute selector is more specific than just a class selector, simply adding a class of Button to an input is not enough to override the reset.

However, since attribute selectors and class selectors have the same specificity and only button and input elements have the types button, submit, and reset, reducing the reset to just the attribute selectors should fix this issue.

jonscottclark commented 8 years ago

Sounds like it comes from experience, go ahead and merge :)

davidtheclark commented 8 years ago

Smart change.

xzyfer commented 8 years ago

:+1: