From aa6ba0e49b0aff218b56cf1bce15b3ed197e6454 Mon Sep 17 00:00:00 2001 From: Abel Toledano Date: Tue, 6 May 2025 14:00:28 +0200 Subject: [PATCH 1/4] feat(Text): add testid --- src/text.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/text.tsx b/src/text.tsx index e0eb09b11b..05ff5a2ed7 100644 --- a/src/text.tsx +++ b/src/text.tsx @@ -201,7 +201,7 @@ export const Text = ({ 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, 'aria-live': ariaLive, - ...getPrefixedDataAttributes(dataAttributes, 'Text'), + ...getPrefixedDataAttributes(dataAttributes, dataAttributes?.testid ?? 'Text'), style: { ...sizeVars, ...textVars, @@ -296,7 +296,7 @@ export const Text10 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetP ); @@ -308,7 +308,7 @@ export const Text9 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -320,7 +320,7 @@ export const Text8 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -332,7 +332,7 @@ export const Text7 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -344,7 +344,7 @@ export const Text6 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -356,7 +356,7 @@ export const Text5 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -366,7 +366,7 @@ export const Text4 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -375,7 +375,7 @@ export const Text3 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -384,7 +384,7 @@ export const Text2 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu ); @@ -393,7 +393,7 @@ export const Text1 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu ); From 76b119f69e132c87c05e4dbb707b8cde30c65214 Mon Sep 17 00:00:00 2001 From: Abel Toledano Date: Wed, 7 May 2025 09:11:30 +0200 Subject: [PATCH 2/4] dont override componentname --- src/text.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.tsx b/src/text.tsx index 05ff5a2ed7..08dd52e20f 100644 --- a/src/text.tsx +++ b/src/text.tsx @@ -201,7 +201,7 @@ export const Text = ({ 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, 'aria-live': ariaLive, - ...getPrefixedDataAttributes(dataAttributes, dataAttributes?.testid ?? 'Text'), + ...getPrefixedDataAttributes(dataAttributes, 'Text'), style: { ...sizeVars, ...textVars, From d7dc2b2c52b14e684296325fa06b7ba4957ee14f Mon Sep 17 00:00:00 2001 From: Abel Toledano Date: Wed, 7 May 2025 09:14:24 +0200 Subject: [PATCH 3/4] dont override componentname --- src/text.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/text.tsx b/src/text.tsx index 08dd52e20f..788ef81c91 100644 --- a/src/text.tsx +++ b/src/text.tsx @@ -296,7 +296,7 @@ export const Text10 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetP ); @@ -308,7 +308,7 @@ export const Text9 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -320,7 +320,7 @@ export const Text8 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -332,7 +332,7 @@ export const Text7 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -344,7 +344,7 @@ export const Text6 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -356,7 +356,7 @@ export const Text5 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -366,7 +366,7 @@ export const Text4 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -375,7 +375,7 @@ export const Text3 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -384,7 +384,7 @@ export const Text2 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu ); @@ -393,7 +393,7 @@ export const Text1 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu ); From 7c4cfbe1b04911fe20125fd274b36d2e7c55893a Mon Sep 17 00:00:00 2001 From: Abel Toledano Date: Wed, 7 May 2025 09:15:00 +0200 Subject: [PATCH 4/4] dont override componentname --- src/text.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/text.tsx b/src/text.tsx index 788ef81c91..230259cdfe 100644 --- a/src/text.tsx +++ b/src/text.tsx @@ -296,7 +296,7 @@ export const Text10 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetP ); @@ -308,7 +308,7 @@ export const Text9 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -320,7 +320,7 @@ export const Text8 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -332,7 +332,7 @@ export const Text7 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -344,7 +344,7 @@ export const Text6 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -356,7 +356,7 @@ export const Text5 = ({dataAttributes, forceMobileSizes, ...props}: TextPresetPr ); @@ -366,7 +366,7 @@ export const Text4 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -375,7 +375,7 @@ export const Text3 = ({dataAttributes, forceMobileSizes, ...props}: LightRegular ); @@ -384,7 +384,7 @@ export const Text2 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu ); @@ -393,7 +393,7 @@ export const Text1 = ({dataAttributes, forceMobileSizes, ...props}: RegularMediu );