From: Viktor Vorona Date: Thu, 5 Oct 2023 09:58:17 +0000 (+0200) Subject: SONAR-20177 fix spinner sr-only state overflowing container X-Git-Tag: 10.3.0.82913~254 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e895b3ff3b59eb582e5408bcc765bd505f7dd2e;p=sonarqube.git SONAR-20177 fix spinner sr-only state overflowing container --- diff --git a/server/sonar-web/design-system/src/components/Spinner.tsx b/server/sonar-web/design-system/src/components/Spinner.tsx index efe6c2ed378..4e0b4305c6e 100644 --- a/server/sonar-web/design-system/src/components/Spinner.tsx +++ b/server/sonar-web/design-system/src/components/Spinner.tsx @@ -50,12 +50,12 @@ export function Spinner(props: React.PropsWithChildren) { return ( <> -
- - {loading && {ariaLabel}} - +
+
+ + {loading && {ariaLabel}} + +
{!loading && (children ?? (placeholder && ) ?? null)} 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 b383c11c39b..f12e392fd28 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,13 +55,17 @@ exports[`should render with primary and secondary buttons 1`] = ` class="emotion-0 emotion-1" >
+ class="sw-overflow-hidden sw-sr-only" + > +
+