-
Notifications
You must be signed in to change notification settings - Fork 24.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Modal.js #24949
Update Modal.js #24949
Conversation
Change default background color (when `transparent` prop is set to `false`) from `white` to semitransparent black.
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code analysis results:
eslint
found some issues. Runyarn lint --fix
to automatically fix problems.
@@ -220,7 +220,7 @@ class Modal extends React.Component<Props> { | |||
} | |||
|
|||
const containerStyles = { | |||
backgroundColor: this.props.transparent ? 'transparent' : 'white', | |||
backgroundColor: this.props.transparent ? 'transparent' : 'rgba(0, 0, 0, 0.5)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier/prettier: Replace ·?·'transparent'
with ⏎········?·'transparent'⏎·······
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
When the transparent prop is off, then the color used shouldn't be using transparency so I'm not sure whether the motivation for this change makes sense. If you'd like us to consider this, could you go into more detail about what prompted this change and what this looks like before/after on devices? |
This PR was made in too much hast - sorry about that.
Yours Sincerely
*Lasse Nørfeldt*
…On Mon, May 20, 2019 at 9:44 AM Christoph Nakazawa ***@***.***> wrote:
When the transparent prop is off, then the color used shouldn't be using
transparency so I'm not sure whether the motivation for this change makes
sense. If you'd like us to consider this, could you go into more detail
about what prompted this change and what this looks like before/after on
devices?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24949?email_source=notifications&email_token=AAFFXFUYL5TKB5GGMT473B3PWJJENA5CNFSM4HN4QCE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVX6RHQ#issuecomment-493873310>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFFXFWEO2JMDT2YMXRUOOTPWJJENANCNFSM4HN4QCEQ>
.
|
Change default background color (when
transparent
prop is set tofalse
) fromwhite
to semitransparent black.#18398 - #18398
Summary
Changelog
[CATEGORY] [TYPE] - Message
Test Plan