How to use scope_css to target the widget container itself
Hello @marenhogan, I think this cannot be achieved using scope_css. If you like to keep you all of your CSS code under scope_css you could also create your own wrapper inside of your custom module:
<div class="my-module" id="my_wrapper_{{ name }}"></div>
{% require_css %}
<style>
{% scope_css %}
#my_wrapper_{{ name }} { color: red; }
#my_wrapper_{{ name }} p { color: white; }
{% end_scope_css %}
</style>
{% end_require_css %}
How to use scope_css to target the widget container itself
Hi, @marenhogan👋 Thanks for your question and for including your code examples. Knowing what works and what doesn't work is helpful for the community. My instinct is that your workaround is a good available option.
Let's invite some community members to the conversation — hey @alyssamwilie@albertsg@LMeert, how would you tackle something like what @marenhogan is describing?