Skip to content

Commit

Permalink
[docs] Increase SEO potential (#12525)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Aug 14, 2018
1 parent 13dcce9 commit 3d73106
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/utils/popper/popper.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ components: Popper

# Popper

<p class="description">A Popper can be used to display some content on top of another.</p>
<p class="description">A Popper can be used to display some content on top of another. It's an alternative to react-popper.</p>

Things to know when using the `Popper` component:

Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/Checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function Checkbox(props) {

return (
<SwitchBase
type="checkbox"
checkedIcon={indeterminate ? indeterminateIcon : checkedIcon}
classes={{
root: classNames(classes.root, classes[`color${capitalize(color)}`]),
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function Switch(props) {
return (
<span className={classNames(classes.root, className)}>
<SwitchBase
type="checkbox"
icon={<span className={classes.icon} />}
classes={{
root: classNames(classes.switchBase, classes[`color${capitalize(color)}`]),
Expand Down
6 changes: 1 addition & 5 deletions packages/material-ui/src/internal/SwitchBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,13 @@ SwitchBase.propTypes = {
/**
* The input component property `type`.
*/
type: PropTypes.string,
type: PropTypes.string.isRequired,
/**
* The value of the component.
*/
value: PropTypes.string,
};

SwitchBase.defaultProps = {
type: 'checkbox',
};

SwitchBase.contextTypes = {
muiFormControl: PropTypes.object,
};
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/internal/SwitchBase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('<SwitchBase />', () => {
let classes;
let SwitchBaseNaked;
const defaultProps = {
type: 'checkbox',
icon: <h1>h1</h1>,
checkedIcon: <h2>h2</h2>,
};
Expand Down

0 comments on commit 3d73106

Please sign in to comment.