mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] Dialog: improve accessibility
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user