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/apps/component-measures/sidebar/Sidebar.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap6
2 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx b/server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
index ce346568958..611320a1e92 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
+++ b/server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
@@ -58,7 +58,7 @@ export default class Sidebar extends React.PureComponent<Props, State> {
render() {
const { showFullMeasures } = this.props;
return (
- <div>
+ <nav aria-label={translate('secondary')}>
<A11ySkipTarget
anchor="measures_filters"
label={translate('component_measures.skip_to_filters')}
@@ -80,7 +80,7 @@ export default class Sidebar extends React.PureComponent<Props, State> {
showFullMeasures={showFullMeasures}
/>
))}
- </div>
+ </nav>
);
}
}
diff --git a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
index 75e622da8f5..fc32787d667 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
@@ -1,7 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should display two facets 1`] = `
-<div>
+<nav
+ aria-label="secondary"
+>
<A11ySkipTarget
anchor="measures_filters"
label="component_measures.skip_to_filters"
@@ -87,5 +89,5 @@ exports[`should display two facets 1`] = `
selected="duplicated_lines_density"
showFullMeasures={true}
/>
-</div>
+</nav>
`;