Skip to content

Commit 834a421

Browse files
authored
Merge pull request #458 from dfabreguette-ap/master
Add "aria-hidden" directive for accessibility support
2 parents 464f60e + f12849f commit 834a421

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/typed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ export default class Typed {
425425
if (this.cursor) return;
426426
this.cursor = document.createElement('span');
427427
this.cursor.className = 'typed-cursor';
428+
this.cursor.setAttribute('aria-hidden', true);
428429
this.cursor.innerHTML = this.cursorChar;
429430
this.el.parentNode &&
430431
this.el.parentNode.insertBefore(this.cursor, this.el.nextSibling);

0 commit comments

Comments
 (0)