From 67a3d42f2042c9dd14079611de083ca2b1aa4549 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Fri, 18 Aug 2023 13:23:09 +0200 Subject: [PATCH] SONAR-19465 Hiding spinner when loading is not true --- server/sonar-web/design-system/src/components/Spinner.tsx | 8 ++------ .../__tests__/__snapshots__/ModalFooter-test.tsx.snap | 8 ++++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/server/sonar-web/design-system/src/components/Spinner.tsx b/server/sonar-web/design-system/src/components/Spinner.tsx index aa5db5e1415..56307583627 100644 --- a/server/sonar-web/design-system/src/components/Spinner.tsx +++ b/server/sonar-web/design-system/src/components/Spinner.tsx @@ -50,12 +50,8 @@ export function Spinner(props: React.PropsWithChildren) { return ( <> -
- +
+ {loading && {ariaLabel}}
diff --git a/server/sonar-web/design-system/src/components/modal/__tests__/__snapshots__/ModalFooter-test.tsx.snap b/server/sonar-web/design-system/src/components/modal/__tests__/__snapshots__/ModalFooter-test.tsx.snap index 13e1e90ab13..6e5b303b58c 100644 --- a/server/sonar-web/design-system/src/components/modal/__tests__/__snapshots__/ModalFooter-test.tsx.snap +++ b/server/sonar-web/design-system/src/components/modal/__tests__/__snapshots__/ModalFooter-test.tsx.snap @@ -55,11 +55,11 @@ exports[`should render with primary and secondary buttons 1`] = ` class="emotion-0 emotion-1" >
@@ -132,11 +132,11 @@ exports[`should render with secondary button 1`] = ` class="emotion-0 emotion-1" >
-- 2.39.5