-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Describe the bug
I've been using this library on my personal web portfolio for over a year and I find it really cool. However, there's a weird bug someone helped me notice recently, where the notation component highlight overflows its container and hides parts of text it isn't related to.
To Reproduce
Steps to reproduce the behavior:
- Wrap a couple of words with
RoughNotation(almost alltypesare affects) in a large paragraph, and launch the app in browser. - Try adjusting the screen size using dev tools till a point where the wrapped words end up on different lines.
- You'll notice that the notation still highlights both the words, but spans across the entire width of both lines while hiding all the other text behind it.
Expected behaviour
RoughNotation should only highlight the words that are wrapped and not affect the rest.
Screenshots
Desktop:
- OS: MacOS Sequoia (15.3.1)
- Browser: Chrome
When on different lines:
Additional context
I've fixed this temporarily in my portfolio by creating a safe wrapper that does not allow annotated words to wrap, but we probably need to fix the root cause.
Amnish04/web-portfolio#18
Metadata
Metadata
Assignees
Labels
No labels
