Browse Source

Fix too low contrast on new media modal background in web UI (#15284)

Fix #15258
master
Eugen Rochko 3 years ago
committed by GitHub
parent
commit
014733d1e4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/javascript/mastodon/components/modal_root.js

+ 2
- 2
app/javascript/mastodon/components/modal_root.js View 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 (

Loading…
Cancel
Save