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

jss-snapshot-serializer: jss nested selector or @media queries are not added to the json snapshot #10

Open
Danitoro opened this issue Oct 1, 2021 · 0 comments

Comments

@Danitoro
Copy link

Danitoro commented Oct 1, 2021

JSS constant:
const style = {
gridItemOne : {
"@media screen and (max-width: 577px)": {
padding: "8%"
},
paddingBottom: "1%",
paddingLeft: "1%",
paddingTop: "2%"
}
link : {
"& a" : {
color: "#007bff"
},
"& a:hover" : {
color: "#0056b3"
}
};

If I change the padding: "8%" or the color of "& a", is not detected by the snapshot test however, if I change paddingBottom: "1%" is detected by the test of the snapshot.

Do you know how to add selectors or @media queries to the snapshot?

Thank you,
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant