Re: [WICG/webcomponents] Web components should be able to easily adapt to the host page while maintaining enapsulation (Issue #986)

@caridy:

If authors have to include manual buttons just so that these buttons are styled like the rest of their page, that does not seem like the right abstraction, nor is it particularly maintainable (the buttons may include other attributes that authors must now recreate). Including custom elements via slots should be reserved for extreme customization, not basic usage. 

Similarly, parts are great, but not a good solution for just applying default, baseline styling. Imagine having to turn your `button, .button` selector into `button, .button, ::part(lib1-button), ::part(lib2-button), ...`. And when using a CSS framework that's not even possible without editing framework code or duplicating it, neither of which are particularly maintainable.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/986#issuecomment-1452265679
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/986/1452265679@github.com>

Received on Thursday, 2 March 2023 17:43:55 UTC