Placeholders.js icon indicating copy to clipboard operation
Placeholders.js copied to clipboard

Color gets overridden by other classes (need "!important")

Open tommck opened this issue 10 years ago • 2 comments

The "color: #ccc" rule that's added as part of the added style block is overridden if the input box has other classes on it that dictate color.

So, an "!important" needs to be added to the end of the style in order for it to stick in these situations.

tommck avatar Jun 30 '14 15:06 tommck

:+1:

Dhaulagiri avatar Jul 28 '14 19:07 Dhaulagiri

It's not that nice to fix someone's styling on library-side. When writing custom stylesheets you have to make sure that you don't break any functionality and styling from external libraries (unless you really want to). Else you'll end up like this guy.

gekkedev avatar Dec 14 '18 16:12 gekkedev