I’ve been using Theme Components to build this shortcode. That’s an awesome feature!
However, the CSS required by the Component is now hardcoded in the partial file, is there a more elegant way to inject custom CSS from a child theme?
(Note that I would like this Component to be as theme-agnostic as possible)
A second drawback of the actual implementation is that the CSS is injected each time the Shortcode is used. (if the Shortcode is called 5 times on the same page, the CSS is injected 5 times too!).
Any hint to improve that?