Skip to content

Commit

Permalink
Merge pull request #458 from dfabreguette-ap/master
Browse files Browse the repository at this point in the history
Add "aria-hidden" directive for accessibility support
  • Loading branch information
mattboldt authored Jan 23, 2021
2 parents 464f60e + f12849f commit 834a421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typed.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ export default class Typed {
if (this.cursor) return;
this.cursor = document.createElement('span');
this.cursor.className = 'typed-cursor';
this.cursor.setAttribute('aria-hidden', true);
this.cursor.innerHTML = this.cursorChar;
this.el.parentNode &&
this.el.parentNode.insertBefore(this.cursor, this.el.nextSibling);
Expand Down

0 comments on commit 834a421

Please sign in to comment.