Skip to content

Commit

Permalink
fix(b-modal): ensure header is read for accessibility with JAWS (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored and jacobmllr95 committed Jul 19, 2019
1 parent 8104250 commit 6a9d0ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/modal/modal.js
Expand Up @@ -813,9 +813,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
class: this.contentClass,
attrs: {
role: 'document',
id: this.safeId('__BV_modal_content_'),
'aria-labelledby': this.hideHeader ? null : this.safeId('__BV_modal_header_'),
'aria-describedby': this.safeId('__BV_modal_body_')
id: this.safeId('__BV_modal_content_')
}
},
[header, body, footer]
Expand Down Expand Up @@ -848,7 +846,9 @@ export const BModal = /*#__PURE__*/ Vue.extend({
role: 'dialog',
tabindex: '-1',
'aria-hidden': this.isVisible ? null : 'true',
'aria-modal': this.isVisible ? 'true' : null
'aria-modal': this.isVisible ? 'true' : null,
'aria-labelledby': this.hideHeader ? null : this.safeId('__BV_modal_header_'),
'aria-describedby': this.safeId('__BV_modal_body_')
},
on: { keydown: this.onEsc, click: this.onClickOut }
},
Expand Down

0 comments on commit 6a9d0ce

Please sign in to comment.