Git Product home page Git Product logo

Comments (7)

ai avatar ai commented on June 27, 2024

Yeap, I think skipping will be useful. But what API we should use?

input:only-hover {}
/* postcss-focus: disable */
input:only-hover {}

What do you think?

from postcss-focus.

niksy avatar niksy commented on June 27, 2024

:only-hover sounds nice, didn’t think of that! But, following currently available pseudo selectors, maybe parsing something like :hover:not(:focus) could produce only :hover styles? Or is this something too complicated?

from postcss-focus.

ai avatar ai commented on June 27, 2024

@niksy :hover:not(:focus) is awesome idea!

Do you want to make a PR? (I will be able to fix it only in Wednesday)

from postcss-focus.

niksy avatar niksy commented on June 27, 2024

@ai looking at it more closely, :hover:not(:focus) maybe doesn’t represent something which will produce desired output—it just isn’t clear enough, it means that hover styles should be applied only when focus is not active. :only-hover probably gives more expecting end result.

I had similar idea for this plugin some time ago and was delighted to see you created something like that. My idea was to create new pseudo selector, :fover (as in focus+hover) which will do this, and could also remove outline as described in #2. Is going the route of new pseudo selector something you would consider?

from postcss-focus.

ai avatar ai commented on June 27, 2024

@niksy postcss-fover is a nice solution too. We can crosslink each other.

from postcss-focus.

niksy avatar niksy commented on June 27, 2024

@ai There is a new PostCSS plugin which does exactly this with :enter pseudo class https://github.com/jonathantneal/postcss-pseudo-class-enter

from postcss-focus.

ai avatar ai commented on June 27, 2024

Done 904572b

from postcss-focus.

Related Issues (6)

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.