diff --git a/packages/carbon-react/package.json b/packages/carbon-react/package.json
index b40614d6c588..75b0c1c04793 100644
--- a/packages/carbon-react/package.json
+++ b/packages/carbon-react/package.json
@@ -1,7 +1,7 @@
{
"name": "@carbon/react",
"description": "React components for the Carbon Design System",
- "version": "0.8.0",
+ "version": "0.8.1",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
@@ -47,7 +47,7 @@
"@carbon/styles": "^0.8.0",
"@carbon/telemetry": "0.0.0-alpha.6",
"carbon-components": "^10.47.0",
- "carbon-components-react": "^7.47.0",
+ "carbon-components-react": "^7.47.1",
"carbon-icons": "^7.0.7"
},
"devDependencies": {
diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
index d5682bce1b43..2f5f25f97d82 100644
--- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
+++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
@@ -3829,6 +3829,9 @@ Map {
"className": Object {
"type": "string",
},
+ "closeButtonLabel": Object {
+ "type": "string",
+ },
"danger": Object {
"type": "bool",
},
diff --git a/packages/react/package.json b/packages/react/package.json
index 8291045ed7a0..b8c503012db6 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,7 +1,7 @@
{
"name": "carbon-components-react",
"description": "The Carbon Design System is IBM’s open-source design system for products and experiences.",
- "version": "7.47.0",
+ "version": "7.47.1",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
diff --git a/packages/react/src/components/Modal/Modal.js b/packages/react/src/components/Modal/Modal.js
index 66c61af0a479..0e29b0151e0d 100644
--- a/packages/react/src/components/Modal/Modal.js
+++ b/packages/react/src/components/Modal/Modal.js
@@ -49,6 +49,11 @@ export default class Modal extends Component {
*/
className: PropTypes.string,
+ /**
+ * Specify an label for the close button of the modal; defaults to close
+ */
+ closeButtonLabel: PropTypes.string,
+
/**
* Specify whether the Modal is for dangerous actions
*/
@@ -384,6 +389,7 @@ export default class Modal extends Component {
shouldSubmitOnEnter, // eslint-disable-line
size,
hasScrollingContent,
+ closeButtonLabel,
preventCloseOnClickOutside, // eslint-disable-line
...other
} = this.props;
@@ -420,11 +426,10 @@ export default class Modal extends Component {
type="button"
onClick={onRequestClose}
title={ariaLabel ? ariaLabel : iconDescription}
- aria-label={ariaLabel ? ariaLabel : iconDescription}
+ aria-label={closeButtonLabel ? closeButtonLabel : 'close'}
ref={this.button}>
diff --git a/packages/react/src/components/ModalWrapper/__snapshots__/ModalWrapper-test.js.snap b/packages/react/src/components/ModalWrapper/__snapshots__/ModalWrapper-test.js.snap
index c01fc67ed101..9554f7b53497 100644
--- a/packages/react/src/components/ModalWrapper/__snapshots__/ModalWrapper-test.js.snap
+++ b/packages/react/src/components/ModalWrapper/__snapshots__/ModalWrapper-test.js.snap
@@ -109,19 +109,18 @@ exports[`ModalWrapper should render 1`] = `
Transactional Modal