nested scss, css
why does the nested scss not working but plain css does?
working
not working
4 Replies
the & is combining the
:hover
and __name
.text-container:hover__name
is not a valid selectorfor what you want to work, you can use this:
&:hover &__name
ohw, i forgot to press enter, but yes what ἔρως said
it's fine, it happens
https://sass-lang.com/playground/#eJwzNNQrSa0o0U3OzytJzMxLLVKo5lJQULPKyC8DstXi4/MSc1PBYgoKSYnJ2elF+aV5KUDlOflFVgpJOaWp1kC5Wq5aAG4HF3A= <-- you can check here that it produces the right css