From af1cc73842e732edd48ec57646c2639fc67c5ae9 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Fri, 21 Jun 2024 13:21:33 -0500 Subject: [PATCH] fix(Spinner): update container to use span instead of div (#4692) * fix(Spinner): update container to use span instead of div * test: update snapshots --------- Co-authored-by: Josh Black --- packages/react/src/Spinner/Spinner.tsx | 2 +- .../__snapshots__/Autocomplete.test.tsx.snap | 4 +- .../__snapshots__/TextInput.test.tsx.snap | 80 +++++++++---------- .../TextInputWithTokens.test.tsx.snap | 80 +++++++++---------- 4 files changed, 83 insertions(+), 83 deletions(-) diff --git a/packages/react/src/Spinner/Spinner.tsx b/packages/react/src/Spinner/Spinner.tsx index 33f7e1a6ddd..6a4ebe096a1 100644 --- a/packages/react/src/Spinner/Spinner.tsx +++ b/packages/react/src/Spinner/Spinner.tsx @@ -29,7 +29,7 @@ function Spinner({size: sizeKey = 'medium', srText = 'Loading', 'aria-label': ar return ( /* inline-flex removes the extra line height */ - + -
Loading -
+ , ] diff --git a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 701b6f458da..4b9c8473991 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -4094,7 +4094,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` className="c3" display="flex" > -
Loading -
+ , @@ -4308,7 +4308,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` className="c2" display="flex" > -
Loading -
+ -
Loading -
+ , @@ -4580,7 +4580,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` className="c3" display="flex" > -
Loading -
+ , @@ -4828,7 +4828,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , @@ -5138,7 +5138,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , @@ -5448,7 +5448,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , @@ -5759,7 +5759,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ , @@ -5987,7 +5987,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` className="c2" display="flex" > -
Loading -
+ -
Loading -
+ , @@ -6323,7 +6323,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ , @@ -6594,7 +6594,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , @@ -6943,7 +6943,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , @@ -7299,7 +7299,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` /> -
Loading -
+ -
Loading -
+ , diff --git a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap index 93bba2847fa..b2f31ba4456 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap @@ -6986,7 +6986,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` className="c9" display="flex" > -
Loading -
+ , @@ -7381,7 +7381,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` className="c2" display="flex" > -
Loading -
+
-
Loading -
+
, @@ -8654,7 +8654,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` className="c9" display="flex" > -
Loading -
+ , @@ -9083,7 +9083,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+
, @@ -9984,7 +9984,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+
, @@ -10885,7 +10885,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+
, @@ -12197,7 +12197,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+ , @@ -12606,7 +12606,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` className="c2" display="flex" > -
Loading -
+
-
Loading -
+ , @@ -13943,7 +13943,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+ , @@ -14391,7 +14391,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+ , @@ -15331,7 +15331,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+ , @@ -16269,7 +16269,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` /> -
Loading -
+
-
Loading -
+ ,