Merge pull request #1223 from coralproject/fix-dialog

Fix dialog not rendering fully in firefox
This commit is contained in:
Kiwi authored and GitHub committed 2017-12-19 18:34:49 +01:00
commit c9b7eb3494
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
.dialog {
position: fixed;
}
+2 -1
View File
@@ -2,6 +2,7 @@ import React, {Component} from 'react';
import PropTypes from 'prop-types';
import dialogPolyfill from 'dialog-polyfill';
import 'dialog-polyfill/dialog-polyfill.css';
import styles from './Dialog.css';
export default class Dialog extends Component {
static propTypes = {
@@ -54,7 +55,7 @@ export default class Dialog extends Component {
return (
<dialog
ref={(el) => { this.dialog = el; }}
className={`mdl-dialog ${className}`}
className={`mdl-dialog ${className} ${styles.dialog}`}
{...rest}
>
{children}