Jss: [jss-pseudo] Support a short notation for pseudo selectors

Created on 26 Oct 2016  路  1Comment  路  Source: cssinjs/jss

Why?

  • Sometimes we don't need all the features jss-nested provides
  • Most other cssinjs libs use ":hover" syntax
  • jss-isolate would be able to detect pseudo rules and avoid double isolation for those #698

How?
We can check existence of ":" same way we check "&" and add a parent selector before it when extracting to a separate rule.

Another idea: write jss-pseudo plugin and put this functionality into a separate repository. So one can decide if they want to use jss-nested. Potentially we can completely avoid jss-nested by using jss-pseudo + jss-global.

moderate enhancement plugin

Most helpful comment

This one is also important when used together with jss-isolate, to avoid isolation of pseudo rules.

>All comments

This one is also important when used together with jss-isolate, to avoid isolation of pseudo rules.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janhartmann picture janhartmann  路  5Comments

dan-lee picture dan-lee  路  3Comments

goleary picture goleary  路  5Comments

glowkeeper picture glowkeeper  路  5Comments

brianmhunt picture brianmhunt  路  5Comments