From 113eb66f6cd205e4fbf8edbc22c2112985f85b28 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Thu, 20 Jun 2024 13:05:32 -0500 Subject: [PATCH 1/2] fix(Spinner): update visually hidden container to span --- packages/react/src/Spinner/Spinner.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react/src/Spinner/Spinner.tsx b/packages/react/src/Spinner/Spinner.tsx index c980c506be8..33f7e1a6ddd 100644 --- a/packages/react/src/Spinner/Spinner.tsx +++ b/packages/react/src/Spinner/Spinner.tsx @@ -57,7 +57,11 @@ function Spinner({size: sizeKey = 'medium', srText = 'Loading', 'aria-label': ar vectorEffect="non-scaling-stroke" /> - {hasHiddenLabel ? {srText} : null} + {hasHiddenLabel ? ( + + {srText} + + ) : null} ) } From 723217fefa726b897ad297b9afe440d2c0b4232b Mon Sep 17 00:00:00 2001 From: Josh Black Date: Thu, 20 Jun 2024 13:56:28 -0500 Subject: [PATCH 2/2] chore: update snpashots --- .../__snapshots__/Autocomplete.test.tsx.snap | 4 +- .../__snapshots__/TextInput.test.tsx.snap | 80 +++++++++---------- .../TextInputWithTokens.test.tsx.snap | 80 +++++++++---------- 3 files changed, 82 insertions(+), 82 deletions(-) diff --git a/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap index be8b5ad1be1..d14c31a9576 100644 --- a/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap @@ -402,12 +402,12 @@ exports[`snapshots renders a loading state 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ , diff --git a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 950abfd0af7..701b6f458da 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -4128,12 +4128,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -4342,12 +4342,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -4399,12 +4399,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -4614,12 +4614,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -4867,12 +4867,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -4924,12 +4924,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -5177,12 +5177,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -5234,12 +5234,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -5487,12 +5487,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -5544,12 +5544,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -5798,12 +5798,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6021,12 +6021,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6108,12 +6108,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6362,12 +6362,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6633,12 +6633,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6720,12 +6720,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -6982,12 +6982,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -7069,12 +7069,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -7338,12 +7338,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -7425,12 +7425,12 @@ exports[`TextInput renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ diff --git a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap index 21b8a0695d4..93bba2847fa 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap @@ -7020,12 +7020,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -7415,12 +7415,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -7882,12 +7882,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -8688,12 +8688,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -9122,12 +9122,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -9589,12 +9589,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -10023,12 +10023,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -10490,12 +10490,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -10924,12 +10924,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -11391,12 +11391,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -12236,12 +12236,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -12640,12 +12640,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -13137,12 +13137,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -13982,12 +13982,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -14430,12 +14430,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -14927,12 +14927,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -15370,12 +15370,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -15867,12 +15867,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -16308,12 +16308,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+ @@ -16805,12 +16805,12 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` vectorEffect="non-scaling-stroke" /> -
Loading -
+