aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
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} />