<button /> browser default buttonface created no diff in build
See original GitHub issueHi 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:
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:
White background-color: transparent:
The snapshots are correct and a diff is clear visible. What can we do?
Did you need more?
cheers
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
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!