aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-03-22 13:07:24 +0100
committersonartech <sonartech@sonarsource.com>2023-03-22 20:04:06 +0000
commit25a549c3370b43ecad071469b05cad742c33e1d8 (patch)
treed90896c3b8b333ec17fcd3f757978866fd8abb26 /server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
parentd948b21f7bd1420ef873594c76652a81f2c75067 (diff)
downloadsonarqube-25a549c3370b43ecad071469b05cad742c33e1d8.tar.gz
sonarqube-25a549c3370b43ecad071469b05cad742c33e1d8.zip
SONAR-18870 Add labels for qualifier and visibility filters in project management page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx b/server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
index 344f574b8bb..0e5e903e1a6 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/Search.tsx
@@ -139,7 +139,7 @@ export class Search extends React.PureComponent<Props, State> {
};
renderQualifierOption = (option: LabelValueSelectOption) => (
- <div>
+ <div className="display-flex-center">
<QualifierIcon className="little-spacer-right" qualifier={option.value} />
{option.label}
</div>
@@ -162,6 +162,7 @@ export class Search extends React.PureComponent<Props, State> {
SingleValue: this.singleValueRenderer,
}}
options={this.getQualifierOptions()}
+ aria-label={translate('projects_management.filter_by_component')}
value={options.find((option) => option.value === this.props.qualifiers)}
/>
);
@@ -181,6 +182,7 @@ export class Search extends React.PureComponent<Props, State> {
onChange={this.handleVisibilityChange}
options={options}
isSearchable={false}
+ aria-label={translate('projects_management.filter_by_visibility')}
value={options.find((option) => option.value === (this.props.visibility || 'all'))}
/>
);