|
|
@ -2,7 +2,7 @@ import React from 'react'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import 'wicg-inert'; |
|
|
|
import 'wicg-inert'; |
|
|
|
import { createBrowserHistory } from 'history'; |
|
|
|
import { createBrowserHistory } from 'history'; |
|
|
|
import { normal } from 'color-blend'; |
|
|
|
import { multiply } from 'color-blend'; |
|
|
|
|
|
|
|
|
|
|
|
export default class ModalRoot extends React.PureComponent { |
|
|
|
export default class ModalRoot extends React.PureComponent { |
|
|
|
static contextTypes = { |
|
|
|
static contextTypes = { |
|
|
@ -127,7 +127,7 @@ export default class ModalRoot extends React.PureComponent { |
|
|
|
let backgroundColor = null; |
|
|
|
let backgroundColor = null; |
|
|
|
|
|
|
|
|
|
|
|
if (this.props.backgroundColor) { |
|
|
|
if (this.props.backgroundColor) { |
|
|
|
backgroundColor = normal({ ...this.props.backgroundColor, a: 1 }, { r: 0, g: 0, b: 0, a: 0.3 }); |
|
|
|
backgroundColor = multiply({ ...this.props.backgroundColor, a: 1 }, { r: 0, g: 0, b: 0, a: 0.7 }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|