aria: add role dialog (#13084)

pull/13102/head
Jérôme Botineau 2018-10-18 13:09:06 +02:00 committed by hetech
parent 6ae54e5230
commit 97728bddb5
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@
@after-leave="afterLeave">
<div class="el-dialog__wrapper" v-show="visible" @click.self="handleWrapperClick">
<div
role="dialog"
aria-modal="true"
:aria-label="title || 'dialog'"
class="el-dialog"
:class="[{ 'is-fullscreen': fullscreen, 'el-dialog--center': center }, customClass]"
ref="dialog"