Attribute selectors specificity #270
-
Branching off from #83 to start a discussion about handling the specificity for attribute selectors. Problem Description Consider the following stylesheet:
Since pseudo selectors and attribute selectors have same specificity, one would expect disabled styles take precedence over hover styles. However, as we've (synthetically) increased specificity of pseudo selectors in #112, attribute selectors always end up having a lower precedence. Take a look at this sandbox for repro: https://codesandbox.io/s/hungry-grothendieck-oo5m0?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I wanted to check what's the roadmap for this issue. |
Beta Was this translation helpful? Give feedback.
I wanted to check what's the roadmap for this issue.
This is currently a blocker for us for completely migrating our codebase from react-jss 😞
Should we create an issue so it can be tracked as a bug?
cc @peduarte @hadihallak