Skip to content

Commit b9c68aa

Browse files
Merge pull request #119 from patrickhlauke/patrickhlauke-fix
Reintroduce removal of `aria-hidden`, bump to 5.4.1
2 parents 8b0c84c + 5485255 commit b9c68aa

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

a11y-dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
this.dialog.showModal(event instanceof Event ? void 0 : event);
134134
} else {
135135
this.dialog.setAttribute('open', '');
136-
136+
this.container.removeAttribute('aria-hidden');
137+
137138
// Iterate over the targets to disable them by setting their `aria-hidden`
138139
// attribute to `true` and, if present, storing the current value of `aria-hidden`
139140
this._targets.forEach(function(target) {

a11y-dialog.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
this.dialog.showModal(event instanceof Event ? void 0 : event);
134134
} else {
135135
this.dialog.setAttribute('open', '');
136-
136+
this.container.removeAttribute('aria-hidden');
137+
137138
// Iterate over the targets to disable them by setting their `aria-hidden`
138139
// attribute to `true` and, if present, storing the current value of `aria-hidden`
139140
this._targets.forEach(function(target) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "a11y-dialog",
3-
"version": "5.4.0",
3+
"version": "5.4.1",
44
"description": "A tiny script to make dialog windows accessible to assistive technology users.",
55
"homepage": "https://github.com/edenspiekermann/a11y-dialog",
66
"license": "MIT",

0 commit comments

Comments
 (0)