We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8d499 commit 983e02fCopy full SHA for 983e02f
js/src/modal.js
@@ -252,6 +252,7 @@ class Modal {
252
this._element.style.display = 'block'
253
this._element.removeAttribute('aria-hidden')
254
this._element.setAttribute('aria-modal', true)
255
+ this._element.setAttribute('role', 'dialog')
256
this._element.scrollTop = 0
257
258
if (modalBody) {
@@ -327,6 +328,7 @@ class Modal {
327
328
this._element.style.display = 'none'
329
this._element.setAttribute('aria-hidden', true)
330
this._element.removeAttribute('aria-modal')
331
+ this._element.removeAttribute('role')
332
this._isTransitioning = false
333
this._showBackdrop(() => {
334
document.body.classList.remove(CLASS_NAME_OPEN)
0 commit comments