diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2022-08-25 11:30:39 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-26 20:03:25 +0000 |
commit | 9a57ed02f242fd387b1225e11391d3e9bb87cbfb (patch) | |
tree | 9ef95029b461006672587276ea35d60b57cb2634 /server | |
parent | 98ee2c9b75b3eb06660cce5556b5eb130a31546d (diff) | |
download | sonarqube-9a57ed02f242fd387b1225e11391d3e9bb87cbfb.tar.gz sonarqube-9a57ed02f242fd387b1225e11391d3e9bb87cbfb.zip |
SONAR-16817 Group of radio buttons is missing <fieldset>
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx | 30 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/Modal.css | 3 |
2 files changed, 18 insertions, 15 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 0e43ecbde50..b40ad4a4043 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 @@ -419,20 +419,22 @@ export default class BulkChangeModal extends React.PureComponent<Props, State> { return ( <div className="modal-field"> - <label>{translate('issue.transition')}</label> - {transitions.map(transition => ( - <span - className="bulk-change-radio-button display-flex-center display-flex-space-between" - key={transition.transition}> - <Radio - checked={this.state.transition === transition.transition} - onCheck={this.handleRadioTransitionChange} - value={transition.transition}> - {translate('issue.transition', transition.transition)} - </Radio> - {this.renderAffected(transition.count)} - </span> - ))} + <fieldset> + <legend>{translate('issue.transition')}</legend> + {transitions.map(transition => ( + <span + className="bulk-change-radio-button display-flex-center display-flex-space-between" + key={transition.transition}> + <Radio + checked={this.state.transition === transition.transition} + onCheck={this.handleRadioTransitionChange} + value={transition.transition}> + {translate('issue.transition', transition.transition)} + </Radio> + {this.renderAffected(transition.count)} + </span> + ))} + </fieldset> </div> ); }; diff --git a/server/sonar-web/src/main/js/components/controls/Modal.css b/server/sonar-web/src/main/js/components/controls/Modal.css index ed40cf96410..7280e57da18 100644 --- a/server/sonar-web/src/main/js/components/controls/Modal.css +++ b/server/sonar-web/src/main/js/components/controls/Modal.css @@ -128,7 +128,8 @@ } .modal-field label, -.modal-validation-field label { +.modal-validation-field label, +.modal-field legend { display: block; font-weight: bold; padding-bottom: calc(var(--gridSize) / 2); |