DEV Community

ZuzannaJoannaKilichowska
ZuzannaJoannaKilichowska

Posted on

3 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more