postcss / postcss-browser-reporter

Plugin to display warning messages right in your browser
MIT License
75 stars 13 forks source link

Only show message if warnings exist. #11

Closed snide closed 9 years ago

snide commented 9 years ago

The message block currently appears even if no warnings are present. Assume we only want to show messages when there are actual errors.

snide commented 9 years ago

Also went ahead and edited the background property that was appearing malformed in Chrome.

image

MoOx commented 9 years ago

Weird that nobody get those issues before.

snide commented 9 years ago

Sorry for the quick PR, still learning a bit about postcss, it's awesome! I submitted a fix for the tests, and removed the linear gradient and just made it a straight background color, which is a simpler render and less prone to browser differences. Here's a screen of updated look.

image

gazay commented 9 years ago

Thank you for PR, I like #13 more as it doesn't change styles and return right in beginning if there no messages