Skip to content

Commit

Permalink
[docs] Make CSS interoperability examples easier to use (#20860)
Browse files Browse the repository at this point in the history
* [docs] Plain css, little detail

I guess the demo has to show that you still have to import the file in order for this approach to work.

* Remove blank lines. Add import in PlainCssButtonDeep.

* fix capitalization

Co-authored-by: Olivier Tassinari <[email protected]>
  • Loading branch information
weisk and oliviertassinari authored May 3, 2020
1 parent 4bfcbec commit beabed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/pages/guides/interoperability/interoperability.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Nothing fancy, just plain CSS.
```jsx
import React from 'react';
import Button from '@material-ui/core/Button';
import './PlainCssButton.css';

export default function PlainCssButton() {
return (
Expand Down Expand Up @@ -93,6 +94,7 @@ The following example overrides the `label` style of `Button` in addition to the
```jsx
import React from 'react';
import Button from '@material-ui/core/Button';
import './PlainCssButtonDeep.css';

export default function PlainCssButtonDeep() {
return (
Expand Down Expand Up @@ -132,6 +134,7 @@ Explicitly providing the class names to the component is too much effort?
```jsx
import React from 'react';
import Button from '@material-ui/core/Button';
import './GlobalCssButton.css';

export default function GlobalCssButton() {
return <Button>Customized</Button>;
Expand Down

0 comments on commit beabed8

Please sign in to comment.