Skip to content

Commit 66cd9e9

Browse files
committed
Hotfix: Removed option to access styles from props
1 parent c4971f0 commit 66cd9e9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
<img src='./.README/react-css-modules.png' height='150' />
88

9+
## Reason to fork
10+
Fixed this bug https://github.com/gajus/react-css-modules/issues/272 by removing the embedded styles
11+
912
React CSS Modules implement automatic mapping of CSS modules. Every CSS class is assigned a local-scoped identifier with a global unique name. CSS Modules enable a modular and reusable CSS!
1013

1114
> ⚠️⚠️⚠️

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"css",
1313
"modules"
1414
],
15-
"version": "4.3.0",
15+
"version": "4.7.4",
1616
"author": {
1717
"name": "Gajus Kuizinas",
1818
"email": "gajus@gajus.com",

src/extendReactClass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default (Component: Object, defaultStyles: Object, options: Object) => {
3636
writable: false
3737
});
3838

39-
this.props = props;
39+
// Removed to fix this bug https://github.com/gajus/react-css-modules/issues/272
40+
// this.props = props;
4041
} else {
4142
styles = {};
4243
}

0 commit comments

Comments
 (0)