Skip to content

Commit

Permalink
Move comment out of code
Browse files Browse the repository at this point in the history
  • Loading branch information
abenhamdine authored and afc163 committed Sep 2, 2018
1 parent 43d623c commit 4e642e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/react/customize-theme.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ It's possible to configure webpack to load an alternate less file:

```ts
new webpack.NormalModuleReplacementPlugin( /node_modules\/antd\/lib\/style\/index\.less/, path.resolve(rootDir, 'src/myStylesReplacement.less') ),

Where the src/myStylesReplacement.less file loads the same files as the index.less file, but loads them within the scope of a top-level selector:

#antd { @import '~antd/lib/style/core/index.less'; @import '~antd/lib/style/themes/default.less'; }
```

Where the src/myStylesReplacement.less file loads the same files as the index.less file, but loads them within the scope of a top-level selector:

The result is that all of the "global" styles are being applied with the #antd scope.

### Use a postcss processor to scope all styles
Expand Down

0 comments on commit 4e642e6

Please sign in to comment.