Updating modal

This commit is contained in:
Sharyn 2018-07-06 13:46:30 +02:00
parent 2cf03762e1
commit fe874a2a6b
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const Modal = props => (
);
Modal.propTypes = {
isModalOpen: PropTypes.bool.isRequired,
isModalOpen: PropTypes.bool,
children: PropTypes.shape({}).isRequired,
closeModal: PropTypes.func.isRequired,
modalOnMobileOnly: PropTypes.bool,
@ -20,6 +20,7 @@ Modal.propTypes = {
Modal.defaultProps = {
modalOnMobileOnly: false,
isModalOpen: false,
};
export default Modal;

View File

@ -19,6 +19,9 @@
@media (min-width: $desktop) {
background-color: transparent;
height: auto;
display: block;
position: initial;
width: auto;
.modal-inner {
position: initial;