[improvement] List: improve accessibility

This commit is contained in:
陈嘉涵 2019-05-25 12:09:33 +08:00
parent cea1632927
commit a7e346ca0f
3 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
对以下组件增加了无障碍访问的支持:
- List
- Dialog
- Slider
- NoticeBar

View File

@ -130,7 +130,7 @@ export default sfc({
render(h) {
return (
<div class={bem()}>
<div class={bem()} role="feed" aria-busy={this.loading}>
{this.direction === 'down' && this.slots()}
{this.loading && (
<div class={bem('loading')} key="loading">

View File

@ -15,7 +15,7 @@ exports[`renders demo correctly 1`] = `
<div class="van-pull-refresh">
<div class="van-pull-refresh__track" style="transition: 0ms;">
<div class="van-pull-refresh__head"></div>
<div class="van-list"></div>
<div role="feed" class="van-list"></div>
</div>
</div>
</div>