babel-plugin-react-css-modules icon indicating copy to clipboard operation
babel-plugin-react-css-modules copied to clipboard

Classnames have trailing whitespace when spread is used

Open andris-silis opened this issue 5 years ago • 3 comments

Example: JSX:

<div styleName="classA classB" {...someProps} />

Output:

<div className="classA classB " />

No trailing whitespace is added when spread is not used.

Seems like a small issue, but it breaks snapshots or className checks in tests when upgrading.

andris-silis avatar Jun 30 '19 10:06 andris-silis

Sees like a good first PR.

gajus avatar Jun 30 '19 12:06 gajus

Any update on this?

giorgosavgeris avatar Mar 11 '20 13:03 giorgosavgeris

Sees like a good first PR.

Hi Gajus, is there any update on this issue?

Lchemist avatar Jun 13 '20 02:06 Lchemist