From f8ed1e1a2d9feea3f024891f633420efacda02e1 Mon Sep 17 00:00:00 2001 From: Rostislav Bobrovsky Date: Tue, 28 Jan 2020 19:06:08 +0200 Subject: [PATCH] [docs] Replace switch with checkbox and radio (#19440) --- docs/pages/api/checkbox.md | 2 +- docs/pages/api/radio.md | 2 +- packages/material-ui/src/Checkbox/Checkbox.js | 2 +- packages/material-ui/src/Radio/Radio.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/api/checkbox.md b/docs/pages/api/checkbox.md index fbbb20c82a420a..cdb01fa3415845 100644 --- a/docs/pages/api/checkbox.md +++ b/docs/pages/api/checkbox.md @@ -28,7 +28,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | checkedIcon | node | <CheckBoxIcon /> | The icon to display when the component is checked. | | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | | color | 'primary'
| 'secondary'
| 'default'
| 'secondary' | The color of the component. It supports those theme colors that make sense for this component. | -| disabled | bool | | If `true`, the switch will be disabled. | +| disabled | bool | | If `true`, the checkbox will be disabled. | | disableRipple | bool | | If `true`, the ripple effect will be disabled. | | icon | node | <CheckBoxOutlineBlankIcon /> | The icon to display when the component is unchecked. | | id | string | | The id of the `input` element. | diff --git a/docs/pages/api/radio.md b/docs/pages/api/radio.md index 92aaeca8d38a42..7b21d6747dbfe2 100644 --- a/docs/pages/api/radio.md +++ b/docs/pages/api/radio.md @@ -28,7 +28,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | checkedIcon | node | | The icon to display when the component is checked. | | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | | color | 'primary'
| 'secondary'
| 'default'
| 'secondary' | The color of the component. It supports those theme colors that make sense for this component. | -| disabled | bool | | If `true`, the switch will be disabled. | +| disabled | bool | | If `true`, the radio will be disabled. | | disableRipple | bool | | If `true`, the ripple effect will be disabled. | | icon | node | | The icon to display when the component is unchecked. | | id | string | | The id of the `input` element. | diff --git a/packages/material-ui/src/Checkbox/Checkbox.js b/packages/material-ui/src/Checkbox/Checkbox.js index 45fdf813e9868f..4b683c74b71a42 100644 --- a/packages/material-ui/src/Checkbox/Checkbox.js +++ b/packages/material-ui/src/Checkbox/Checkbox.js @@ -118,7 +118,7 @@ Checkbox.propTypes = { */ color: PropTypes.oneOf(['primary', 'secondary', 'default']), /** - * If `true`, the switch will be disabled. + * If `true`, the checkbox will be disabled. */ disabled: PropTypes.bool, /** diff --git a/packages/material-ui/src/Radio/Radio.js b/packages/material-ui/src/Radio/Radio.js index 1758d3f27b4efc..f7c00b2271ca3c 100644 --- a/packages/material-ui/src/Radio/Radio.js +++ b/packages/material-ui/src/Radio/Radio.js @@ -122,7 +122,7 @@ Radio.propTypes = { */ color: PropTypes.oneOf(['primary', 'secondary', 'default']), /** - * If `true`, the switch will be disabled. + * If `true`, the radio will be disabled. */ disabled: PropTypes.bool, /**