I'm able to apply styles to the .test wrapper, but cannot target anything within it. For example, adding a border to this class will add a border to the wrapper, but if I try to target a P tag, or anything else for that matter, the styles don't apply.
Hi there,
Followed your starter and am having difficulty targeting the styles within the HTML that derives from Sanity.
I'm using the same
sanityPortableText.js
file as you have in your starter:and am rendering the content as such, in
SanityPortableText.astro
:I'm able to apply styles to the
.test
wrapper, but cannot target anything within it. For example, adding a border to this class will add a border to the wrapper, but if I try to target a P tag, or anything else for that matter, the styles don't apply.What am I doing wrong here?
Here are my dependencies:
EDIT: This has been resolved, I just needed to add
is:global
to the