From: Grégoire Aubert Date: Wed, 9 Jan 2019 09:49:53 +0000 (+0100) Subject: SONAR-11619 Remove label[for] styling and fix some input ids X-Git-Tag: 7.6~151 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e74dca535a14fc636b7dca18a5196d16ee3b365a;p=sonarqube.git SONAR-11619 Remove label[for] styling and fix some input ids --- diff --git a/server/sonar-web/src/main/js/app/styles/init/forms.css b/server/sonar-web/src/main/js/app/styles/init/forms.css index 3e709ab3d53..2db2d3eac0f 100644 --- a/server/sonar-web/src/main/js/app/styles/init/forms.css +++ b/server/sonar-web/src/main/js/app/styles/init/forms.css @@ -189,10 +189,6 @@ em.mandatory { font-style: italic; } -label[for] { - cursor: pointer; -} - .form-field { clear: both; display: block; diff --git a/server/sonar-web/src/main/js/apps/create/components/OrganizationAvatarInput.tsx b/server/sonar-web/src/main/js/apps/create/components/OrganizationAvatarInput.tsx index 62bcdec93cf..30655bd237a 100644 --- a/server/sonar-web/src/main/js/apps/create/components/OrganizationAvatarInput.tsx +++ b/server/sonar-web/src/main/js/apps/create/components/OrganizationAvatarInput.tsx @@ -97,7 +97,7 @@ export default class OrganizationAvatarInput extends React.PureComponent diff --git a/server/sonar-web/src/main/js/apps/create/components/__tests__/__snapshots__/OrganizationAvatarInput-test.tsx.snap b/server/sonar-web/src/main/js/apps/create/components/__tests__/__snapshots__/OrganizationAvatarInput-test.tsx.snap index 0750e70fdd4..a2f801bc5d4 100644 --- a/server/sonar-web/src/main/js/apps/create/components/__tests__/__snapshots__/OrganizationAvatarInput-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/create/components/__tests__/__snapshots__/OrganizationAvatarInput-test.tsx.snap @@ -19,7 +19,7 @@ exports[`should display the fallback avatar when there is no url 1`] = ` /> - onboarding.create_project.organization - - * - + + onboarding.create_project.organization + + + * + + { ({ label: translate('metric.type', type), diff --git a/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/Form-test.tsx.snap b/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/Form-test.tsx.snap index f0baf33640e..69ff6188f6b 100644 --- a/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/Form-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/Form-test.tsx.snap @@ -89,6 +89,7 @@ exports[`should render form 1`] = ` custom_metrics.domain ({ label: permissionTemplate.name, diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx index e2778fe943f..7284f830995 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx @@ -110,7 +110,7 @@ export default class ConditionModal extends React.PureComponent { onConfirm={this.handleFormSubmit}> {this.state.errorMessage && {this.state.errorMessage}}
- + {metrics && } {this.props.metric && ( {getLocalizedMetricName(this.props.metric)} @@ -119,7 +119,9 @@ export default class ConditionModal extends React.PureComponent { {metric && ( <>
- + { />
- + { autoFocus={true} className="input-medium" clearable={false} + id="condition-operator" name="operator" onChange={this.handleChange} options={operatorOptions} diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/MetricSelect.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/MetricSelect.tsx index 60331a83d63..17c3da58fcb 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/MetricSelect.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/MetricSelect.tsx @@ -75,6 +75,7 @@ export default class MetricSelect extends React.PureComponent { return ( { ({ diff --git a/server/sonar-web/src/main/js/apps/settings/components/EmailForm.tsx b/server/sonar-web/src/main/js/apps/settings/components/EmailForm.tsx index d4aab3f1906..19ad53f17b2 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/EmailForm.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/EmailForm.tsx @@ -150,7 +150,7 @@ class EmailForm extends React.PureComponent {