Skip to content

Commit

Permalink
Add limitation docs ScopedCssBaseline
Browse files Browse the repository at this point in the history
  • Loading branch information
newrice committed Apr 9, 2020
1 parent e9eb2df commit 2da40dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/pages/components/css-baseline/css-baseline.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@ It's possible to apply the baseline only to the children by using the `ScopedCss
```jsx
import React from 'react';
import ScopedCssBaseline from '@material-ui/core/ScopedCssBaseline';
import MyApp from './MyApp';

export default function MyApp() {
return (
<ScopedCssBaseline>
{/* The rest of your application */}
<MyApp />
</ScopedCssBaseline>
);
}
```

⚠️ Make sure you import `ScopedCssBaseline` first to avoid box-sizing conflicts as in the above example.

## Approach

### Page
Expand Down

0 comments on commit 2da40dc

Please sign in to comment.