I made an accordion component! This was a more involved than I expected. Check it out here.
What I Learned
The challenge was to use only CSS for setting the active states in the component. I learned to use the ~
symbol which is similar to the adjacent sibling combinator in CSS. The difference is that the second selector doesn't have to immediately follow the first selector.
How This Will Me
It showed me a useful way of extending my skill in combining selectors.
Top comments (0)