Fixes for Gutenberg modal
This commit is contained in:
parent
69ec05cd6a
commit
f17d2dfa42
|
@ -36,10 +36,11 @@ class SelectDialog extends React.Component<IDialogProps> {
|
||||||
onRequestClose={ () => this.props.setOpen( false ) }
|
onRequestClose={ () => this.props.setOpen( false ) }
|
||||||
shouldCloseOnClickOutside={ false }
|
shouldCloseOnClickOutside={ false }
|
||||||
>
|
>
|
||||||
<FocusableIframe
|
<iframe
|
||||||
style={ { width: '500px', height: '500px', display: 'block' } }
|
style={ { width: '500px', height: '500px', display: 'block' } }
|
||||||
src={ `${ baseUrl }/integrations/cms` }
|
src={ `${ baseUrl }/integrations/cms` }
|
||||||
></FocusableIframe>
|
title="Choose a Form"
|
||||||
|
></iframe>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Remove modal padding
|
|
||||||
.wp-block-cognito-forms-cognito-embed {
|
.wp-block-cognito-forms-cognito-embed {
|
||||||
.components-placeholder__label svg {
|
.components-placeholder__label svg {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
@ -51,9 +50,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove modal padding
|
||||||
.cognito-modal {
|
.cognito-modal {
|
||||||
.components-modal__content {
|
.components-modal__content {
|
||||||
padding: initial;
|
padding: initial;
|
||||||
|
height: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.components-modal__content::before {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-modal__content .components-modal__header {
|
.components-modal__content .components-modal__header {
|
||||||
|
|
Loading…
Reference in New Issue