Skip to content

Commit 81b6b69

Browse files
authored
fix(styled-components): Use PascalCase instead of ClassCase (#422)
1 parent 0de5f3a commit 81b6b69

File tree

1 file changed

+1
-1
lines changed
  • packages/styled-components/transform/src/visitors/transpile_css_prop

1 file changed

+1
-1
lines changed

packages/styled-components/transform/src/visitors/transpile_css_prop/transpile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl VisitMut for TranspileCssProp<'_> {
8989
};
9090

9191
let name = get_name_ident(&elem.opening.name);
92-
let id_sym = name.sym.to_class_case();
92+
let id_sym = name.sym.to_pascal_case();
9393

9494
// Match the original plugin's behavior.
9595
let id_sym = id_sym.trim_end_matches(char::is_numeric);

0 commit comments

Comments
 (0)