Skip to content

Commit

Permalink
Merge pull request #123 from sowasred2012/fix-aria-hidden
Browse files Browse the repository at this point in the history
Don't set `aria-hidden` on the `body` tag
  • Loading branch information
sowasred2012 authored Jul 12, 2021
2 parents 4d04de8 + f194333 commit e5b2de6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@canonical/cookie-policy",
"version": "3.2.0",
"version": "3.3.0",
"description": "A script and style sheet that displays a cookie policy notification",
"main": "build/js/module.js",
"iife": "build/js/cookie-policy.js",
Expand Down
2 changes: 0 additions & 2 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const cookiePolicy = (callback = null) => {
cookiePolicyContainer = document.createElement('dialog');
cookiePolicyContainer.classList.add('cookie-policy');
cookiePolicyContainer.setAttribute('open', true);
document.body.setAttribute('aria-hidden', true);
document.body.appendChild(cookiePolicyContainer);
const notifiation = new Notification(
cookiePolicyContainer,
Expand All @@ -37,7 +36,6 @@ export const cookiePolicy = (callback = null) => {
callback();
}
document.body.removeChild(cookiePolicyContainer);
document.body.removeAttribute('aria-hidden');
cookiePolicyContainer = null;
};

Expand Down

0 comments on commit e5b2de6

Please sign in to comment.