diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2023-06-02 12:52:05 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-05 20:02:48 +0000 |
commit | 3722d4b6b7409e77da6016308f434a190fe503c0 (patch) | |
tree | c5411d835839826419eb5552ab984da5f64e7744 /server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.tsx | |
parent | 81400607613b2a4a2bb4bcee875eb39c805b77c1 (diff) | |
download | sonarqube-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.tsx | 6 |
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> ); } |