-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymer components #14
Comments
@cborodescu I think #24 would be a big step in this direction. |
We can choose to build components on Polymer or build vanilla wc components (example) |
@equinusocio I believe it would be better to go with the web components as you already suggested in the other issue. That would make everything framework agnostic and can be integrated quickly with other front-end frameworks. |
@stefanneculai the problems are the external dependencies. The shadow dom provide css encapsulation but it does not allow you to use global css, so everything must be inside the component itself. |
I think there are 3 ways we could go:
I believe the best approach, at least for now, would be 2. @equinusocio how to you see it? |
PS: Losing bootstrap is not so bad 😅. With Shadow DOM you lose global style, not shared style. You can always define a common style, like A sample structure: |
@equinusocio at 2, I was saying about using Custom Elements without Shadow DOM. This way, we can have still one main global style, but keep code more modular. Of course, we would lose the isolation. Which way would you go? |
Going for 2, the only gain are a shiny well-named custom elements and polyfills. But is the only way that can be framework-agnostic. What about to build more version? Polymer 3, React and web components . Using the same CSS/HTML and rewriting the js? (just a thought) PS: @stefanneculai Please move discussion to #24 :) |
No description provided.
The text was updated successfully, but these errors were encountered: