Skip to content

Commit 8c472f0

Browse files
mash19tangbc
authored andcommitted
Corrected listitem role.
1 parent 6aa17bc commit 8c472f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

demos/vfor-mode-with-aria/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
:index="item.index"
2222
:height="size"
2323
:info="item.info"
24-
role="list-item"
24+
role="listitem"
2525
:aria-posinset="item.index"
2626
:aria-setsize="setSize"
2727
/>

demos/vfor-mode-with-aria/build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/aria.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe(theme, () => {
2020
v-for="(item, index) in items"
2121
:key="index"
2222
style="height: 40px; line-height: 40px;"
23-
role="list-item"
23+
role="listitem"
2424
:aria-setsize="setSize"
2525
:aria-posinset="index"
2626
>
@@ -55,7 +55,7 @@ describe(theme, () => {
5555
it('check to see if aria roles and states are set on list items', () => {
5656
const itemFrags = wrapper.findAll('.for-item')
5757
const allListItemsTest = itemFrags.wrappers.every((x, i) => {
58-
return x.attributes('role') === 'list-item'
58+
return x.attributes('role') === 'listitem'
5959
&& x.attributes('aria-setsize') === `${listCount}`
6060
&& x.attributes('aria-posinset') === `${i}`
6161
})

0 commit comments

Comments
 (0)