aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2023-06-02 12:52:05 +0200
committersonartech <sonartech@sonarsource.com>2023-06-05 20:02:48 +0000
commit3722d4b6b7409e77da6016308f434a190fe503c0 (patch)
treec5411d835839826419eb5552ab984da5f64e7744 /server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx
parent81400607613b2a4a2bb4bcee875eb39c805b77c1 (diff)
downloadsonarqube-3722d4b6b7409e77da6016308f434a190fe503c0.tar.gz
sonarqube-3722d4b6b7409e77da6016308f434a190fe503c0.zip
SONAR-19391 Update ITs and improve a11y
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx6
1 files changed, 3 insertions, 3 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 caa4aa7f631..67075eabf84 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
@@ -102,7 +102,7 @@ export default function Sidebar(props: Props) {
/>
</FlagMessage>
)}
- <nav
+ <section
className="sw-flex sw-flex-col sw-gap-4 sw-p-4"
aria-label={translate('component_measures.navigation')}
>
@@ -116,7 +116,7 @@ export default function Sidebar(props: Props) {
active={isProjectOverview(selectedMetric)}
onClick={handleProjectOverviewClick}
>
- <BareButton>
+ <BareButton aria-current={isProjectOverview(selectedMetric)}>
{translate('component_measures.overview', PROJECT_OVERVEW, 'subnavigation')}
</BareButton>
</SubnavigationItem>
@@ -132,7 +132,7 @@ export default function Sidebar(props: Props) {
showFullMeasures={showFullMeasures}
/>
))}
- </nav>
+ </section>
</StyledSidebar>
);
}