Doug Gibson

Results 11 comments of Doug Gibson

I'm using a decorator to wrap my stories and I get around this by specifying a new "root" in preview.js: ``` const preview = { parameters: { html: { root:...

Ionic has a helper for this and the attributes are defined (opt-in) on a component-basis. https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/helpers.ts#L92 This is how I would do it, however, I'm still not sure how it...

> Hm, do you know of any restrictions regarding attributes on custom elements? I always thought that you can put all attributes on a custom element, as you are the...

@elaineoliver I just recently built a button component, which can be used as a control, and added `expanded` and `pressed` Boolean props to it. If you want robust reactivity, this...

Name should be fine because it only applies to specific elements, not nodes and custom elements. Putting a tabindex on an element could make the custom element focusable when the...

I dug into this a while back and it seemed it was dictated by a node module dependency, so it wasn't easily updated by us. But +1. This affects regular...

I just reinstalled Storybook 8 with a new type (web components + Vite) and mine is actually showing up as "My addon" now and I can't figure out how to...

Looks like this is related to the discussion here: https://github.com/whitespace-se/storybook-addon-html/pull/61

When upgrading to Storybook 8, I also switched to web-components + Vite and upgraded this addon to v6.x and this issue appears to be gone now. Update: I may have...

If I click the "remount component" button on the web components/vite version while viewing the HTML tab, about 1 in 10 times it will show the full rendered content instead...