Skip to content

Commit

Permalink
Fix hidden-text user-selection for Counter.svelte in default template (
Browse files Browse the repository at this point in the history
  • Loading branch information
botanegg authored Jan 19, 2022
1 parent 86f8f8a commit 02a12af
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div class="counter-viewport">
<div class="counter-digits" style="transform: translate(0, {100 * offset}%)">
<strong style="top: -100%" aria-hidden="true">{Math.floor($displayed_count + 1)}</strong>
<strong class="hidden" aria-hidden="true">{Math.floor($displayed_count + 1)}</strong>
<strong>{Math.floor($displayed_count)}</strong>
</div>
</div>
Expand Down Expand Up @@ -94,4 +94,9 @@
width: 100%;
height: 100%;
}
.hidden {
top: -100%;
user-select: none;
}
</style>

0 comments on commit 02a12af

Please sign in to comment.