Skip to content

Commit 2da40dc

Browse files
committed
Add limitation docs ScopedCssBaseline
1 parent e9eb2df commit 2da40dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/pages/components/css-baseline/css-baseline.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,20 @@ It's possible to apply the baseline only to the children by using the `ScopedCss
3232
```jsx
3333
import React from 'react';
3434
import ScopedCssBaseline from '@material-ui/core/ScopedCssBaseline';
35+
import MyApp from './MyApp';
3536

3637
export default function MyApp() {
3738
return (
3839
<ScopedCssBaseline>
3940
{/* The rest of your application */}
41+
<MyApp />
4042
</ScopedCssBaseline>
4143
);
4244
}
4345
```
4446

47+
⚠️ Make sure you import `ScopedCssBaseline` first to avoid box-sizing conflicts as in the above example.
48+
4549
## Approach
4650

4751
### Page

0 commit comments

Comments
 (0)