[improvement] Dialog: improve accessibility

This commit is contained in:
陈嘉涵
2019-05-25 10:44:17 +08:00
parent eb4b866906
commit 5ee4c2f4af
4 changed files with 23 additions and 5 deletions

View File

@@ -127,7 +127,12 @@ export default sfc({
return (
<transition name="van-dialog-bounce">
<div vShow={this.value} class={[bem(), this.className]}>
<div
vShow={this.value}
role="dialog"
aria-labelledby={title || message}
class={[bem(), this.className]}
>
{Title}
{Content}
{ButtonGroup}