CSS Modules build output hash not escaped #36673
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
When a CSS Module hash of a class name contains certain characters like
+
, it doesn't always get escaped correctly. The codeCompiles into:
.A-module--print--24b\+W
is correctly escaped..A-module--print--24b+W
gets parsed as.A-module--print--24b + W
because of the lack of escape character. Other class names whose hashes don't contain+
work fine. If this is an issue with an external library Gatsby uses, where should I file that bug?Reproduction Link
https://codesandbox.io/s/brave-grass-7fx9gn
Steps to Reproduce
+
symbol, the generated css will be broken.Expected Result
The generated code should escape the class name every time:
Actual Result
The generated code does not escape the class name if used as an ancestor:
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: