griffel icon indicating copy to clipboard operation
griffel copied to clipboard

core: attribute selectors with comma not working

Open igorbt opened this issue 1 year ago • 3 comments

When using nested attribute selectors that contains commas, they generate incorrect styles, inserting ampersands after the comma.

For example:

    '& [style*="color: rgb(245, 240, 241);"]': {
      color: 'black !important'
    },

will result in something like

.fk7b603 [style*="color: rgb(245,& 240,& 241);"] { color: black !important; }

See more in this Codesandbox.

igorbt avatar May 19 '23 08:05 igorbt