Combined Modal component for New File, New Folder, and Upload.#2049
Combined Modal component for New File, New Folder, and Upload.#2049raclim merged 7 commits intoprocessing:developfrom
Conversation
|
Two notes re: close on outside click.
We can change it to There is another approach
|
|
@raclim I fixed note 1 with the |
raclim
left a comment
There was a problem hiding this comment.
Hi @lindapaiste, thanks so much for working on this—sorry it took a while to revisit it! These updates makes sense to me, and I also think it looks good to go!
Since we just created a new release I'd like to wait for a moment before addressing more PRs as a precaution, so this will probably be merged in by the end of the week!
@raclim I realized why we did not have the click-outside behavior on the upload modal previously. It's because clicking the "Drop files here or click to use the file browser" section is considered an outside click and therefore closes the modal. The I can fix this by making it so that the hidden input is inside of the modal Please do not push this production until we merge in a fix. |
|
Sounds good, thanks for catching this—I was just about to push the release 😂 I'll hold off until then |
Changes:
The components for
NewFileModal,NewFolderModalandUploadFileModalalready use the same CSS class names for styling. This PR moves the HTML structure of the modal and the click-outside logic (added in #1602) into a common sharedModalcomponent. Any differences between the three are handled by passing props to theModal, such astitleandcloseAriaLabel.I have verified that this pull request:
npm run lint)npm run test)developbranch.Fixes #123