Giter Club home page Giter Club logo

Comments (8)

thomasbjespersen avatar thomasbjespersen commented on July 30, 2024 1

Please hold off on this one until #41 is completed and merged.

from skeleton.

 avatar commented on July 30, 2024 1

I have seen this same behavior for things like the lightswitch and accordion, but Not sure how many components overlap under the hood

from skeleton.

 avatar commented on July 30, 2024 1

Roger, I will note my project is Current with SvelteKit.

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

Good to know it's happening with the accordion too. VERY strange bug, but two things of note:

  • The next update contains a total rebuild of the accordion component. It now utilizes detail/summary tags. So it may no longer cause the issue since it's less JS heavy.
  • I'm not saying the LightSwitch is without issue. Frankly the code is bad (I know, I wrote it heh). But it may be worth checking if the issue persists in the new SvelteKit versions. Could have been a Svelte/SvelteKit bug. But either way a refactor and improvement to that component is overdue.

FYI I'll be implementing a PR for updating to the next.405+ version of SvelteKit today, so I'll try remember to check this as I test!

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

FYI I've confirmed the following:

  • I can replicate the head/style element updates for the live/production version of Skeleton (v0.30.7)
  • I cannot reproduce the issues in the most current dev branch, which means the accordion issues are resolved.

Given this, I'll turn my attention to the Menu and LightSwitch components.

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

I was under the impression the LightSwitch was at fault here, so I've opted to refactor and redesign this a bit. It now looks and operates a lot like the versions on these sites:

Screen Shot 2022-08-17 at 6 08 18 PM

Screen Shot 2022-08-17 at 6 08 25 PM

Unfortunately this has not solved the problem with the HTML head style blocks being duplicated, however this now only occurs when interacting with Menu components. I'll turn my attention to to the Menu components tomorrow.

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

Keeping this open to address the Menu updates mentioned in the comment above.

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

Finally came across this and identified it's the transition directive that's causing this to occur. We use transition on several components, including Menus, Alerts, etc.

sveltejs/svelte#4801

Gonna mark this CLOSED as I don't believe it's an issue we can fix on our end. I'd suggest we report it to Svelte if we can identify any negative impact from this.

from skeleton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.