Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook - first-child is potentially unsafe. #3062

Closed
petertgiles opened this issue Jun 14, 2022 · 3 comments · Fixed by #3277
Closed

Storybook - first-child is potentially unsafe. #3062

petertgiles opened this issue Jun 14, 2022 · 3 comments · Fixed by #3277
Assignees
Labels
bug Something isn't working.

Comments

@petertgiles
Copy link
Contributor

Observed in storybook, in the common project:
image.png

@petertgiles petertgiles added the bug Something isn't working. label Jun 14, 2022
@mnigh
Copy link
Contributor

mnigh commented Jun 16, 2022

There are only two references to the pseudo class :first-child in the codebase and neither are part of the Button component but rather the Dialog component's css: https://github.com/GCTC-NTGC/gc-digital-talent/blob/main/frontend/common/src/components/Dialog/dialog.css#L48,L49

In any case, this seems to be an issue with the version of storybook (v6.4.16) we are currently using, as well as some other versions of storybook:

Solution

Upgrade to v6.5.8

@vd1992 vd1992 self-assigned this Jul 6, 2022
@mnigh
Copy link
Contributor

mnigh commented Jul 7, 2022

@vd1992 any guess on an estimate for this issue?

@vd1992
Copy link
Contributor

vd1992 commented Jul 7, 2022

I'll just stick a 1 on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants