about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-12-07 02:32:27 +0100
committerGitHub <noreply@github.com>2020-12-07 02:32:27 +0100
commit014733d1e4c54cd47d2afd361db26982f02166fd (patch)
treeaaee7eea76912f29b09e7b89833b20bac0413d55
parent17a2e276413c6b7c46c2f2b54e86eecc549dfb10 (diff)
Fix too low contrast on new media modal background in web UI (#15284)
Fix #15258
-rw-r--r--app/javascript/mastodon/components/modal_root.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/modal_root.js b/app/javascript/mastodon/components/modal_root.js
index 9bfc0e49f..26344528e 100644
--- a/app/javascript/mastodon/components/modal_root.js
+++ b/app/javascript/mastodon/components/modal_root.js
@@ -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 (