legacy-paperclip icon indicating copy to clipboard operation
legacy-paperclip copied to clipboard

:within($ns.className)

Open crcn opened this issue 3 years ago • 0 comments

Should be able to do this:

<import src="./atoms.pc" as="atoms" />

<div>
  <style>
    &:within($atoms.float) {
      color: red;
    }
  </style>
</div>

Currently this is necessary as an alternative:

<import src="./atoms.pc" as="atoms" />

<div>
  <style>
    &:within(:global(.float)) {
      color: red;
    }
  </style>
</div>

crcn avatar Dec 28 '21 13:12 crcn