There is a file named mycomponent.module.css
button {
width: 10vw;
min-width: 150px;
}
It seems like this CSS is being applied globally instead of just to the specific component where I imported it. Could it be that CSS modules only work on class names, not element names? So should I use .button
instead of just button
?