Skip to content

Can't get it working #49

Answered by patricknelson
babakfp asked this question in Q&A
Dec 24, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

First issue I found was that you're not referencing wc.js properly, so nothing really runs at all in wc:dev mode, but that's easy to fix.

Everything is just fine, it appears that you're styling is breaking encapsulation a bit, at least in a way that is not compatible w/ custom elements, not just svelte-retag since you had some direct child selectors (i.e. >) that were breaking styling, that's it. I submitted a quick hack proof of concept that fixes it using a known working layout (turned out to not be necessary). See PR babakfp/scrollephant#1 and the screenshots attached at bottom of this comment:

Essentially:

  1. When converting to custom elements, your generated HTML will always at minimum…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@patricknelson
Comment options

@babakfp
Comment options

@patricknelson
Comment options

Answer selected by patricknelson
@babakfp
Comment options

@patricknelson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants