Fix dialog not rendering fully in firefox

This commit is contained in:
Chi Vinh Le
2017-12-19 18:27:19 +01:00
parent 2179632c94
commit 66287f5b7d
2 changed files with 6 additions and 1 deletions
+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}