Skip to content

Commit

Permalink
Add aria-hidden attribute (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjahr authored Mar 27, 2022
1 parent b930f39 commit 285ff8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion balancetext.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@
newText += lineText;
isHyphen = isSoftHyphen || Boolean(lineText.match(/(-|\u2014|\u2013)$/));
newText += isHyphen ? '<br data-owner="balance-text-hyphen" />'
: '<br data-owner="balance-text" />';
: '<br data-owner="balance-text" aria-hidden="true" />';
}
remainingText = remainingText.substr(splitIndex);
lineCharOffset = splitIndex;
Expand Down
2 changes: 1 addition & 1 deletion balancetext.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 285ff8f

Please sign in to comment.