Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Components (2018) Managing State and Data Flow Building the Statistics Component

John Moran
John Moran
7,950 Points

remove lines after clicking on buttons

on this react course after I click a button I get different colored lines appearing for a second. I have tried to add various css styles to remove them like: :focus, :active { outline: none !important; border: none !important; box-shadow:none !important; }

to no avail.

1 Answer

James Crosslin
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
James Crosslin
Full Stack JavaScript Techdegree Graduate 16,882 Points

I know this is an old question, but for anyone else who is confused by this: this is React Developer Tools. In your components tab in Chrome Dev Tools, there is a settings icon (a grey machine gear). Click that and choose the general menu tab. There, you will see an option that says "Highlight updates when components render." That is the flash of color that you are seeing. If you don't want to see the borders, you can disable them by unchecking the box.