typestyle / typestyle

Making CSS Typesafe 🌹

Home Page:https://typestyle.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:focus-within Pseudo Selector

devmattrick opened this issue · comments

It'd be awesome if you'd consider adding types for the :focus-within pseudo selector. It appears it is a working draft, but its supported by every major browser excluding Edge.

Thanks!

Apologies, I didn't realize that styles need to have a CSS property child like:

stylesheet({
  base: {
    background: "#FFF",

    "&:focus-within": {
       
    }
  },
}),

Not including a CSS property (as below) results in a type error:

stylesheet({
  base: {
    "&:focus-within": {
       
    }
  },
}),

Sorry!