diff --git a/docs/pages/api-docs/checkbox.json b/docs/pages/api-docs/checkbox.json index bc98cfc4e4838c..c994489124194c 100644 --- a/docs/pages/api-docs/checkbox.json +++ b/docs/pages/api-docs/checkbox.json @@ -8,7 +8,7 @@ "name": "union", "description": "'default'
| 'primary'
| 'secondary'
| string" }, - "default": "'secondary'" + "default": "'primary'" }, "defaultChecked": { "type": { "name": "bool" } }, "disabled": { "type": { "name": "bool" } }, diff --git a/docs/src/pages/components/checkboxes/ColorCheckboxes.js b/docs/src/pages/components/checkboxes/ColorCheckboxes.js index 057ee3984ef95b..72f979d239ee4b 100644 --- a/docs/src/pages/components/checkboxes/ColorCheckboxes.js +++ b/docs/src/pages/components/checkboxes/ColorCheckboxes.js @@ -8,7 +8,7 @@ export default function ColorCheckboxes() { return (
- + - + - + createTheme({ @@ -28,7 +28,7 @@ export default function ThemeNestingExtend() { }) } > - + diff --git a/docs/src/pages/customization/theming/ThemeNestingExtend.tsx b/docs/src/pages/customization/theming/ThemeNestingExtend.tsx index 2743437b9f0463..00a8e7c34efdab 100644 --- a/docs/src/pages/customization/theming/ThemeNestingExtend.tsx +++ b/docs/src/pages/customization/theming/ThemeNestingExtend.tsx @@ -14,7 +14,7 @@ const outerTheme = createTheme({ export default function ThemeNestingExtend() { return ( - + createTheme({ @@ -28,7 +28,7 @@ export default function ThemeNestingExtend() { }) } > - + diff --git a/docs/src/pages/guides/migration-v4/migration-v4.md b/docs/src/pages/guides/migration-v4/migration-v4.md index a933a24801fea1..5295698d37ecfb 100644 --- a/docs/src/pages/guides/migration-v4/migration-v4.md +++ b/docs/src/pages/guides/migration-v4/migration-v4.md @@ -538,6 +538,13 @@ As the core components use emotion as a styled engine, the props used by emotion } ``` +- The checkbox color prop is now "primary" by default. To continue using the "secondary" color, you must explicitly indicate `secondary`. This brings the checkbox closer to the Material Design specification. + + ```diff + - + +