Use ‘modal-lg’ for LTI modals. Update Paragon. (#193)

The new version of Paragon includes a “dialogClassName” property on Modal which lets us set the modal width to ‘modal-lg’ or ‘modal-sm’ - we’re using the former here.
This commit is contained in:
David Joy
2020-08-21 16:28:02 -04:00
committed by GitHub
parent b65bd0ff44
commit aa10b3f600
4 changed files with 5 additions and 19 deletions

View File

@@ -154,6 +154,7 @@ function Unit({
title={modalOptions.title}
onClose={() => { setModalOptions({ open: false }); }}
open
dialogClassName="modal-lg"
/>
)}
<div className="unit-iframe-wrapper">

View File

@@ -317,21 +317,6 @@ $primary: #1176B2;
}
}
.modal {
max-width: 100%;
height: 100vh;
.modal-dialog {
max-width: 100%;
}
.modal-body {
width: 100%;
iframe {
width: 100%;
min-height:100vh;
}
}
}
// Import component-specific sass files
@import 'courseware/course/celebration/CelebrationModal.scss';
@import 'courseware/course/content-tools/calculator/calculator.scss';