diff --git a/lib/ConfirmationModal/ConfirmationModal.js b/lib/ConfirmationModal/ConfirmationModal.js index 6726c950c..ddb10ba3b 100644 --- a/lib/ConfirmationModal/ConfirmationModal.js +++ b/lib/ConfirmationModal/ConfirmationModal.js @@ -16,7 +16,7 @@ const propTypes = { cancelButtonStyle: PropTypes.string, cancelLabel: PropTypes.node, confirmLabel: PropTypes.node, - heading: PropTypes.string.isRequired, + heading: PropTypes.node.isRequired, id: PropTypes.string, isConfirmButtonDisabled: PropTypes.bool, message: PropTypes.oneOfType([ diff --git a/lib/ConfirmationModal/readme.md b/lib/ConfirmationModal/readme.md index cc4e24546..950cf030b 100644 --- a/lib/ConfirmationModal/readme.md +++ b/lib/ConfirmationModal/readme.md @@ -38,7 +38,7 @@ handleSubmit() { Name | type | description | default | required --- | --- | --- | --- | --- -heading | string | String to appear as the modal's H1 tag. Doubles as the modal's ARIA-label | | ✔ +heading | node | String to appear as the modal's H1 tag | | ✔ message | node or array of nodes | Renderable content rendered within a `

` tag. | | open | bool | Boolean reflecting modal's open/closed status | | ✔ cancelLabel | node | String to render on the Cancel action. | "Cancel" |