DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
ZuzannaJoannaKilichowska
ZuzannaJoannaKilichowska

Posted on

CSS Modules - rule with two class

I have two components and I use CSS modules. How can I write CSS that use both of the components and classes? One component has class description the other one "title". How, where can I put that code? (code below)

.description[open] > .title {

  font-weight: 700;

}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›