From 190134884eb4a0361b71c3f3adb709b3cb97e1a0 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Thu, 14 Mar 2024 12:36:08 -0400 Subject: [PATCH] Allow nodes for ConfirmationModal heading (#2250) (cherry picked from commit 47d679eaaa5101d366e7a3a9c20e8747acc99751) --- lib/ConfirmationModal/ConfirmationModal.js | 2 +- lib/ConfirmationModal/readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" |