Can we target child classes from parent ? #2130
Answered
by
segunadebayo
Oumeir-Rengony
asked this question in
Q&A
-
Below is an example. I need to target .name from the .cta. But its not working.
|
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
Feb 3, 2024
Replies: 1 comment
-
Please use the nested selector const Link = styled.a`
color: violet;
& .name {
font-size: 34px;
}
`; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please use the nested selector