- Clone this repo
npm install
npm run start
The page that opens will have a few seconds lag when it first opens, visible in Firefox profiler.
There are two ways to fix this:
- in
Word.tsx
, replace<label>
with something else like<>
or<span>
or<div>
. OR - in
Sentence.astro
change the CSS to totally not render the hover nodes:- for
.sentence-annotations
replacedisplay: block; visibility: hidden;
withdisplay: none;
and - for
.hover-area:hover .sentence-annotations
replacevisibility: visible;
withdisplay: block
- for
I understand why the second method works but why does the first solution work? What's wrong with <label>
?