Skip to content

Commit

Permalink
fix(VDialog): change the role from "document" to "dialog"
Browse files Browse the repository at this point in the history
  • Loading branch information
knknk98 committed Jan 13, 2022
1 parent 9e2edf3 commit eb2c60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VDialog/VDialog.ts
Expand Up @@ -253,7 +253,7 @@ export default baseMixins.extend({
this.$createElement('div', {
class: this.contentClasses,
attrs: {
role: 'document',
role: 'dialog',
tabindex: this.isActive ? 0 : undefined,
...this.getScopeIdAttrs(),
},
Expand Down
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`VDialog.ts should only set tabindex if active 1`] = `
<div role="document"
<div role="dialog"
class="v-dialog__content"
style="z-index: 0;"
>
Expand All @@ -13,7 +13,7 @@ exports[`VDialog.ts should only set tabindex if active 1`] = `
`;

exports[`VDialog.ts should only set tabindex if active 2`] = `
<div role="document"
<div role="dialog"
class="v-dialog__content v-dialog__content--active"
style="z-index: 202; z-index: 202;"
tabindex="0"
Expand Down

0 comments on commit eb2c60b

Please sign in to comment.