aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2022-08-05 14:59:48 +0200
committersonartech <sonartech@sonarsource.com>2022-08-08 20:03:03 +0000
commit3294c4d4f3ca431d0a3744c6331f5164d5a06545 (patch)
treece0ef29846b1c6d25a87fd174741603b3783c2b6 /server/sonar-web
parentaf86054979ef0a46800238e22fa15c8aff02759b (diff)
downloadsonarqube-3294c4d4f3ca431d0a3744c6331f5164d5a06545.tar.gz
sonarqube-3294c4d4f3ca431d0a3744c6331f5164d5a06545.zip
SONAR-16731 [891581] Elements must only use allowed ARIA attributes
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx b/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
index 110a5ee0fd3..563e250a7c2 100644
--- a/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
+++ b/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
@@ -63,7 +63,7 @@ export class HomePageSelect extends React.PureComponent<Props> {
};
render() {
- const { currentPage, currentUser } = this.props;
+ const { className, currentPage, currentUser } = this.props;
if (!isLoggedIn(currentUser)) {
return null;
@@ -81,13 +81,14 @@ export class HomePageSelect extends React.PureComponent<Props> {
{isDefault ? (
<span
aria-label={tooltip}
- className={classNames('display-inline-block', this.props.className)}>
+ className={classNames('display-inline-block', className)}
+ role="img">
<HomeIcon filled={isChecked} />
</span>
) : (
<ButtonLink
aria-label={tooltip}
- className={classNames('link-no-underline', 'set-homepage-link', this.props.className)}
+ className={classNames('link-no-underline', 'set-homepage-link', className)}
onClick={isChecked ? this.handleReset : this.handleClick}
innerRef={node => (this.buttonNode = node)}>
<HomeIcon filled={isChecked} />