typescript-plugin-styled-components icon indicating copy to clipboard operation
typescript-plugin-styled-components copied to clipboard

Restore componentIdPrefix fallback to getIdFromNode

Open roikoren755 opened this issue 3 years ago • 1 comments

image

As part of the changes for v2, componentIds lost their default sc prefix in the withConfig call.

roikoren755 avatar Oct 19 '21 12:10 roikoren755

Is this something that can be looked into further? Without a componentIdPrefix set, I had -15w8dc5 generated as a componentId. It then tried to use that ID as a CSS selector - CSS class names cannot start with numbers, so the rule was not applied

jaycetde avatar Feb 08 '22 22:02 jaycetde