-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SVG-based modal mode #248
Conversation
49d6fcb
to
ff2a1f4
Compare
It looks like the sizing of the opening is slightly off on some elements. I'm not sure if this is something we can control or not. Also, is there any way we could make masks of the text in the element to avoid the box entirely? This is definitely an elegant solution for working with nested elements, but I prefer the aesthetics of just having the text highlighted, as it was before. |
if (targetElement) { | ||
positionModalOpening(targetElement, modalOverlayOpening); | ||
|
||
this._onScreenChange = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why a private function starts empty and gets filled in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My goal here is to update this._onScreenChange
before calling addEventListener
with it. I'm open to ideas on making this a bit cleaner.
Would be great to have docs on the functions as well. Make doc automation later easier. |
ff2a1f4
to
5136a3c
Compare
Closes #197