Declarative shadow dom #2196
-
https://web.dev/articles/declarative-shadow-dom This reached baseline in August. I'm wondering if there is any implications from this that can possible be used with ViewComponents. I.e. an easier way for style scoping. Potentially some sort of helper or renderer that could potentially take a heredoc comment of styles and inject it into the static erb. I.e. maybe some way to wrap a component in the template and inject the styles for convenience. My 45 secs of code here:
results: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@keegankb93 I love your thinking here. For now, ViewComponent continues to have no control on what is rendered for a component as would be required for this feature, so I'd expect this to be something built at the application level. If you find a pattern that makes sense across many use-cases in practice, I'd be interested in seeing it for consideration. |
Beta Was this translation helpful? Give feedback.
-
@keegankb93 I'm going to close this out, as we've decided to not provide CSS/JS tooling or guidance in the framework due to how much those disciplines churn. |
Beta Was this translation helpful? Give feedback.
@keegankb93 I'm going to close this out, as we've decided to not provide CSS/JS tooling or guidance in the framework due to how much those disciplines churn.