segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.39k stars 832 forks source link

Interactive badge styles not applied with classnames@2.2.6 #1479

Closed mhssmnn closed 2 years ago

mhssmnn commented 2 years ago

Describe the bug isInteractive for Badge does not work when evergreen is used within a project that has classnames v2.2.6

Other areas may be affected too.

Fix is to bump the version range for classnames from ^2.2.6 to ^2.3.0 – which is the version that is resolved in the yarn.lock file, and therefore what is used in the examples (which is why you do not see the bug by default)

To Reproduce Steps to reproduce the behavior:

  1. Use a project with classnames at ^2.2.6
  2. Create a <Badge isInteractive /> component
  3. Hover

Reproduced here: https://codesandbox.io/s/delicate-thunder-0sqb3d

Expected behavior Opacity of Badge to drop to 0.8

Evergreen Version v6.9.10

Environment (please complete the following information):