Giter Club home page Giter Club logo

Comments (7)

TorstenDittmann avatar TorstenDittmann commented on September 14, 2024

Would you mind creating a REPL where this behavior occurs?

Because in my current project I am doing something exactly the same way. Chrome inspector might give some information on what is going on with the css.

from svelte-spa-router.

ralyodio avatar ralyodio commented on September 14, 2024

I think its because I'm using postcss.

the rule is dropped i believe. What REPL should I use?

from svelte-spa-router.

ItalyPaleAle avatar ItalyPaleAle commented on September 14, 2024

I'm not familiar with PostCSS, but if the class does appear in the HTML tag (when using the inspector), then the use:active action is doing its job correctly.

It's possible that PostCSS is renaming the "active" class to something else, or removing it entirely. It doesn't appear to be an issue with this module however.

PS: Did you solve #38 ? Can I close that?

from svelte-spa-router.

TorstenDittmann avatar TorstenDittmann commented on September 14, 2024

You can use this repo at https://svelte.dev/repl/ with import Router from 'svelte-spa-router';

Yeah, it could be a problem caused by postcss.

from svelte-spa-router.

ralyodio avatar ralyodio commented on September 14, 2024

yeah. i think postcss is just too much god damn work. lol

And no when I refresh my pricing page I still go to /login or any page for that matter.

from svelte-spa-router.

ItalyPaleAle avatar ItalyPaleAle commented on September 14, 2024

With svelte, usually postcss isn’t strictly necessary because the framework includes the same functionality (CSS scoped to a component).

As per the other issue, can you please provide a REPL there?

from svelte-spa-router.

ralyodio avatar ralyodio commented on September 14, 2024

postcss lets me use future versions of css. its like babel for css. that's why I tried using it.

from svelte-spa-router.

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.