@@ -40,8 +40,8 @@ type ControlSlot = {
40
40
icon : IconValue
41
41
onClick : ( e : Event ) => void
42
42
disabled : boolean
43
- ariaLabel : string
44
- ariaDisabled : boolean
43
+ 'aria-label' : string
44
+ 'aria-disabled' : boolean
45
45
}
46
46
47
47
export type VPaginationSlots = {
@@ -264,8 +264,8 @@ export const VPagination = genericComponent<VPaginationSlots>()({
264
264
icon : true ,
265
265
disabled : ! ! props . disabled || + props . length < 2 ,
266
266
color : isActive ? props . activeColor : props . color ,
267
- ariaCurrent : isActive ,
268
- ariaLabel : t ( isActive ? props . currentPageAriaLabel : props . pageAriaLabel , item ) ,
267
+ 'aria-current' : isActive ,
268
+ 'aria-label' : t ( isActive ? props . currentPageAriaLabel : props . pageAriaLabel , item ) ,
269
269
onClick : ( e : Event ) => setValue ( e , item ) ,
270
270
} ,
271
271
}
@@ -282,29 +282,29 @@ export const VPagination = genericComponent<VPaginationSlots>()({
282
282
icon : isRtl . value ? props . lastIcon : props . firstIcon ,
283
283
onClick : ( e : Event ) => setValue ( e , start . value , 'first' ) ,
284
284
disabled : prevDisabled ,
285
- ariaLabel : t ( props . firstAriaLabel ) ,
286
- ariaDisabled : prevDisabled ,
285
+ 'aria-label' : t ( props . firstAriaLabel ) ,
286
+ 'aria-disabled' : prevDisabled ,
287
287
} : undefined ,
288
288
prev : {
289
289
icon : isRtl . value ? props . nextIcon : props . prevIcon ,
290
290
onClick : ( e : Event ) => setValue ( e , page . value - 1 , 'prev' ) ,
291
291
disabled : prevDisabled ,
292
- ariaLabel : t ( props . previousAriaLabel ) ,
293
- ariaDisabled : prevDisabled ,
292
+ 'aria-label' : t ( props . previousAriaLabel ) ,
293
+ 'aria-disabled' : prevDisabled ,
294
294
} ,
295
295
next : {
296
296
icon : isRtl . value ? props . prevIcon : props . nextIcon ,
297
297
onClick : ( e : Event ) => setValue ( e , page . value + 1 , 'next' ) ,
298
298
disabled : nextDisabled ,
299
- ariaLabel : t ( props . nextAriaLabel ) ,
300
- ariaDisabled : nextDisabled ,
299
+ 'aria-label' : t ( props . nextAriaLabel ) ,
300
+ 'aria-disabled' : nextDisabled ,
301
301
} ,
302
302
last : props . showFirstLastPage ? {
303
303
icon : isRtl . value ? props . firstIcon : props . lastIcon ,
304
304
onClick : ( e : Event ) => setValue ( e , start . value + length . value - 1 , 'last' ) ,
305
305
disabled : nextDisabled ,
306
- ariaLabel : t ( props . lastAriaLabel ) ,
307
- ariaDisabled : nextDisabled ,
306
+ 'aria-label' : t ( props . lastAriaLabel ) ,
307
+ 'aria-disabled' : nextDisabled ,
308
308
} : undefined ,
309
309
}
310
310
} )
0 commit comments