Skip to content

Commit

Permalink
update the API wording to target the root
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 21, 2019
1 parent c896e81 commit 29ee2bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions docs/pages/api/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,20 @@ Any other properties supplied will be provided to the root element (native eleme

## CSS

<<<<<<< HEAD:docs/pages/api/container.md
You can override all the class names injected by Material-UI thanks to the `classes` prop.
This prop accepts the following keys:
=======
You can override all the class names injected by Material-UI thanks to the `classes` property.
This property accepts the following keys:
>>>>>>> Add disableGutters prop to Container component:pages/api/container.md


| Name | Description |
|:-----|:------------|
| <span class="prop-name">root</span> | Styles applied to the root element.
<<<<<<< HEAD:docs/pages/api/container.md
| <span class="prop-name">gutters</span> | Styles applied to the root element if `disableGutters={false}`.
| <span class="prop-name">fixed</span> | Styles applied to the root element if `fixed={true}`.
| <span class="prop-name">maxWidthXs</span> | Styles applied to the root element if `maxWidth="xs"`.
| <span class="prop-name">maxWidthSm</span> | Styles applied to the root element if `maxWidth="sm"`.
| <span class="prop-name">maxWidthMd</span> | Styles applied to the root element if `maxWidth="md"`.
| <span class="prop-name">maxWidthLg</span> | Styles applied to the root element if `maxWidth="lg"`.
| <span class="prop-name">maxWidthXl</span> | Styles applied to the root element if `maxWidth="xl"`.
=======
| <span class="prop-name">gutters</span> | Styles applied to the inner `component` element if `disableGutters={false}`.
| <span class="prop-name">fixed</span> | Styles applied to the inner `component` element if `fixed={true}`.
| <span class="prop-name">maxWidthXs</span> | Styles applied to the inner `component` element if `maxWidth="xs"`.
| <span class="prop-name">maxWidthSm</span> | Styles applied to the inner `component` element if `maxWidth="sm"`.
| <span class="prop-name">maxWidthMd</span> | Styles applied to the inner `component` element if `maxWidth="md"`.
| <span class="prop-name">maxWidthLg</span> | Styles applied to the inner `component` element if `maxWidth="lg"`.
| <span class="prop-name">maxWidthXl</span> | Styles applied to the inner `component` element if `maxWidth="xl"`.
>>>>>>> Add disableGutters prop to Container component:pages/api/container.md

Have a look at the [overriding styles with classes](/customization/components/#overriding-styles-with-classes) section
and the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Container/Container.js)
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Container/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const styles = theme => ({
boxSizing: 'border-box',
marginRight: 'auto',
},
/* Styles applied to the inner `component` element if `disableGutters={false}`. */
/* Styles applied to the root element if `disableGutters={false}`. */
gutters: {
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(2),
Expand Down

0 comments on commit 29ee2bd

Please sign in to comment.