diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2022-08-10 09:56:21 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-11 20:03:48 +0000 |
commit | ed2749893f7073ae1a82ff1c0f14f60eb969628e (patch) | |
tree | 82c38e220c788a3b6a542b3d18772adf7d218bb9 /server | |
parent | b135b4db8e55e045631792ac4323e32f2278a348 (diff) | |
download | sonarqube-ed2749893f7073ae1a82ff1c0f14f60eb969628e.tar.gz sonarqube-ed2749893f7073ae1a82ff1c0f14f60eb969628e.zip |
SONAR-16782 [893351] States/Properties: Invalid ARIA attribute value
Diffstat (limited to 'server')
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) { |