]> cat aescling's git repositories - mastodon.git/commitdiff
Fix too low contrast on new media modal background in web UI (#15284)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 7 Dec 2020 01:32:27 +0000 (02:32 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 01:32:27 +0000 (02:32 +0100)
Fix #15258

app/javascript/mastodon/components/modal_root.js

index 9bfc0e49ffafa77a8358e28d1521714aa2d8e072..26344528ea79c4f8151d92e7c0fc91de824d0e72 100644 (file)
@@ -1,7 +1,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 import 'wicg-inert';
-import { normal } from 'color-blend';
+import { multiply } from 'color-blend';
 
 export default class ModalRoot extends React.PureComponent {
 
@@ -98,7 +98,7 @@ export default class ModalRoot extends React.PureComponent {
     let backgroundColor = null;
 
     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 (