I have created two modules that are very similar but have slight differences.
They are both a background image with a heading and text,
though the newest one has a smaller width and padding.
They have different names but are in the same location.
What i don’t understand is that when i use the module in the page-editor, it displays the styles of the first/old module, even though i use the new module. When i publish the page, it also displays the styles of the new one.
Here are the styles for the first/old one:
.img-bcg-textarea h2 {
font-family: ‘Montserrat’, sans-serif;
color: #9DB8FE;
font-size: 40px;
width: 500px;
word-break: break-word;
padding-left: 2rem;
padding-right: 4rem;
width: 100%;
}
And here are the styles for the new module:
.img-bcg-textarea h2 {
font-family: ‘Montserrat’, sans-serif;
color: #9DB8FE;
font-size: 40px;
word-break: break-word;
padding-left: 2rem;
padding-right: 1rem;
}
They are both in the module.css adjacent to the html-files for the connected module.