DEV Community

Discussion on: Beyond the polyfills: how Web Components affect us today?

Collapse
 
webpadawan profile image
Serhii Kulykov • Edited

My gut feeling is that overusing ::part could be a smell of incorrect API design of the component (so that it could be split further into a number smaller components, etc).

At Vaadin, we have the workaround for writing CSS using [part] attribute, and then injecting those <style> tags into shadow trees. That's convenient in most of cases, but still not ideal, and developers need some time to learn that model.