aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/web-api/components/Search.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-22 17:11:21 +0100
committerGitHub <noreply@github.com>2016-12-22 17:11:21 +0100
commitbc07b29494abd5dff7875175df91df38d0b908ac (patch)
tree05f82f8ca3787011e2a0810e7d85c9d81e4b222f /server/sonar-web/src/main/js/apps/web-api/components/Search.js
parente52ca10a4a1b07d05c894e0d8564ffa1b5af3e47 (diff)
downloadsonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.tar.gz
sonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.zip
upgrade eslint and its plugins, tune rules (#1481)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/web-api/components/Search.js')
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Search.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Search.js b/server/sonar-web/src/main/js/apps/web-api/components/Search.js
index 0784a4a33ea..51f29c7dfa6 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Search.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Search.js
@@ -19,7 +19,6 @@
*/
import _ from 'underscore';
import React from 'react';
-
import Checkbox from '../../../components/controls/Checkbox';
import { TooltipsContainer } from '../../../components/mixins/tooltips-mixin';
import { translate } from '../../../helpers/l10n';
@@ -66,6 +65,9 @@ export default class Search extends React.Component {
<span
style={{ cursor: 'pointer' }}
title={translate('api_documentation.internal_tooltip')}
+ tabIndex="0"
+ role="checkbox"
+ aria-checked={showInternal ? 'true' : 'false'}
onClick={onToggleInternal}>
Show Internal API
</span>
@@ -85,6 +87,9 @@ export default class Search extends React.Component {
<span
style={{ cursor: 'pointer' }}
title={translate('api_documentation.deprecation_tooltip')}
+ tabIndex="0"
+ role="checkbox"
+ aria-checked={showOnlyDeprecated ? 'true' : 'false'}
onClick={onToggleDeprecated}>
Show Only Deprecated API
</span>