chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
33 stars 2 forks source link

hide the toggleBaseline button when there are no changes #93

Closed weeksling closed 11 months ago

weeksling commented 1 year ago
📦 Published PR as canary version: 0.0.93--canary.93.565c844.0
:sparkles: Test out this PR locally via: ```bash npm install @chromaui/addon-visual-tests@0.0.93--canary.93.565c844.0 # or yarn add @chromaui/addon-visual-tests@0.0.93--canary.93.565c844.0 ```
linear[bot] commented 1 year ago
AP-3641 Don't show the `Switch snapshot` button if there are no changes

This is what I'm seeing: [image.png](https://uploads.linear.app/cfa7d1b1-ff77-4dbe-ae92-8cf23f92a7a9/19876f8b-fa47-41c2-a42b-3df71485e4b2/a80a5d33-c123-4876-a5d0-14e789ef16ca) This is what I expect: [Changes accepted - Visual testing in Storybook (Figma)](https://www.figma.com/file/GFEbCgCVDtbZhngULbw2gP/Visual-testing-in-Storybook?type=design&node-id=1532%3A389119&mode=design&t=jy8ScpNH3UFXl44D-1)

weeksling commented 11 months ago

Note: I have updated this pr pretty significantly, but because it is closely related to the New Story UI I merged it into https://github.com/chromaui/addon-visual-tests/pull/101 to make this faster to review and merge. Closing this for now.