-
Notifications
You must be signed in to change notification settings - Fork 471
Open
Description
Currently there is a strong dependency on Javascript with the modal component, especially with animations and disabling scroll. Both can be done with pure CSS instead.
-
Animations can be done with CSS transitions
-
Disabling scroll can be achieved with CSS
:has
pseudo-class.
:has
is relatively new in terms of browser support, but it seems to be used in the codebase already so it's probably not a concern.
Here is a link to the demo on CodePen.
Let me know what you think. If you like the idea, I can submit a PR.
lucaslarroche, saasc3l, EduardoDoSomeCode and cayter
Metadata
Metadata
Assignees
Labels
No labels