davesnx / styled-ppx

Type-safe styled components for ReScript, Melange and native with type-safe CSS
https://styled-ppx.vercel.app
BSD 2-Clause "Simplified" License
399 stars 32 forks source link

`:has()` CSS support with `+` #435

Closed davesnx closed 1 month ago

davesnx commented 5 months ago
selector {j|&:has(+ .$sideGapCell)|j} [ paddingRight `zero];
let cell = [%cx {|
  /* ... */
  &:has(+ .$(sideGapCell)) { padding-right: 0 }
|}]
File "frontend/packages/ahkit/src/design-system/Table_Css.ml", line 10, characters 8-9:
Error: Parse error while reading token '+'