diff options
3 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx index a16277dee4b..0e43ecbde50 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx @@ -528,7 +528,7 @@ export default class BulkChangeModal extends React.PureComponent<Props, State> { render() { return ( - <Modal contentLabel="modal" onRequestClose={this.props.onClose} size="small"> + <Modal onRequestClose={this.props.onClose} size="small"> {this.state.loading ? this.renderLoading() : this.renderForm()} </Modal> ); diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap index 444ba88d326..fbfc9ae9928 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap @@ -2,7 +2,6 @@ exports[`should display error message when no issues available 1`] = ` <Modal - contentLabel="modal" onRequestClose={[Function]} size="small" > @@ -51,7 +50,6 @@ exports[`should display error message when no issues available 1`] = ` exports[`should display form when issues are present 1`] = ` <Modal - contentLabel="modal" onRequestClose={[Function]} size="small" > diff --git a/server/sonar-web/src/main/js/components/controls/Modal.tsx b/server/sonar-web/src/main/js/components/controls/Modal.tsx index 9ad4d652023..49349f98a37 100644 --- a/server/sonar-web/src/main/js/components/controls/Modal.tsx +++ b/server/sonar-web/src/main/js/components/controls/Modal.tsx @@ -57,7 +57,7 @@ interface Props extends ModalProps { shouldCloseOnEsc?: boolean; /* String indicating how the content container should be announced to screenreaders. */ - contentLabel: string; + contentLabel?: string; } export default function Modal(props: Props) { |