Declarative shadow dom #2196
Unanswered
keegankb93
asked this question in
General
Replies: 1 comment 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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
All reactions