Re: [WICG/webcomponents] The is="" attribute is confusing? Maybe we should encourage only ES6 class-based extension. (#509)

@dannymcgee most of the things you can already do without using `is`, just wrap native elements like `input` or `select` by a custom element, for example:

```HTML
<styled-input>
  <input type="text" slot="input">
</styled-input>
```

For a more complex structure, however, it becomes somewhat cumbersome since you can only apply styles to the first level of slotted content:

```HTML
<styled-label>
  <label slot="label">
    <styled-input>
      <input type="text" slot="input">
    </styled-input>
  </label>
</styled-label>
```

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

Received on Tuesday, 15 December 2020 19:57:54 UTC