refactor(toggle): make props.labelA and props.labelB optional
MODIFY
packages/react/src/components/Toggle/migrate-to-11.x.md
packages/react/src/components/Toggle/migrate-to-11.x.md
| `aria-label` | - | Removed. No longer required. If still passed, it will be emitted on the `<button>` element. |
| - | `hideLabel` | New. Visually hides the label above the toggle while keeping it available to screen readers. |
| `onChange` | - | Removed. Not available on `<button>` elements. |
-| - | `onClick` | New. To substitute previous `props.onChange` |
+| - | `onClick` | New. To substitute previous `props.onChange`. |
+| `labelA` | `labelA` | Made optional. Default: "Off". |
+| `labelB` | `labelB` | Made optional. Default: "On". |

MODIFY
packages/react/src/components/Toggle/next/Toggle.js
packages/react/src/components/Toggle/next/Toggle.js
@@ -129,12 +129,12 @@ Toggle.propTypes = {
/**
* Specify the label for the "off" position
*/
- labelA: PropTypes.node.isRequired,
+ labelA: PropTypes.node,
/**
* Specify the label for the "on" position
*/
- labelB: PropTypes.node.isRequired,
+ labelB: PropTypes.node,
/**
* Provide the text that will be read by a screen reader when visiting this

refactor(toggle): make props.labelA and props.labelB optional (#9550)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>