I am using a multi-paragraph RichText field on my document model. The generated source shows it is correctly rendering the
tags, however the styles for p tags in the are not being applied to the generated paragraphs.
<div className="xyz">
<RichText render={slice.primary.description} />
</div>
<style jsx>{`
.xyz p {
margin-bottom: 40px;
line-height: 40px;
}
`}</style>
They should have a line height and margin according to the CSS rule, but it is not being applied in the display. Is it required to use an HTML Serializer in this instance to manually apply some class name? That seems like overkill, so I'm hoping it's something simple I'm doing wrong. Any help is much appreciated.
