@@ -56,7 +56,6 @@ export type InternalButtonProps = Omit<ButtonProps, 'variant'> & {
5656 __title ?: string ;
5757 __emitPerformanceMarks ?: boolean ;
5858 __skipNativeAttributesWarnings ?: boolean ;
59- __hideFromTestUtils ?: boolean ;
6059} & InternalBaseComponentProps ;
6160
6261export const InternalButton = React . forwardRef (
@@ -99,7 +98,6 @@ export const InternalButton = React.forwardRef(
9998 __title,
10099 __emitPerformanceMarks = true ,
101100 __skipNativeAttributesWarnings,
102- __hideFromTestUtils = false ,
103101 analyticsAction = 'click' ,
104102 ...props
105103 } : InternalButtonProps ,
@@ -180,8 +178,7 @@ export const InternalButton = React.forwardRef(
180178 buttonContext . onClick ( { variant } ) ;
181179 } ;
182180
183- const buttonClass = clsx ( props . className , styles . root , styles [ `variant-${ variant } ` ] , {
184- [ testUtilStyles . root ] : ! __hideFromTestUtils ,
181+ const buttonClass = clsx ( props . className , styles . button , styles [ `variant-${ variant } ` ] , {
185182 [ styles . disabled ] : isNotInteractive ,
186183 [ styles [ 'disabled-with-reason' ] ] : isDisabledWithReason ,
187184 [ styles [ 'button-no-wrap' ] ] : ! wrapText ,
0 commit comments