Skip to content

Commit

Permalink
Merge pull request #5 from github/add--1px-margin-to-live-region-element
Browse files Browse the repository at this point in the history
add -1px margin to live region element
  • Loading branch information
keithamus authored Oct 10, 2024
2 parents dd45a06 + 7180231 commit 9b1105b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ariaNotify-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ if (!("ariaNotify" in Element.prototype)) {
connectedCallback() {
this.ariaLive = "polite";
this.ariaAtomic = "true";
this.style.marginLeft = "-1px";
this.style.marginTop = "-1px";
this.style.position = "absolute";
this.style.width = "1px";
this.style.height = "1px";
Expand Down

0 comments on commit 9b1105b

Please sign in to comment.