▲ | jfagnani 7 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I think web components already compete extremely well for application development, and you see very complex apps built with Lit out there: Photoshop, Firefox, Chrome OS, Chrome DevTools. Apps are well served because they have more control about how components are used: they can import the same shared styles into every component, take are to not double-register elements, etc. But I think there are some important standards still missing that would open things up even more in the design system and standalone components side: - Scoped custom element registries. This moves away from a single global namespace of tag names. Seems like it's about to ship in Safari. Chrome next. - Open styleable shadow roots. Would allow page styles to flow into shadow roots. This would make building components for use with existing stylesheets easier. - CSS Modules. Import CSS into JS. Shipping in Chrome. About to land in Firefox. - ARIA reference target: make idref-based reference work across shadow roots | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | brazukadev 7 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> - Open styleable shadow roots What people using web components want is to get rid of shadowDOM and not feel like they are deviating from the correct path. shadowDOM sucks, stop trying to convince the world that we are using it wrong. shadowDOM is the whole reason web components did not become mainstream (yet?). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | notnullorvoid 7 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Please do not refer to CSS type imports in JS as CSS Modules. CSS Modules has an established meaning for over a decade, one that is still relevant today. The CSS type imports are very different, and arguably worse. Call them CSSStyleSheet imports of you need a name suggestion. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | nisbet 7 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
About CSS Modules – Are you referring to this? https://caniuse.com/mdn-javascript_statements_import_import_... Seems like this feature was removed from Chrome. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | Muromec 7 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
>- ARIA reference target: make idref-based reference work across shadow roots How is this even supposed to work if each shadow dom has it's own scope of ids? `#id#subid` or something? What if I want to ref to the outside? The whole thing is not made for web development. |