You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've followed the instructions about wrapping a portable text component to add my custom serializers. However, one thing I also do is add custom formatting here.
However, this does not work since Vue does not seem to be able to apply any of the :deep() selectors to a purely functional component, which <SanityContent> is.
Describe the solution you'd like to see
Either update the docs to suggest wrapping it in a div, or make <SanityContent> a rendered component so :deep() can be used.
Describe alternatives you've considered
My current workaround is wrapping <SanityContent> in a div.
I've followed the instructions about wrapping a portable text component to add my custom serializers. However, one thing I also do is add custom formatting here.
For example in the
<style>
tag:However, this does not work since Vue does not seem to be able to apply any of the
:deep()
selectors to a purely functional component, which<SanityContent>
is.Describe the solution you'd like to see
Either update the docs to suggest wrapping it in a
div
, or make<SanityContent>
a rendered component so:deep()
can be used.Describe alternatives you've considered
My current workaround is wrapping
<SanityContent>
in adiv
.This correctly applies all my styles.
The text was updated successfully, but these errors were encountered: