Skip to content

Commit 80e154b

Browse files
authored
fix(VListItem): correct role when item is a link (#22137)
fixes #22086
1 parent d110c0a commit 80e154b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VList/VListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const VListItem = genericComponent<VListItemSlots>()({
152152
props.link !== false &&
153153
(props.link || link.isClickable.value || isSelectable.value)
154154
)
155-
const role = computed(() => list ? (isSelectable.value ? 'option' : 'listitem') : undefined)
155+
const role = computed(() => list ? (isLink.value ? 'link' : isSelectable.value ? 'option' : 'listitem') : undefined)
156156
const ariaSelected = computed(() => {
157157
if (!isSelectable.value) return undefined
158158
return root.activatable.value ? isActivated.value

0 commit comments

Comments
 (0)