diff --git a/docs/src/modules/utils/generateMarkdown.js b/docs/src/modules/utils/generateMarkdown.js index 53c4b5957d2efd..356611523b498e 100644 --- a/docs/src/modules/utils/generateMarkdown.js +++ b/docs/src/modules/utils/generateMarkdown.js @@ -38,7 +38,7 @@ function getDeprecatedInfo(type) { function escapeCell(value) { // As the pipe is use for the table structure - return value.replace(/ `| ${className} | ${ - reactAPI.styles.descriptions[className] ? reactAPI.styles.descriptions[className] : '' + reactAPI.styles.descriptions[className] + ? escapeCell(reactAPI.styles.descriptions[className]) + : '' }`, ) .join('\n'); diff --git a/packages/material-ui/src/Button/Button.js b/packages/material-ui/src/Button/Button.js index 9096ca46ebf195..e2975546eb90b1 100644 --- a/packages/material-ui/src/Button/Button.js +++ b/packages/material-ui/src/Button/Button.js @@ -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, diff --git a/pages/api/button.md b/pages/api/button.md index 9d7b1883e05f03..76746b89597ed7 100644 --- a/pages/api/button.md +++ b/pages/api/button.md @@ -47,18 +47,18 @@ This property accepts the following keys: | flatPrimary | Styles applied to the root element for backwards compatibility with legacy variant naming. | flatSecondary | Styles applied to the root element for backwards compatibility with legacy variant naming. | outlined | Styles applied to the root element if `variant="outlined"`. -| contained | Styles applied to the root element if `variant="[contained | fab]"`. -| containedPrimary | Styles applied to the root element if `variant="[contained | fab|"` and `color="primary"`. -| containedSecondary | Styles applied to the root element if `variant="[contained | fab]"` and `color="secondary"`. +| contained | Styles applied to the root element if `variant="[contained \| fab]"`. +| containedPrimary | Styles applied to the root element if `variant="[contained \| fab]"` and `color="primary"`. +| containedSecondary | Styles applied to the root element if `variant="[contained \| fab]"` and `color="secondary"`. | raised | Styles applied to the root element for backwards compatibility with legacy variant naming. | raisedPrimary | Styles applied to the root element for backwards compatibility with legacy variant naming. | raisedSecondary | Styles applied to the root element for backwards compatibility with legacy variant naming. -| fab | Styles applied to the root element if `variant="[fab | extendedFab]"`. +| fab | Styles applied to the root element if `variant="[fab \| extendedFab]"`. | extendedFab | Styles applied to the root element if `variant="extendedFab"`. | focusVisible | Styles applied to the ButtonBase root element if the button is keyboard focused. | disabled | Styles applied to the root element if `disabled={true}`. | colorInherit | Styles applied to the root element if `color="inherit"`. -| mini | Styles applied to the root element if `size="mini"` & `variant="[fab | extendedFab]"`. +| mini | Styles applied to the root element if `size="mini"` & `variant="[fab \| extendedFab]"`. | sizeSmall | Styles applied to the root element if `size="small"`. | sizeLarge | Styles applied to the root element if `size="large"`. | fullWidth | Styles applied to the root element if `fullWidth={true}`. diff --git a/pages/api/swipeable-drawer.md b/pages/api/swipeable-drawer.md index 02f4e919db1eb7..bf8ecaf561d0cd 100644 --- a/pages/api/swipeable-drawer.md +++ b/pages/api/swipeable-drawer.md @@ -17,7 +17,7 @@ title: SwipeableDrawer API |:-----|:-----|:--------|:------------| | disableBackdropTransition | bool | false | Disable the backdrop transition. This can improve the FPS on low-end devices. | | disableDiscovery | bool | false | If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit to promote accidental discovery of the swipe gesture. | -| disableSwipeToOpen | bool | typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) | If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers navigation actions. Swipe to open is disabled on iOS browsers by default. | +| disableSwipeToOpen | bool | typeof navigator !== 'undefined' && /iPad\|iPhone\|iPod/.test(navigator.userAgent) | If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers navigation actions. Swipe to open is disabled on iOS browsers by default. | | onClose * | func |   | Callback fired when the component requests to be closed.

**Signature:**
`function(event: object) => void`
*event:* The event source of the callback | | onOpen * | func |   | Callback fired when the component requests to be opened.

**Signature:**
`function(event: object) => void`
*event:* The event source of the callback | | open * | bool |   | If `true`, the drawer is open. |