Skip to content

Commit

Permalink
manually escape pipe in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRusskiy committed Jul 24, 2018
1 parent 7b46142 commit a4f7e6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/src/modules/utils/generateMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function generateClasses(reactAPI) {
.map(
className =>
`| <span class="prop-name">${className}</span> | ${
reactAPI.styles.descriptions[className] ? escapeCell(reactAPI.styles.descriptions[className]) : ''
reactAPI.styles.descriptions[className] ? reactAPI.styles.descriptions[className] : ''
}`,
)
.join('\n');
Expand Down
10 changes: 5 additions & 5 deletions packages/material-ui/src/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const styles = theme => ({
theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'
}`,
},
/* Styles applied to the root element if `variant="[contained | fab]"`. */
/* Styles applied to the root element if `variant="[contained \| fab]"`. */
contained: {
color: theme.palette.getContrastText(theme.palette.grey[300]),
backgroundColor: theme.palette.grey[300],
Expand All @@ -106,7 +106,7 @@ export const styles = theme => ({
},
},
},
/* Styles applied to the root element if `variant="[contained | fab]"` and `color="primary"`. */
/* Styles applied to the root element if `variant="[contained \| fab]"` and `color="primary"`. */
containedPrimary: {
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.main,
Expand All @@ -118,7 +118,7 @@ export const styles = theme => ({
},
},
},
/* Styles applied to the root element if `variant="[contained | fab]"` and `color="secondary"`. */
/* Styles applied to the root element if `variant="[contained \| fab]"` and `color="secondary"`. */
containedSecondary: {
color: theme.palette.secondary.contrastText,
backgroundColor: theme.palette.secondary.main,
Expand All @@ -136,7 +136,7 @@ export const styles = theme => ({
raisedPrimary: {}, // legacy
/* Styles applied to the root element for backwards compatibility with legacy variant naming. */
raisedSecondary: {}, // legacy
/* Styles applied to the root element if `variant="[fab | extendedFab]"`. */
/* Styles applied to the root element if `variant="[fab \| extendedFab]"`. */
fab: {
borderRadius: '50%',
padding: 0,
Expand Down Expand Up @@ -164,7 +164,7 @@ export const styles = theme => ({
colorInherit: {
color: 'inherit',
},
/* Styles applied to the root element if `size="mini"` & `variant="[fab | extendedFab]"`. */
/* Styles applied to the root element if `size="mini"` & `variant="[fab \| extendedFab]"`. */
mini: {
width: 40,
height: 40,
Expand Down
10 changes: 5 additions & 5 deletions pages/api/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ This property accepts the following keys:
| <span class="prop-name">flatPrimary</span> | Styles applied to the root element for backwards compatibility with legacy variant naming.
| <span class="prop-name">flatSecondary</span> | Styles applied to the root element for backwards compatibility with legacy variant naming.
| <span class="prop-name">outlined</span> | Styles applied to the root element if `variant="outlined"`.
| <span class="prop-name">contained</span> | Styles applied to the root element if `variant="[contained &#124; fab]"`.
| <span class="prop-name">containedPrimary</span> | Styles applied to the root element if `variant="[contained &#124; fab]"` and `color="primary"`.
| <span class="prop-name">containedSecondary</span> | Styles applied to the root element if `variant="[contained &#124; fab]"` and `color="secondary"`.
| <span class="prop-name">contained</span> | Styles applied to the root element if `variant="[contained \| fab]"`.
| <span class="prop-name">containedPrimary</span> | Styles applied to the root element if `variant="[contained \| fab]"` and `color="primary"`.
| <span class="prop-name">containedSecondary</span> | Styles applied to the root element if `variant="[contained \| fab]"` and `color="secondary"`.
| <span class="prop-name">raised</span> | Styles applied to the root element for backwards compatibility with legacy variant naming.
| <span class="prop-name">raisedPrimary</span> | Styles applied to the root element for backwards compatibility with legacy variant naming.
| <span class="prop-name">raisedSecondary</span> | Styles applied to the root element for backwards compatibility with legacy variant naming.
| <span class="prop-name">fab</span> | Styles applied to the root element if `variant="[fab &#124; extendedFab]"`.
| <span class="prop-name">fab</span> | Styles applied to the root element if `variant="[fab \| extendedFab]"`.
| <span class="prop-name">extendedFab</span> | Styles applied to the root element if `variant="extendedFab"`.
| <span class="prop-name">focusVisible</span> | Styles applied to the ButtonBase root element if the button is keyboard focused.
| <span class="prop-name">disabled</span> | Styles applied to the root element if `disabled={true}`.
| <span class="prop-name">colorInherit</span> | Styles applied to the root element if `color="inherit"`.
| <span class="prop-name">mini</span> | Styles applied to the root element if `size="mini"` & `variant="[fab &#124; extendedFab]"`.
| <span class="prop-name">mini</span> | Styles applied to the root element if `size="mini"` & `variant="[fab \| extendedFab]"`.
| <span class="prop-name">sizeSmall</span> | Styles applied to the root element if `size="small"`.
| <span class="prop-name">sizeLarge</span> | Styles applied to the root element if `size="large"`.
| <span class="prop-name">fullWidth</span> | Styles applied to the root element if `fullWidth={true}`.
Expand Down

0 comments on commit a4f7e6f

Please sign in to comment.