react-magma
react-magma copied to clipboard
ButtonGroup: `The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type"`
Describe the bug
ButtonGroup gives this error:

To Reproduce Steps to reproduce the behavior:
- Go to the ButtonGroup styleguide or docs site
- Open the console
Expected behavior No error or warning exists.
Additional context We'll need to rethink how we style ButtonGroup as ":first-of-type" is not equivalent to ":first-child"
This is super annoying and every one of our adopters gets this warning in their console. The downside is that it's not a straightforward fix 🙃
This is related to the version of Storybook we are on. Could potentially be addressed when we look at #1064.