File tree Expand file tree Collapse file tree 3 files changed +125
-125
lines changed Expand file tree Collapse file tree 3 files changed +125
-125
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ export default function Step(props: StepProps) {
98
98
const accessibilityProps : {
99
99
role ?: string ;
100
100
tabIndex ?: number ;
101
- onClick ?: React . MouseEventHandler < HTMLDivElement > ;
102
- onKeyDown ?: React . KeyboardEventHandler < HTMLDivElement > ;
101
+ onClick ?: React . MouseEventHandler < HTMLLIElement > ;
102
+ onKeyDown ?: React . KeyboardEventHandler < HTMLLIElement > ;
103
103
} = { } ;
104
104
105
105
if ( clickable ) {
@@ -233,7 +233,7 @@ export default function Step(props: StepProps) {
233
233
) ;
234
234
235
235
let stepNode : React . ReactNode = (
236
- < div
236
+ < li
237
237
{ ...restItemProps }
238
238
{ ...accessibilityProps }
239
239
className = { classString }
@@ -244,7 +244,7 @@ export default function Step(props: StepProps) {
244
244
} }
245
245
>
246
246
{ itemWrapperRender ? itemWrapperRender ( wrapperNode ) : wrapperNode }
247
- </ div >
247
+ </ li >
248
248
) ;
249
249
250
250
if ( itemRender ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export type StepItem = {
43
43
title ?: React . ReactNode ;
44
44
classNames ?: Partial < Record < ItemSemanticName , string > > ;
45
45
styles ?: Partial < Record < ItemSemanticName , React . CSSProperties > > ;
46
- } & Pick < React . HtmlHTMLAttributes < HTMLDivElement > , 'onClick' | 'className' | 'style' > ;
46
+ } & Pick < React . HtmlHTMLAttributes < HTMLLIElement > , 'onClick' | 'className' | 'style' > ;
47
47
48
48
export type StepIconRender = ( info : {
49
49
index : number ;
@@ -212,7 +212,7 @@ export default function Steps(props: StepsProps) {
212
212
} ;
213
213
214
214
return (
215
- < div
215
+ < ol
216
216
className = { classString }
217
217
style = { {
218
218
...style ,
@@ -223,6 +223,6 @@ export default function Steps(props: StepsProps) {
223
223
< StepsContext . Provider value = { stepIconContext } >
224
224
{ mergedItems . map < React . ReactNode > ( renderStep ) }
225
225
</ StepsContext . Provider >
226
- </ div >
226
+ </ ol >
227
227
) ;
228
228
}
You can’t perform that action at this time.
0 commit comments