Browse Source

aria: add role dialog (#13084)

Jérôme Botineau 6 năm trước cách đây
mục cha
commit
97728bddb5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      packages/dialog/src/component.vue

+ 3 - 0
packages/dialog/src/component.vue

@@ -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"