aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-08-25 11:30:39 +0200
committersonartech <sonartech@sonarsource.com>2022-08-26 20:03:25 +0000
commit9a57ed02f242fd387b1225e11391d3e9bb87cbfb (patch)
tree9ef95029b461006672587276ea35d60b57cb2634 /server
parent98ee2c9b75b3eb06660cce5556b5eb130a31546d (diff)
downloadsonarqube-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.tsx30
-rw-r--r--server/sonar-web/src/main/js/components/controls/Modal.css3
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);