diff --git a/src/Modal/index.jsx b/src/Modal/index.jsx index d3ee6c8174..6cdcfc6f50 100644 --- a/src/Modal/index.jsx +++ b/src/Modal/index.jsx @@ -10,6 +10,8 @@ import Icon from '../Icon'; import newId from '../utils/newId'; import Variant from '../utils/constants'; +const closeModalButtonId = 'paragonCloseModalButton'; + class Modal extends React.Component { constructor(props) { super(props); @@ -202,7 +204,7 @@ class Modal extends React.Component { } className={['p-1']} - aria-label={this.props.closeText} + aria-labelledby={closeModalButtonId} onClick={this.close} inputRef={this.setFirstFocusableElement} onKeyDown={this.handleKeyDown} @@ -215,6 +217,7 @@ class Modal extends React.Component {