Version 2.0 Discussion #14
Locked
andria-dev
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
@ChrisBrownie55 onDismiss reads better |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ChrisBrownie55 i believe wicg-inert causes a performance hit on complex apps with too many focusable elements causing jank while transitions are in progress, can we do away with this library? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Version 2.0.7 has been released! If anyone has any new ideas, please create an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a major change for this library, here is the current idea I have.
@reach/dialog
for handling all base modal capabilities while allowing react-spring to work still.overlayTransition
andcontentTransition
.DialogOverlay
andDialogContent
likely viaoverlayProps
andcontentProps
.framer-motion
support (haven't explored how this will work with framer motion's API yet, probably will be easier).<ModalTitle>
component that handles accessibly labeling the modal witharia-labelledby
and a unique id via@reach/auto-id
<ModalCloseButton>
component that would setonClick
on it's children toonRequestClose
This is how the API currently looks:
Questions:
onRequestClose
toonDismiss
?All suggestions are welcome
Beta Was this translation helpful? Give feedback.
All reactions