@@ -133,17 +133,15 @@ export const Stepper = React.memo(
133
133
134
134
const createPanel = ( ) => {
135
135
return stepperPanels ( ) . map ( ( step , index ) => {
136
- const panelProps = mergeProps (
137
- {
138
- className : classNames ( cx ( 'stepper.header' , { isStepActive, isItemDisabled, step, index, headerPosition : props . headerPosition , orientation : props . orientation } ) ) ,
139
- 'aria-current' : isStepActive ( index ) && 'step' ,
140
- role : 'presentation' ,
141
- 'data-p-highlight' : isStepActive ( index ) ,
142
- 'data-p-disabled' : isItemDisabled ( index ) ,
143
- 'data-p-active' : isStepActive ( index )
144
- } ,
145
- ptm ( 'stepperpanel' )
146
- ) ;
136
+ const panelProps = mergeProps ( {
137
+ className : classNames ( cx ( 'stepper.header' , { isStepActive, isItemDisabled, step, index, headerPosition : props . headerPosition , orientation : props . orientation } ) ) ,
138
+ 'aria-current' : isStepActive ( index ) && 'step' ,
139
+ role : 'presentation' ,
140
+ 'data-p-highlight' : isStepActive ( index ) ,
141
+ 'data-p-disabled' : isItemDisabled ( index ) ,
142
+ 'data-p-active' : isStepActive ( index ) ,
143
+ ...getStepPT ( step , 'header' , index )
144
+ } ) ;
147
145
148
146
return (
149
147
< li key = { getStepKey ( step , index ) } { ...panelProps } >
@@ -233,19 +231,16 @@ export const Stepper = React.memo(
233
231
return stepperPanels ( ) . map ( ( step , index ) => {
234
232
const contentRef = React . createRef ( null ) ;
235
233
236
- const navProps = mergeProps (
237
- {
238
- ref : navRef ,
239
- className : cx ( 'panel' , { props, index, isStepActive } ) ,
240
- 'aria-current' : isStepActive ( index ) && 'step' ,
241
- ...getStepPT ( step , 'root' , index ) ,
242
- ...getStepPT ( step , 'panel' , index ) ,
243
- 'data-p-highlight' : isStepActive ( index ) ,
244
- 'data-p-disabled' : isItemDisabled ( index ) ,
245
- 'data-p-active' : isStepActive ( index )
246
- } ,
247
- ptm ( 'nav' )
248
- ) ;
234
+ const navProps = mergeProps ( {
235
+ ref : navRef ,
236
+ className : cx ( 'stepper.panel' , { props, index, isStepActive } ) ,
237
+ 'aria-current' : isStepActive ( index ) && 'step' ,
238
+ ...getStepPT ( step , 'root' , index ) ,
239
+ ...getStepPT ( step , 'panel' , index ) ,
240
+ 'data-p-highlight' : isStepActive ( index ) ,
241
+ 'data-p-disabled' : isItemDisabled ( index ) ,
242
+ 'data-p-active' : isStepActive ( index )
243
+ } ) ;
249
244
250
245
const headerProps = mergeProps ( {
251
246
className : cx ( 'stepper.header' , { step, isStepActive, isItemDisabled, index } ) ,
0 commit comments