From: Ambroise Date: Thu, 12 Jan 2023 15:33:41 +0000 (+0100) Subject: SONAR-17845 [1095656] Fix list status not being automatically announced X-Git-Tag: 9.9.0.65466~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27d238057534025c145e233de36f419f3dce66ed;p=sonarqube.git SONAR-17845 [1095656] Fix list status not being automatically announced --- diff --git a/server/sonar-web/src/main/js/components/controls/ListFooter.tsx b/server/sonar-web/src/main/js/components/controls/ListFooter.tsx index 31225984a7c..30ae1741a89 100644 --- a/server/sonar-web/src/main/js/components/controls/ListFooter.tsx +++ b/server/sonar-web/src/main/js/components/controls/ListFooter.tsx @@ -100,13 +100,15 @@ export default function ListFooter(props: ListFooterProps) { className )} > - {total !== undefined - ? translateWithParameters( - 'x_of_y_shown', - formatMeasure(count, 'INT', null), - formatMeasure(total, 'INT', null) - ) - : translateWithParameters('x_show', formatMeasure(count, 'INT', null))} + + {total !== undefined + ? translateWithParameters( + 'x_of_y_shown', + formatMeasure(count, 'INT', null), + formatMeasure(total, 'INT', null) + ) + : translateWithParameters('x_show', formatMeasure(count, 'INT', null))} + {button} {loading && } diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ListFooter-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ListFooter-test.tsx.snap index 0ee8385503f..d16290f172b 100644 --- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ListFooter-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ListFooter-test.tsx.snap @@ -5,7 +5,11 @@ exports[`should render correctly: default 1`] = ` className="list-footer spacer-top note text-center" tabIndex={-1} > - x_of_y_shown.3.5 + + x_of_y_shown.3.5 +