Giter VIP home page Giter VIP logo

Comments (5)

anubra266 avatar anubra266 commented on June 2, 2024 1

@Jim-salies, this is not a panda behaviour, it's css.
https://jsfiddle.net/k38w5xh6/

you'll have to do something like :not()

from panda.

astahmer avatar astahmer commented on June 2, 2024 1

you can use a runtime condition for that
https://play.panda-css.com/ClAEBFvgXo/X3M0GMtGVl

from panda.

anubra266 avatar anubra266 commented on June 2, 2024

@Jim-salies the disabled styles take preference in your attached sample

CleanShot 2024-02-12 at 16 32 09@2x

from panda.

Jim-salies avatar Jim-salies commented on June 2, 2024

@anubra266 just by hovering I get the following :
image

from panda.

Jim-salies avatar Jim-salies commented on June 2, 2024

I just started to use panda so I may be wrong but to keep using styled instead of cva + an aditionnal component, I modified conditions like this :

{
    extend: {
      focus: '&:not(:disabled):is(:focus, [data-focus])',
      active: '&:not(:disabled):is(:active, [data-active])',
      focusWithin: '&:not(:disabled):focus-within',
      hover: '&:not(:disabled):is(:hover, [data-hover])',
    },
  }

Anyway, it's finally working thanks a lot!

from panda.

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.