question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<button /> browser default buttonface created no diff in build

See original GitHub issue

Hi there, i have a problem with a browser default behavior. We had a tailwind css reset which contains button { background-color: transparent }. Which means our list item component should be white (transparent).

But due reasons we decided to remove this reset.

And now the bug is appearing!

The button gets the browser default background “backface” and the item gets grey:

image

The bug is, that the chromatic build didnt get a diff and stop the build. The same in the other direction, if i accept the buttonface grey, and add the transparent color back again. Chromatic didnt stop the build.

Grey buttonface browser default: image

White background-color: transparent: image

The snapshots are correct and a diff is clear visible. What can we do?

Did you need more?

cheers

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
codykaupcommented, Oct 19, 2022

Bummer! I was hoping the fix was going to be one of those settings but it seems like this may require more investigation. Would you mind using our in-app chat to keep this conversation going? It’s our preferred method of troubleshooting and it’s better for customer privacy. This repo is used for issues specific to the CLI but this is going to be deeper in Chromatic.

Thanks!

1reaction
codykaupcommented, Oct 17, 2022

Hey @dutscher! 👋

It appears those snapshots are just slightly under the default Chromatic threshold of .063. We have a public Storybook to test this out and I was able to trigger the diff at .060. If you change the threshold for that story, Chromatic should pick it up!

I hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do default buttons change color when borders are ...
Hey, which browser and OS are u using? Because there is no difference in the background-color for me. Both having a white background-color....
Read more >
Button form controls show differently on different zoom level
The issue is that when the page is zoomed, the native Aqua form controls don't scale well, so we fallback to drawing with...
Read more >
Overriding Default Button Styles | CSS-Tricks
Just by setting the font-size, we lose all those defaults, but it's got a new default look, one with a border and square...
Read more >
<color> - CSS: Cascading Style Sheets - MDN Web Docs
This lets you use the color value on properties that do not receive it by default. If currentcolor is used as the value...
Read more >
React Button Examples
React Button demo with theme, disabled, link button, toggle, and tabs. · Default html button · Button onClick · Button text · Default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found